/* irisos.dev homepage. An illuminated instrument on a midnight drafting surface: fine construction lines that
   fade into darkness, one object lit, almost nothing else. */
:root {
    --midnight: #070e1c;
    --midnight-2: #0c1830;
    --ink: #e9edf3;
    --ink-dim: #a3afc0;
    --ink-mute: #66748a;
    --line: rgba(233, 237, 243, 0.16);
    --line-soft: rgba(233, 237, 243, 0.06);
    --construction: rgba(170, 196, 232, 0.10);
    --brass: #d9c9a3;
    --brass-2: #b8a77e;
    --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --max-w: 1240px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
.hero { overflow-x: clip; }
body {
    font-family: var(--font-sans); color: var(--ink); background: var(--midnight); line-height: 1.5;
    -webkit-font-smoothing: antialiased; min-height: 100vh; position: relative; overflow-x: clip;
}
/* the drafting surface: construction lines that fade into darkness, and the light that falls on the instrument */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(var(--construction) 1px, transparent 1px), linear-gradient(90deg, var(--construction) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(900px 640px at 62% 34%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 45%, transparent 78%);
    mask-image: radial-gradient(900px 640px at 62% 34%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 45%, transparent 78%);
}
body::after {
    content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background:
        radial-gradient(1100px 760px at 66% 30%, rgba(72, 106, 168, 0.28), transparent 62%),
        radial-gradient(700px 520px at 18% 92%, rgba(217, 201, 163, 0.07), transparent 60%),
        linear-gradient(180deg, var(--midnight-2), var(--midnight) 55%);
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: var(--midnight); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; }

/* header: quiet */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font-family: var(--font-serif); font-size: 24px; letter-spacing: 0.34em; color: var(--ink); }
.top-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--ink-dim); }
.top-nav a:hover { color: var(--ink); }
.top-nav .cta { border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; color: var(--ink); }
.top-nav .cta:hover { border-color: var(--brass); color: var(--brass); }

/* hero: the copy sits high and left; the instrument emerges below and to the right */
.hero { padding: 168px 0 40px; min-height: min(100vh, 980px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 56px; align-items: end; }
.hero-copy { padding-bottom: 36px; }
.eyebrow { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 18px; color: var(--brass-2); margin-bottom: 22px; letter-spacing: 0.01em; }
.hero h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(54px, 7.2vw, 108px); line-height: 0.96; letter-spacing: -0.025em; color: var(--ink); }
.lede { margin-top: 26px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(20px, 2vw, 25px); line-height: 1.35; color: var(--ink-dim); }
.access { margin-top: 36px; display: flex; gap: 10px; max-width: 460px; }
.access input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--ink); background: rgba(233, 237, 243, 0.045); border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; outline: none; transition: border-color 0.15s; }
.access input::placeholder { color: var(--ink-mute); }
.access input:focus { border-color: var(--brass-2); }
.access button { font: inherit; font-size: 14px; font-weight: 600; color: var(--midnight); background: var(--brass); border: 1px solid var(--brass); border-radius: 999px; padding: 13px 20px; cursor: pointer; white-space: nowrap; }
.access button:hover { background: #e8dcbf; }
.access-note { margin-top: 12px; min-height: 1.4em; font-size: 13px; color: var(--ink-mute); }
.access-note a { color: var(--brass-2); }
.quiet-link { margin-top: 18px; font-size: 13px; }
.quiet-link a { color: var(--ink-mute); text-decoration: none; border-bottom: 1px solid var(--line); }
.quiet-link a:hover { color: var(--brass-2); }

/* the instrument */
.plate { position: relative; border: 1px solid var(--line); background: #f3f1ea; border-radius: 3px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(7, 14, 28, 0.6), 0 60px 140px rgba(0, 0, 0, 0.6), 0 0 120px rgba(120, 150, 210, 0.16); }
.hero-plate { margin-right: calc(-1 * clamp(0px, (100vw - 1240px) / 2, 120px)); }
.hero-plate::before { content: ""; position: absolute; inset: -1px; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, transparent 72%, rgba(7, 14, 28, 0.12) 100%); }
.plate-window { overflow: hidden; }
.plate-window img { display: block; width: 100%; height: auto; }
.hero-plate .plate-window { aspect-ratio: 2468 / 1500; }
.quiet .plate-window { aspect-ratio: 3454 / 1540; }
.quiet { box-shadow: 0 0 0 1px rgba(7, 14, 28, 0.6), 0 40px 100px rgba(0, 0, 0, 0.55); }
.plate-label { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; background: var(--midnight-2); border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }

/* second movement: quieter, the model beneath the intelligence */
.reveal { padding: 120px 0 110px; }
.reveal-copy { max-width: 36ch; }
.reveal h2 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.reveal p { margin-top: 18px; font-family: var(--font-serif); font-weight: 300; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; color: var(--ink-dim); }
.reveal .plate { margin-top: 56px; }

/* footer */
footer { border-top: 1px solid var(--line-soft); padding: 28px 0 44px; font-size: 12.5px; color: var(--ink-mute); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 40px; }
    .hero-plate { margin-right: 0; }
    .hero { padding-top: 136px; min-height: 0; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .top-inner { height: 64px; }
    .top-nav { gap: 16px; font-size: 12px; }
    .wordmark { font-size: 20px; }
    .hero { padding-top: 112px; }
    .hero h1 { font-size: clamp(46px, 14vw, 64px); }
    .access { flex-direction: column; }
    .access button { width: 100%; }
    .hero-plate .plate-window { aspect-ratio: 4 / 3.3; }
    .quiet .plate-window { aspect-ratio: 4 / 3; }
    .reveal { padding: 96px 0 72px; }
    .plate-label { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero-copy, .hero-plate { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .hero-plate { animation-delay: 0.15s; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
