:root {
  /* water: pale sea foam, deep pool teal, splash aqua, ring mint, one pink pop from the cat */
  --bg: #E6F7F2;
  --paper: #F7FDFB;
  --ink: #06302B;
  --ink-2: rgba(6, 48, 43, .72);
  --ink-3: rgba(6, 48, 43, .5);
  --rule: rgba(6, 48, 43, .16);
  --aqua: #5FE3D8;
  --aqua-soft: #C9F4EE;
  --mint: #36E0A2;
  --pink: #FF9AB8;
  --deep: #07362F;
  --deep-ink: #EAFBF6;
  --deep-ink-2: rgba(234, 251, 246, .72);
  --deep-rule: rgba(234, 251, 246, .18);

  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --edge: clamp(16px, 5vw, 88px);
  --section-gap: clamp(112px, 15vw, 240px);
  --heading-gap: clamp(48px, 8vw, 128px);

  --ease-core: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: linear(
    0, .0014, .0055 1.03%, .0239, .053 3.44%, .0961 4.81%, .1957 7.39%,
    .4354 12.88%, .5484, .6494, .7362, .8083 23.88%, .8696, .9168 29.72%,
    .9368, .9536 32.81%, .9793 35.9%, .997 39.17%, 1.0084 42.77%,
    1.0142 47.07%, 1.0144 53.43%, 1.0054 68.37%, 1.0019 77.3%, .9998 99.98%
  );
  --dur: .9s;

  /* wavy water fill used under the name */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5 V14 H0Z' fill='%235FE3D8'/%3E%3C/svg%3E");
  --wave-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 14' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5 V14 H0Z' fill='%2336E0A2' fill-opacity='.45'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
::selection { background: var(--aqua); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- type primitives ---------- */
.display, .sec-title, .post-text, .wordmark, .social-name, .step-t, .bigmark {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
}
.name {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  background: var(--wave) 0 100% / .62em .4em repeat-x;
  padding: 0 .05em .02em;
  margin: 0 -.05em;
}
.name-dark { background-image: var(--wave-dark); }
.eyebrow, .sec-index, .tag, time, .ca-net, .ca-addr, .ph-tag, .social-i, .step-i {
  font-family: var(--mono);
  letter-spacing: .02em;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--edge);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-core);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.wordmark {
  font-size: 26px; font-weight: 600; letter-spacing: -.03em; text-decoration: none;
  font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-link {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-core);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transform: translateY(var(--lift));
  box-shadow: 0 calc(4px - var(--lift)) 0 var(--ink);
  transition: transform .35s var(--ease-core), box-shadow .35s var(--ease-core), background-color .35s var(--ease-core);
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: 3px; transition-duration: .08s; }
.btn-solid { background: var(--ink); color: var(--paper); box-shadow: 0 calc(4px - var(--lift)) 0 var(--aqua), 0 calc(4px - var(--lift)) 0 1.5px var(--ink); }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--aqua-soft); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 64px; padding: 0 36px; font-size: 18px; }
.arrow { display: inline-block; transition: transform .45s var(--ease-core); }
a:hover .arrow { transform: translate(2px, -2px); }

/* placeholder state (preview only) */
.is-tba { border-style: dashed !important; box-shadow: none !important; cursor: not-allowed; opacity: .78; }
.is-tba::after {
  content: "TBA"; font: 500 10px/1 var(--mono); letter-spacing: .08em;
  padding: 4px 6px; border-radius: 6px; background: var(--pink); color: var(--ink);
}
.btn-solid.is-tba { background: transparent; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 96px) var(--edge) var(--section-gap);
  min-height: calc(100svh - 72px);
}
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; margin: 0 0 clamp(20px, 3vw, 36px); color: var(--ink-2); }
.display {
  margin: 0;
  font-size: clamp(56px, 9.6vw, 156px);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 400;
}
.display .name { display: inline-block; }
.lede {
  max-width: 30ch;
  margin: clamp(24px, 3.4vw, 44px) 0 0;
  font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; color: var(--ink-2);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3.4vw, 44px); }

.ca {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 8px;
  max-width: 620px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 18px;
}
.ca-net {
  flex: none; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 10px; background: var(--aqua);
}
.ca-addr { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; color: var(--ink); }
.ca-copy {
  flex: none; min-height: 44px; min-width: 64px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 12px; background: var(--bg); color: var(--ink);
  font: 600 14px/1 var(--body); cursor: pointer;
  transition: background-color .3s var(--ease-core);
}
.ca-copy:hover { background: var(--aqua-soft); }
.ca.is-tba-block { border-style: dashed; }
.ca.is-tba-block .ca-net, .ca.is-tba-block .ca-addr { color: var(--ink-3); }
.ca.is-tba-block .ca-net { background: transparent; border: 1px dashed var(--ink-3); }

/* ---------- art ---------- */
.hero-art { position: relative; margin: 0; }
.art-frame {
  position: relative; z-index: 1; aspect-ratio: 4 / 5;
  border-radius: 40px; border: 1.5px solid var(--ink);
  background: var(--deep);
  overflow: hidden;
  box-shadow: 0 8px 0 var(--aqua), 0 8px 0 1.5px var(--ink);
  animation: idle 7s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.art-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.art-frame.is-happy { animation: happy .9s var(--ease-spring); }
.art-placeholder {
  position: absolute; inset: 14px; border-radius: 30px; border: 1.5px dashed var(--deep-ink-2); color: var(--deep-ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px;
}
.ph-tag { font-size: 11px; letter-spacing: .14em; }
.ph-body { font-size: 15px; line-height: 1.45; color: var(--deep-ink-2); max-width: 30ch; }
.art-cap { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }

/* splash rings behind the frame: play once on load, again on copy */
.ripples { position: absolute; inset: 0 0 40px; pointer-events: none; display: grid; place-items: center; }
.ripples i {
  grid-area: 1 / 1; width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--aqua); opacity: 0; transform: scale(.6);
}
/* no `forwards`: rings must fall back to their small resting size or they widen the page on phones */
.ripples.is-on i { animation: ripple 1.6s var(--ease-core); }
.ripples.is-on i:nth-child(2) { animation-delay: .14s; border-color: var(--mint); }
.ripples.is-on i:nth-child(3) { animation-delay: .28s; }

.tag { display: inline-block; flex: none; white-space: nowrap; font-size: 10px; font-weight: 500; letter-spacing: .12em; padding: 5px 8px; border-radius: 7px; line-height: 1; }
.tag-art { background: var(--pink); }
.tag-src { border: 1px solid var(--ink); }

@keyframes idle {
  0%, 100% { transform: translateY(0) rotate(-.7deg); }
  50% { transform: translateY(-9px) rotate(.7deg); }
}
@keyframes happy {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.04) rotate(-2.5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes ripple {
  0% { opacity: .9; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* ---------- sections ---------- */
.sec-head { padding: 0 var(--edge); margin-bottom: var(--heading-gap); }
.sec-index { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 24px; }
.sec-title {
  margin: 0; max-width: 12ch;
  font-size: clamp(44px, 7.4vw, 120px); line-height: .9; letter-spacing: -.045em; font-weight: 400;
}
.sec-title-wide { max-width: 15ch; }

/* ---------- thread ---------- */
.thread { list-style: none; margin: 0; padding: 0 var(--edge); }
.post {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto;
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--rule);
}
.post:last-child { border-bottom: 1px solid var(--rule); }
.post-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 6px; }
time { font-size: 12px; color: var(--ink-2); }
.post-who { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.post-who span { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.post-who .post-reply { color: var(--ink-3); }
.post-text {
  margin: 0; font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.12;
}
.post-note { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); max-width: 52ch; }
.post-links { display: flex; flex-direction: column; align-items: flex-end; }
.post-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-top: 2px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.post-link-quiet { font-weight: 500; color: var(--ink-2); }
.post-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-context { opacity: .82; }

.post-key { padding: clamp(48px, 6vw, 96px) 0; }
.post-key .post-text { font-size: clamp(44px, 7.6vw, 128px); line-height: .92; letter-spacing: -.045em; }
.post-key .post-who { font-size: 16px; margin-bottom: clamp(18px, 2.4vw, 32px); }

.origin-foot { padding: var(--heading-gap) var(--edge) 0; display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.origin-line { grid-column: 2; margin: 0; max-width: 26ch; font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: clamp(26px, 3vw, 42px); line-height: 1.14; letter-spacing: -.025em; }
.origin-line strong { font-weight: 500; font-style: italic; }
.fineprint { grid-column: 2; margin: 28px 0 0; max-width: 60ch; font-size: 14px; color: var(--ink-2); }

/* ---------- community: the deep pool ---------- */
.community {
  position: relative;
  margin-top: var(--section-gap);
  color: var(--deep-ink);
  background-color: var(--deep);
  background-image: repeating-radial-gradient(circle at 88% 30%, transparent 0 46px, rgba(54, 224, 162, .13) 46px 48px);
}
.wave { position: absolute; left: 0; width: 100%; height: clamp(36px, 5vw, 80px); display: block; }
.wave path { fill: var(--bg); }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.community-inner { padding: calc(var(--section-gap) * .8) 0 calc(var(--section-gap) * .9); }
.community .sec-index { color: var(--aqua); }
.community-body {
  margin: calc(var(--heading-gap) * -.5) var(--edge) var(--heading-gap);
  max-width: 34ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--deep-ink-2);
}
.socials { list-style: none; margin: 0; padding: 0 var(--edge); }
.socials li { border-top: 1px solid var(--deep-rule); }
.socials li:last-child { border-bottom: 1px solid var(--deep-rule); }
.social {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 64px; align-items: center; gap: 16px;
  min-height: 44px; padding: clamp(18px, 2.4vw, 30px) 0;
  text-decoration: none; color: var(--deep-ink);
}
.social::before {
  content: ""; position: absolute; inset: 0 calc(var(--edge) * -1); z-index: 0;
  background: var(--aqua); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-core);
}
.social > * { position: relative; z-index: 1; transition: color .4s var(--ease-core), transform .6s var(--ease-core); }
.social-i { font-size: 12px; color: var(--deep-ink-2); }
.social-name { font-size: clamp(44px, 6.4vw, 104px); line-height: 1; letter-spacing: -.04em; }
.social-sub { font-size: 15px; color: var(--deep-ink-2); }
.social-go {
  justify-self: end; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; font-size: 22px;
}
.social:not(.is-tba):hover::before { transform: scaleY(1); }
.social:not(.is-tba):hover > * { color: var(--ink); }
.social:not(.is-tba):hover .social-name { transform: translateX(12px); }
.social.is-tba { opacity: .7; border: 0 !important; grid-template-columns: 64px minmax(0, 1fr) auto auto 64px; }
.social.is-tba::after { position: relative; z-index: 1; order: 1; }
.social.is-tba .social-go { order: 2; }

/* ---------- how to buy ---------- */
.buy { padding-top: var(--section-gap); }
.steps { list-style: none; margin: 0; padding: 0 var(--edge); display: grid; }
.step {
  display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) minmax(0, .8fr); gap: 16px clamp(24px, 4vw, 64px);
  align-items: baseline; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-i { font-size: 12px; color: var(--ink-2); }
.step-t { margin: 0; font-weight: 400; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.step-b { margin: 0; color: var(--ink-2); max-width: 40ch; }
.buy-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  padding: clamp(40px, 5vw, 72px) var(--edge) 0;
}
.buy-foot .ca { margin-top: 0; flex: 1 1 420px; }
.preview-note { margin: 24px var(--edge) 0; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }

/* ---------- footer ---------- */
.foot { margin-top: var(--section-gap); padding: clamp(48px, 6vw, 80px) var(--edge) 0; border-top: 1px solid var(--rule); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px clamp(24px, 6vw, 96px); align-items: end; }
.foot-ca .ca { margin-top: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: flex-end; }
.foot-links a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-links a.is-tba { border: 0 !important; gap: 6px; }
.disclosure { margin: 40px 0 0; max-width: 70ch; font-size: 14px; color: var(--ink-2); }
.bigmark {
  margin: clamp(32px, 5vw, 64px) 0 0; text-align: center;
  font-size: clamp(120px, 31vw, 480px); line-height: .72; letter-spacing: -.06em;
  font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  background: var(--wave) 0 100% / .3em .26em repeat-x;
  -webkit-background-clip: text; background-clip: text;
  transform: translateY(.14em);
  user-select: none;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 40;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .6s var(--ease-core), opacity .6s var(--ease-core);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- motion: word reveal + entrances ---------- */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .22em; vertical-align: bottom; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform var(--dur) var(--ease-core); transition-delay: var(--d, 0s); }
[data-revealed="true"] .w > span { transform: none; }

[data-hero], .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease-core), transform var(--dur) var(--ease-core); transition-delay: var(--d, 0s); }
.is-in { opacity: 1 !important; transform: none !important; }
.post-context.is-in { opacity: .82 !important; }

.no-js [data-hero], .no-js .reveal { opacity: 1; transform: none; }
.no-js .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-hero], .reveal { opacity: 1; transform: none; }
  .post-context { opacity: .82; }
  .w > span { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-art { order: -1; max-width: 440px; width: 80%; justify-self: center; }
  .art-frame { aspect-ratio: 1 / 1; border-radius: 32px; }
  .post, .step { grid-template-columns: 1fr; gap: 12px; }
  .post-meta { flex-direction: row; align-items: center; padding-top: 0; }
  .post-links { flex-direction: row; gap: 20px; align-items: center; }
  .origin-foot { grid-template-columns: 1fr; }
  .origin-line, .fineprint { grid-column: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .nav-link { display: none; }
  .hero { padding-top: 20px; }
  .hero-art { width: 86%; }
  .actions .btn, .buy-foot .btn { flex: 1 1 100%; }
  .ca { flex-wrap: wrap; }
  .ca-addr { flex-basis: calc(100% - 120px); }
  .ca-copy { margin-left: auto; }
  .social { grid-template-columns: 36px minmax(0, 1fr) 48px; }
  .social-sub { display: none; }
  .social-go { width: 44px; height: 44px; font-size: 18px; }
  .social.is-tba { grid-template-columns: 36px minmax(0, 1fr) auto 48px; }
}
