/* xarvis.org — one stylesheet, no dependencies. */
:root {
  --night: #0b1530;
  --night-2: #0d2444;
  --ocean: #0d5d7c;
  --cyan: #5ee7f5;
  --gold: #ffd678;
  --coral: #ff7890;
  --teal: #4fdbcc;
  --sky: #66b8ff;
  --violet: #a48aff;
  --paper: #f6f7f9;
  --card: #ffffff;
  --text: #0f1626;
  --muted: #5a6478;
  --line: rgba(15, 22, 38, 0.09);
  --radius: 24px;
  --wrap: 1160px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(15, 22, 38, .22); }
.button.small { height: 40px; padding: 0 18px; font-size: 15px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Navigation */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.brand small { font-size: 12px; font-weight: 600; letter-spacing: 0; opacity: .55; margin-left: -4px; align-self: flex-end; padding-bottom: 5px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav nav a:not(.button) { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav nav a:not(.button):hover { opacity: 1; }
body:not(.page-index) .nav { position: sticky; top: 0; background: rgba(246, 247, 249, .82); backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }

/* ——— Home ——————————————————————————————————————————————————————————————— */
.page-index {
  --ink: #070a12; --ink-2: #0c1220; --ink-3: #111a2c;
  --ivory: #f4efe4; --ivory-dim: rgba(244, 239, 228, .68); --ivory-faint: rgba(244, 239, 228, .42);
  --champagne: #d9bf8f; --champagne-2: #f3dfb5; --hair: rgba(244, 239, 228, .1);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: var(--ink); color: var(--ivory);
}
.page-index::before {
  /* A whisper of film grain keeps the dark from feeling flat. */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-index main, .page-index .footer, .page-index .nav { position: relative; z-index: 2; }
.page-index .nav { position: absolute; z-index: 3; color: var(--ivory); }
.page-index .nav .brand small { opacity: .5; }
.page-index .nav .button { background: transparent; color: var(--ivory); border: 1px solid rgba(244, 239, 228, .28); }
.page-index .nav .button:hover { border-color: var(--champagne); color: var(--champagne-2); box-shadow: none; }
.page-index h1, .page-index h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.page-index h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; }
.page-index em { font-style: italic; color: var(--champagne-2); }
.page-index .narrow { width: min(860px, calc(100% - 48px)); }
.overline { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--champagne); }
.overline.center { text-align: center; }
.intro { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--ivory-dim); max-width: 34em; }

.button.gilded {
  height: 56px; padding: 0 32px; font-size: 16px; letter-spacing: .01em; color: #16110a;
  background: linear-gradient(135deg, #f6e6c4 0%, #d9bf8f 48%, #b8935a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 40px -18px rgba(217, 191, 143, .65);
}
.button.gilded:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 50px -16px rgba(217, 191, 143, .8); }
.quiet-link { color: var(--ivory-dim); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--hair); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.quiet-link:hover { color: var(--ivory); border-color: var(--champagne); }

/* Aurora: slow light behind the hero and the invitation. */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 26s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -26vw; background: radial-gradient(circle, rgba(42, 92, 140, .55), transparent 65%); }
.aurora span:nth-child(2) { width: 46vw; height: 46vw; right: -14vw; top: 4vw; background: radial-gradient(circle, rgba(217, 191, 143, .28), transparent 65%); animation-duration: 32s; }
.aurora span:nth-child(3) { width: 50vw; height: 50vw; left: 24vw; bottom: -34vw; background: radial-gradient(circle, rgba(94, 231, 245, .14), transparent 65%); animation-duration: 38s; }
.aurora.soft span { opacity: .35; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 112px 0 84px; overflow: hidden; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #0f1a2e 0%, var(--ink) 60%); }
.hero-inner { position: relative; display: grid; justify-items: center; }
.presence { margin: 0 0 26px; width: clamp(128px, 13vw, 178px); }
.presence svg { width: 100%; height: auto; overflow: visible; }
.presence .halo { fill: none; stroke: rgba(217, 191, 143, .18); stroke-width: 1; animation: breathe 7s ease-in-out infinite; transform-origin: 120px 120px; }
.presence .orbit { fill: none; stroke: rgba(244, 239, 228, .08); stroke-width: 1; stroke-dasharray: 2 6; animation: turn 90s linear infinite; transform-origin: 120px 120px; }
.presence .rim { fill: none; stroke: rgba(244, 239, 228, .14); stroke-width: 1; }
.presence .voice rect { transform-box: fill-box; transform-origin: center; animation: speak 3.6s ease-in-out infinite; }
.presence .voice rect:nth-child(1), .presence .voice rect:nth-child(7) { animation-delay: -.2s; }
.presence .voice rect:nth-child(2), .presence .voice rect:nth-child(6) { animation-delay: -.9s; }
.presence .voice rect:nth-child(3), .presence .voice rect:nth-child(5) { animation-delay: -1.6s; }
.presence .voice .core { animation-delay: -2.3s; }
@keyframes speak { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes turn { to { transform: rotate(360deg); } }
.kicker { font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory-faint); }
.kicker span { color: var(--champagne); margin: 0 .3em; }
.hero h1 { font-size: clamp(52px, min(8.2vw, 14vh), 124px); line-height: .98; letter-spacing: -0.035em; margin: 20px 0 26px; }
.hero h1 em { display: inline-block; background: linear-gradient(100deg, #fff6e2 10%, var(--champagne) 55%, #b8935a 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.65; color: var(--ivory-dim); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 34px; margin-top: 36px; }
.availability { margin-top: 26px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-faint); }

/* The idea */
.burden { padding: 150px 0 140px; border-top: 1px solid var(--hair); background: var(--ink); }
.burden h2 { margin: 22px 0 36px; }
.essay { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.55; color: var(--ivory-dim); }
.essay.strong { margin-top: 28px; color: var(--ivory); }

/* What Jarvis is */
.essence { padding: 140px 0; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.essence-head { max-width: 760px; margin-bottom: 70px; }
.essence-head h2 { margin-top: 20px; }
.movements { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.movements article { padding: 44px 40px 10px 0; }
.movements article + article { padding-left: 40px; border-left: 1px solid var(--hair); }
.numeral { display: block; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--champagne); margin-bottom: 26px; }
.movements h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.01em; margin-bottom: 16px; }
.movements p { color: var(--ivory-dim); font-size: 17px; line-height: 1.65; }

/* A single moment */
.moment { padding: 150px 0; background: var(--ink-2); text-align: center; border-block: 1px solid var(--hair); }
.moment blockquote { margin: 40px 0 0; }
.asked { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); color: var(--ivory-faint); line-height: 1.3; }
.answered { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 52px); line-height: 1.22; margin-top: 26px; color: var(--ivory); text-wrap: balance; }
.aside { margin-top: 40px; font-size: 15px; letter-spacing: .02em; color: var(--ivory-faint); }

/* Life, with Jarvis */
.feeling { padding: 150px 0 140px; background: var(--ink); }
.triad { list-style: none; margin: 40px 0 0; padding: 0; text-align: center; }
.triad li { font-family: var(--serif); font-size: clamp(40px, 6.4vw, 92px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ivory); }
.triad li:nth-child(2) { color: var(--ivory-dim); }
.triad li:nth-child(3) { color: var(--ivory-faint); }
.feeling-close span { display: inline-block; }
.feeling-close { margin-top: 56px; text-align: center; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); }

/* Discretion */
.discretion { padding: 140px 0; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%); border-top: 1px solid var(--hair); }
.discretion-head { max-width: 780px; margin-bottom: 70px; }
.discretion-head h2 { margin-top: 20px; }
.vows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.vows article { border-top: 1px solid var(--champagne); padding-top: 24px; }
.vows h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 12px; }
.vows p { color: var(--ivory-dim); font-size: 16px; line-height: 1.6; }

/* Horizon */
.horizon { padding: 150px 0; background: var(--ink-3); }
.horizon-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.horizon h2 { margin-top: 20px; }
.horizon-copy p { font-size: 19px; line-height: 1.65; color: var(--ivory-dim); }
.horizon-copy p + p { margin-top: 22px; font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--ivory); }

/* Gmail transparency (Google verification) */
.gmail { padding: 130px 0 120px; background: var(--ink-2); border-top: 1px solid var(--hair); }
.gmail-head { max-width: 760px; margin-bottom: 56px; }
.gmail-head h2 { margin-top: 20px; font-size: clamp(30px, 3.6vw, 46px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--hair); }
.facts div { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--hair); }
.facts div:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--hair); }
.facts dt { font-weight: 600; font-size: 16.5px; margin-bottom: 10px; color: var(--ivory); }
.facts dd { margin: 0; color: var(--ivory-dim); font-size: 15px; line-height: 1.6; }
.facts em { color: var(--ivory); font-style: normal; font-weight: 600; }
.disclosure { margin-top: 34px; font-size: 14px; line-height: 1.7; color: var(--ivory-faint); max-width: 62em; }
.disclosure a { color: var(--ivory-dim); text-underline-offset: 3px; }
.disclosure a:hover { color: var(--champagne-2); }

/* Invitation */
.invitation { position: relative; overflow: hidden; padding: 170px 0 180px; text-align: center; background: var(--ink); border-top: 1px solid var(--hair); }
.invitation-inner { position: relative; display: grid; justify-items: center; }
.invitation h2 { margin: 22px 0 0; font-size: clamp(38px, 5.4vw, 72px); }
.invitation .intro { margin: 26px auto 44px; }

/* Footer on the home page */
.page-index .footer { background: var(--ink); border-top: 1px solid var(--hair); color: var(--ivory-dim); }
.page-index .footer .muted, .page-index .fineprint, .page-index .footer nav a { color: var(--ivory-faint); }
.page-index .footer nav a:hover { color: var(--ivory); }
.page-index .footer .brand { color: var(--ivory); }

/* Gentle reveal as each part scrolls into view, where the browser supports it. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* Long-form documents */
.doc { padding: 70px 0 110px; }
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 70px; align-items: start; }
.doc-head { margin-bottom: 44px; max-width: 760px; }
.doc-head h1 { font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.035em; margin: 12px 0 14px; }
.doc-head p { color: var(--muted); }
.toc { position: sticky; top: 100px; font-size: 14.5px; }
.toc p { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 52px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: #2d3546; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--ocean); font-weight: 600; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 16px; padding: 18px 22px; margin: 20px 0; }
.callout p { color: var(--text); }
.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfc; }
.table code { font-size: 13px; background: rgba(15, 22, 38, .05); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

.lost { padding: 180px 0 140px; text-align: center; }
.lost h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; margin-bottom: 16px; }
.lost p { color: var(--muted); margin-bottom: 30px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 56px 0 36px; font-size: 15px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; margin-bottom: 12px; }
.footer .brand .mark { width: 28px; height: 28px; }
.footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer nav a { text-decoration: none; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.fineprint { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 1080px) {
  .vows { grid-template-columns: 1fr 1fr; gap: 44px 40px; }
}
@media (max-width: 980px) {
  .movements { grid-template-columns: 1fr; }
  .movements article, .movements article + article { padding: 36px 0 30px; border-left: 0; border-bottom: 1px solid var(--hair); }
  .horizon-grid { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div:not(:nth-child(3n+1)) { padding: 26px 24px 26px 0; border-left: 0; }
  .facts div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--hair); }
  .doc-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .page-index .narrow { width: calc(100% - 40px); }
  .nav nav a:not(.button) { display: none; }
  .page-index .nav .button { height: 38px; padding: 0 16px; font-size: 14px; }
  .hero { padding: 120px 0 90px; }
  .burden, .essence, .moment, .feeling, .discretion, .horizon { padding: 100px 0; }
  .gmail { padding: 100px 0 90px; }
  .invitation { padding: 120px 0 130px; }
  .vows, .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .essence-head, .discretion-head { margin-bottom: 48px; }
  .triad li { font-size: clamp(30px, 8.6vw, 40px); }
  .feeling-close { letter-spacing: .18em; font-size: 13px; }
  .page-index h2 { font-size: clamp(30px, 8.4vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
