/* Eyreen v3. Dark, the eye on stage, code and points everywhere. Native scroll; every canvas stops off screen.
   Type: Anton (display, capitals, calm sizes) + Hanken Grotesk (everything else). Decisions: direction/eyreen-future.md. */

:root {
  --void: #04050A;
  --surface: #0A0E1C;
  --line: rgba(150, 175, 255, 0.14);
  --line-strong: rgba(150, 175, 255, 0.3);
  --text: #E8ECFA;
  --text-2: #A3ADCB;
  --blue: #0A84FF;
  --magenta: #E44AA6;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --ui: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); font: 400 1rem/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--void); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; background: var(--text); color: var(--void); padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

.shell { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* type */
.d { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1; margin: 0; text-wrap: balance; }
.d-xl { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem); max-width: 18ch; }
.d-l { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.lead { color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); line-height: 1.6; margin: 0; max-width: 54ch; text-wrap: pretty; }
.p { color: var(--text-2); margin: 0; max-width: 62ch; text-wrap: pretty; }
.cap { font-size: 0.8125rem; color: var(--text-2); margin: 0; }
.cap a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.label { font: 500 0.75rem/1 var(--mono); color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.greek { font-weight: 300; }
.center { text-align: center; margin-inline: auto; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.meta { font-size: 0.875rem; color: var(--text-2); }
.meta b { color: var(--text); font-weight: 500; }

/* button: flat; hover changes colour only */
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 6px; background: var(--text); color: var(--void); font: 500 0.9375rem/1 var(--ui); text-decoration: none; transition: background-color 160ms var(--ease); }
.btn:hover { background: #ffffff; }
.btn--pill { height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; flex: none; transition: background-color 160ms var(--ease), height 500ms var(--ease); } /* taste-ok: rounded-full Nicola asked for a pill navbar (19 Nov 2026) */

/* the mark */
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.mark__eye { width: 30px; height: auto; fill: var(--blue); overflow: visible; }   /* the lids inherit through <use> */
.mark__eye circle { fill: var(--magenta); }
.mark__word { font: 500 1.125rem/1 var(--ui); letter-spacing: 0.04em; }
/* the living mark in the island: bigger, it blinks and its pupil follows the pointer */
.mark--live { gap: 12px; flex: none; }
.mark--live .mark__eye { width: 52px; }
.mark--live .mark__word { font-size: 1.5rem; font-weight: 600; letter-spacing: 0.03em; }
.mark__lids { transform-origin: 163px 79px; transform-box: view-box; transition: transform 90ms var(--ease); }
.mark--live.is-blink .mark__lids { transform: scaleY(0.12); }
.mark--live circle { transition: cx 220ms var(--ease), cy 220ms var(--ease); }
@media (max-width: 560px) { .mark--live .mark__eye { width: 44px; } .mark--live .mark__word { font-size: 1.25rem; } }

/* the island (Nicola's pick, 19 Nov 2026, from the CodeXR "navigation tabs v10" morphing pill): a floating pill with the
   living eye; past the hero it shrinks to the eye and Book a call, hover or focus opens it again, a light runs its edge */
.island { position: fixed; z-index: 20; left: 50%; top: calc(18px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); height: 72px; padding: 0 10px 0 20px; display: flex; align-items: center; gap: 14px; background: rgba(10, 14, 28, 0.94); border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; max-width: calc(100vw - 32px); transition: height 500ms var(--ease), padding 500ms var(--ease); } /* taste-ok: rounded-full Nicola asked for a pill navbar (19 Nov 2026) */
.island__trace { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); pointer-events: none; }
.island__links { display: flex; gap: 2px; overflow: hidden; max-width: 520px; opacity: 1; transition: max-width 600ms var(--ease), opacity 300ms var(--ease); }
.island__links a { padding: 10px 16px; color: var(--text-2); text-decoration: none; font-weight: 500; border-radius: 999px; transition: color 200ms var(--ease); } /* taste-ok: rounded-full the focus ring of a pill link */
.island__links a:hover { color: var(--text); }
.island .mark__word { display: inline-block; overflow: hidden; line-height: 1.35; max-width: 140px; transition: max-width 600ms var(--ease), opacity 300ms var(--ease); }
.island.is-small { height: 60px; padding: 0 8px 0 16px; }
.island.is-small .island__links, .island.is-small .mark__word { max-width: 0; opacity: 0; }
.island.is-small .island__links a { visibility: hidden; }
.island.is-small .btn--pill { height: 42px; }
@media (max-width: 860px) {
  .island__links { display: none; }
  .island { left: 16px; right: 16px; transform: none; justify-content: space-between; max-width: none; }
  .island.is-small { left: 50%; right: auto; transform: translateX(-50%); }
}

/* hero: the iris of code */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); margin: 0 auto; display: grid; gap: 16px; pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero__copy .lead { max-width: 46ch; }
@media (max-width: 720px) { .hero__copy .lead { font-size: 0.9375rem; } }

/* sections */
.sec { padding-block: clamp(80px, 11vw, 144px); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }
canvas { display: block; width: 100%; height: 100%; }

.cloud { aspect-ratio: 1200 / 900; position: relative; }
.def { margin: 0; color: var(--text-2); }
.def b { color: var(--text); font-family: var(--display); font-weight: 400; font-size: 1.375rem; text-transform: uppercase; margin-right: 10px; }

.orbit { aspect-ratio: 1; position: relative; width: 100%; max-width: 560px; justify-self: center; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list .d { font-size: 1.25rem; transition: color 300ms var(--ease); }
.list p { margin: 0; color: var(--text-2); grid-column: 2; font-size: 0.9375rem; }
.list li.on .d { color: var(--blue); }

.ico { width: 22px; height: 22px; flex: none; color: var(--text); }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* drawn icons: drawn at rest; the script undraws only what starts off screen, then draws it in */
.draw svg * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease); }
.draw.pre svg * { stroke-dashoffset: 1; transition: none; }

.numfield { height: clamp(200px, 28vw, 340px); position: relative; }
.numcap { display: flex; justify-content: space-around; color: var(--text-2); margin: 12px 0 28px; }
.numcap b { color: var(--text); font-weight: 500; }

.morph { aspect-ratio: 4 / 3; position: relative; }

.founder { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.founder__pic { position: relative; width: 240px; height: 240px; }
.founder__pic img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; border-radius: 50%; } /* taste-ok: rounded-full a real portrait */
.founder__pic canvas { position: absolute; inset: 0; }
@media (max-width: 560px) { .founder { grid-template-columns: minmax(0, 1fr); } .founder__pic { width: 200px; height: 200px; } }

.sec--call { text-align: left; }

.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* 404 */
.lost { min-height: 100svh; display: grid; align-content: center; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .list .d, .draw svg *, .island, .island__links, .island__links a, .island .mark__word, .mark__lids, .mark--live circle { transition: none; }
}
