/* Zilayelle studio: shared design system for the home and /links/ (D88 palette, D108 type: Inter 700 tight + one
   italic Cormorant accent, mono labels, crimson accent). Fonts are self-hosted (/f/, OFL). */
@font-face { font-family: "Cormorant"; src: url(/f/cormorant.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/f/cormorant-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/f/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mono"; src: url(/f/jetbrains-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f3eee3; --bg-2: #ebe4d5; --card: rgb(251 248 241 / .82); --card-solid: #fbf8f1; --ink: #2e2d2b; --ink-2: #5f5a51;
  --line: #ddd4c2; --indigo: #26385a; --crimson: #b02632; --on-indigo: #f3eee3; --shade: 38 56 90;
  --display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --body: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --expo: cubic-bezier(.16, 1, .3, 1); --quint: cubic-bezier(.83, 0, .17, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17191e; --bg-2: #1d2027; --card: rgb(34 37 45 / .82); --card-solid: #22252d; --ink: #ece5d6; --ink-2: #aaa293;
          --line: #343842; --indigo: #a9bce0; --crimson: #e2727c; --on-indigo: #17191e; --shade: 0 0 0; color-scheme: dark; }
}
/* bold hero = the dark stage, for the whole page (one continuous film) */
:root[data-hero="bold"] { --bg: #0d0d10; --bg-2: #141418; --card: rgb(24 24 30 / .84); --card-solid: #18181e; --ink: #ede6d6;
  --ink-2: #a9a397; --line: #2b2b34; --indigo: #b3c4e6; --crimson: #e8727d; --on-indigo: #0d0d10; --shade: 0 0 0; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; z-index: 2; }
.mono { font: 400 12px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-2); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--card-solid); padding: 8px 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 38px; height: 18px; color: var(--indigo); }
.brand b { font: italic 500 26px/1 var(--display); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font: 500 14px var(--body); padding: 10px 12px; border-radius: 999px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--card); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--card); text-decoration: none; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); flex: none; }

/* ---------- type ---------- */
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.kicker b { font: 500 12px/1 var(--mono); color: var(--crimson); letter-spacing: .04em; }
h1, h2 { font-family: var(--body); font-weight: 700; letter-spacing: -.045em; margin: 0; }
h1 em, h2 em, .acc { font: italic 500 1.08em/0 var(--display); letter-spacing: -.01em; color: var(--indigo); }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; margin-bottom: 16px; }
.sub { color: var(--ink-2); max-width: 54ch; margin: 0 0 36px; font-size: 17px; }
/* kinetic type: lines rise through a mask (expo out, 80 ms stagger), as in her films */
.ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; animation: rise .95s var(--expo) both; }
.ln:nth-child(2) > span { animation-delay: .08s; } .ln:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } }
.fade { animation: fade .8s .3s var(--expo) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font: 600 15.5px var(--body); transition: transform .25s var(--expo), background .2s, border-color .2s; cursor: pointer; border: 0; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--indigo); color: var(--on-indigo); }
.btn.primary:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--ink-2); }

/* ---------- reveal (only when JS runs) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--expo), transform .9s var(--expo); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- the shade (2D fallback) + the WebGL cloud ---------- */
.shade { position: fixed; left: 0; top: 0; width: 520px; height: 248px; pointer-events: none; z-index: 1; opacity: 0; will-change: transform;
  transition: opacity 1.2s ease; filter: blur(24px); color: rgb(var(--shade) / .11); }
.shade.on { opacity: 1; }
@media (prefers-color-scheme: dark) { .shade { color: rgb(0 0 0 / .45); } }
canvas.zill-gl { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 1s ease; will-change: transform; }
canvas.zill-gl.on { opacity: 1; }

/* ---------- footer ---------- */
footer { margin-top: 120px; padding: 44px 0 56px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot p { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; max-width: 52ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; justify-items: start; }
.foot ul a { display: inline-block; padding: 9px 0; font-size: 14.5px; text-decoration: none; color: var(--ink-2); }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot h3 { font: 500 12px var(--mono); color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
