/* hehe.software — shared styles (v3: light, quiet, type-led) */

:root {
  --paper: #eceef4;
  --paper-2: #e2e5ee;
  --ink: #0c0c14;
  --ink-2: rgba(12, 12, 20, .62);
  --ink-3: rgba(12, 12, 20, .4);
  --line: rgba(12, 12, 20, .12);
  --accent: #b5de3c;
  --night: #07060b;

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 2.5vw, 36px);
  --bar-h: 84px;
  --radius: clamp(14px, 1.4vw, 22px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --vh: 1vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 500 13px/1 var(--sans); transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.mono { font: 500 11px/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- pills: the one button style ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px;
  font: 500 12px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  background: #fff; color: var(--ink); transition: background .3s ease, color .3s ease;
}
.pill--dark { background: var(--ink); color: #fff; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform .4s var(--ease-out); }
.pill--dark i { background: var(--accent); }
.pill:hover i { transform: scale(1.7); }
.pill--dark:hover { background: #262632; }
.pill:not(.pill--dark):hover { background: var(--ink); color: #fff; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), color .4s ease;
}
.bar > * { pointer-events: auto; }
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.scrolled .bar::before { opacity: 1; }
.is-home .bar { opacity: 0; transform: translateY(-20px); }
.is-home.bar-on .bar { opacity: 1; transform: none; }
.bar__mark { font: 500 19px/1 var(--sans); letter-spacing: -.035em; }
.bar__mark span { opacity: .45; }
.bar__nav { display: flex; gap: 8px; align-items: center; }
.on-dark .bar { color: #fff; }

/* ---------- menu ---------- */
.menu[hidden] { display: none; }
.menu {
  position: fixed; top: calc(var(--bar-h) - 10px); right: var(--gutter); z-index: 45; width: min(340px, calc(100vw - var(--gutter) * 2));
  padding: 8px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(12, 12, 20, .35), 0 0 0 1px var(--line);
  animation: menu-in .45s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; font: 400 26px/1.1 var(--sans); letter-spacing: -.035em; }
.menu a small { font: 500 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.menu a:hover { background: var(--paper); }

/* ---------- cursor label ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.4); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 500 12px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .25s ease, transform .45s var(--ease-out);
}
.cursor__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cursor.has-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor__dot { display: none; }

/* ---------- page wipe ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
.wipe { position: fixed; inset: 0; z-index: 99; pointer-events: none; background: var(--ink); clip-path: inset(100% 0 0 0); }
.wipe.is-in { pointer-events: auto; animation: wipe-in .7s var(--ease-io) forwards; }
.wipe.is-out { clip-path: inset(0 0 0 0); animation: wipe-out .9s var(--ease-io) .05s forwards; }
@keyframes wipe-in { to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-out { to { clip-path: inset(0 0 100% 0); } }
.wipe__label { position: absolute; left: var(--gutter); bottom: var(--gutter); color: #fff; font: 400 clamp(48px, 9vw, 150px)/.9 var(--sans); letter-spacing: -.055em; }

/* ---------- contact dialog ---------- */
.talk[hidden] { display: none; }
.talk { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px 18px; overflow: auto; }
.talk__scrim { position: fixed; inset: 0; background: rgba(12, 12, 20, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: talk-fade .3s ease both; }
@keyframes talk-fade { from { opacity: 0; } }
.talk__panel {
  position: relative; width: min(520px, 100%); margin: auto; padding: 32px 30px 26px; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(12, 12, 20, .5); animation: talk-in .5s var(--ease-out) both;
}
@keyframes talk-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.talk__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); }
.talk__eyebrow { margin: 0 0 12px; color: var(--ink-3); }
.talk__title { margin: 0 0 8px; font: 400 40px/1 var(--sans); letter-spacing: -.045em; }
.talk__sub { margin: 0 0 22px; color: var(--ink-2); }
.talk__field { margin: 0 0 12px; }
.talk__field label { display: block; margin: 0 0 6px; color: var(--ink-3); }
.talk__field input, .talk__field textarea {
  display: block; width: 100%; padding: 13px 14px; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid transparent; border-radius: 12px; outline: none; resize: vertical; transition: border-color .2s ease, background .2s ease;
}
.talk__field textarea { min-height: 110px; }
.talk__field input:focus, .talk__field textarea:focus { background: #fff; border-color: var(--ink); }
.talk__send { width: 100%; justify-content: center; height: 48px; margin-top: 16px; }
.talk__note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.talk__note a { color: var(--ink); border-bottom: 1px solid var(--line); }
.talk__note[data-state="sent"] { color: #2c8a3b; }
.talk-open { overflow: hidden; }

/* ---------- footer ---------- */
.foot { position: relative; padding: clamp(90px, 12vw, 180px) var(--gutter) 28px; }
.foot__eyebrow { margin: 0 0 24px; color: var(--ink-2); }
.foot__big {
  display: inline-flex; align-items: center; gap: .16em; font: 400 clamp(64px, 13vw, 240px)/.85 var(--sans); letter-spacing: -.06em;
  transition: letter-spacing .7s var(--ease-out);
}
.foot__big i { flex: none; width: .15em; height: .15em; border-radius: 50%; background: var(--accent); transition: transform .6s var(--ease-out); }
.foot__big:hover { letter-spacing: -.05em; }
.foot__big:hover i { transform: scale(1.5); }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); margin: clamp(56px, 8vw, 110px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.foot__grid h3 { margin: 0 0 12px; color: var(--ink-3); font-weight: 500; }
.foot__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__grid a, .foot__grid p { margin: 0; color: var(--ink-2); transition: color .2s ease; }
.foot__grid a:hover { color: var(--ink); }
.foot__cities { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 28px 0 0; color: var(--ink-3); font-size: 15px; }
.foot__cities .mono { color: var(--ink-3); margin-right: 4px; }
.foot__cities a { color: var(--ink-2); transition: color .2s ease; }
.foot__cities a:hover { color: var(--ink); }
.foot__cities:empty, .foot__cities:not(:has(a)) { display: none; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 96px); color: var(--ink-3); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.js [data-split].is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity .4s ease; }
  .js [data-split] .w > span { transform: none; transition: none; }
}
