/* misc.* design house — direction 1A / VOID
   80 void · 12 blanche · 6 lime · 2 plum. Lime never touches plum: black between them, always. */

:root {
  --void: #080808;
  --graphite: #141414;
  --line: #222;
  --blanche: #fefffc;
  --mute: rgba(254, 255, 252, .55);
  --lime: #d0ff00;
  --plum: #8116e0;
  --electric: #9b5cff;

  --display: 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'Cascadia Mono', 'Cascadia Mono Variable', 'Cascadia Code', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --scribble: 'Shadows Into Light', cursive;

  --gutter: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --u: 8px;                       /* the unit square */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--blanche); scroll-behavior: auto; -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; font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.5;
  background: var(--void); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img { 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(--lime); color: var(--void); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 900; letter-spacing: -.06em; line-height: .88; text-transform: lowercase; margin: 0; }
.h1 { font-size: clamp(64px, 14vw, 220px); }
.h2 { font-size: clamp(44px, 8vw, 128px); }
.h3 { font-size: clamp(30px, 4.6vw, 72px); }
.h4 { font-family: var(--display); font-weight: 900; letter-spacing: -.06em; line-height: 1; font-size: clamp(22px, 2.4vw, 34px); margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: var(--blanche); max-width: 46ch; }
.mute { color: var(--mute); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; font-weight: 400; }
.mono--lime { color: var(--lime); }
.mono--plum { color: var(--electric); }
.mono--copy { text-transform: none; letter-spacing: 0; }
.scribble { font-family: var(--scribble); font-size: clamp(20px, 2vw, 28px); letter-spacing: 0; text-transform: none; line-height: 1.1; color: var(--electric); font-weight: 400; }
.lime { color: var(--lime); }
.plum { color: var(--electric); }
.ast { color: var(--lime); font-weight: 900; }
.ast--plum { color: var(--electric); }

/* ---------- layout ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 200px) var(--gutter); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(40px, 6vw, 96px); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.rule { height: 1px; background: var(--line); }
.surface--lime { background: var(--lime); color: var(--void); }
.surface--lime ::selection { background: var(--void); color: var(--lime); }
.surface--lime :focus-visible, .nav[data-theme="lime"] :focus-visible { outline-color: var(--void); }
.surface--plum ::selection { background: var(--void); color: var(--blanche); }
.surface--plum :focus-visible, .nav[data-theme="plum"] :focus-visible { outline-color: var(--blanche); }
.surface--plum { background: var(--plum); color: var(--blanche); }
.surface--graphite { background: var(--graphite); }

/* ---------- pixel glyphs ---------- */
.glyph { display: inline-block; width: 28px; height: 28px; color: var(--lime); }
.glyph svg { width: 100%; height: 100%; display: block; }
.glyph--plum { color: var(--electric); }
.glyph--void { color: var(--void); }
.glyph--blanche { color: var(--blanche); }
.glyph--lg { width: 56px; height: 56px; }
.glyph--xl { width: clamp(96px, 12vw, 168px); height: clamp(96px, 12vw, 168px); }

/* ---------- pills / buttons ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border: 1px solid currentColor; border-radius: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.pill--fill { background: var(--lime); color: var(--void); border-color: var(--lime); }
.card__pills .pill { border-radius: 0; } /* UI chips stay hard-edged; only badges round */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px 15px; background: var(--lime); color: var(--void); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; overflow: hidden; isolation: isolate; will-change: transform; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--blanche); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .glyph { width: 14px; height: 14px; color: currentColor; }
.btn--ghost { background: transparent; color: var(--blanche); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--lime); }
.btn--ghost:hover { color: var(--void); }
.link { position: relative; display: inline-block; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- reveal (GSAP drives these) ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines .line > span { display: block; }
.no-js .reveal, .no-js .lines .line > span { opacity: 1; transform: none; }
