:root {
  --bg-0: #121214;
  --bg-deep: #0b0b0c;
  --bg-1: #1c1c1e;
  --bg-2: #2c2c2e;
  --bg-top: #3a3a3d;
  --fg: #f5f5f7;
  --fg-2: #8e8e93;
  --fg-3: #a1a1a6;
  --line: rgba(255, 255, 255, .12);
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; background: var(--bg-0); }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg);
  font: 1.0625rem/1.5 var(--sans);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 255, 255, .28); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.dim { color: var(--fg-2); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg-0); padding: 8px 14px; border-radius: 8px; font: 700 .875rem var(--mono); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.wide { max-width: 920px; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: rgba(18, 18, 20, .72); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transition: opacity .4s var(--ease); }
.site-header.scrolled::before { opacity: 1; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 52px; max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.125rem var(--mono); letter-spacing: -.02em; }
.nav-desktop { display: flex; align-items: center; gap: 26px; font-size: .8125rem; letter-spacing: 0; }
.nav-desktop a { color: var(--fg-3); transition: color .2s; }
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop .pill { background: var(--fg); color: var(--bg-0); padding: 4px 12px; border-radius: 980px; font-weight: 500; }
.nav-desktop .pill:hover { background: #fff; color: var(--bg-0); }

.menu-btn { display: none; position: relative; width: 36px; height: 36px; background: none; border: 0; cursor: pointer; color: var(--fg); }
.menu-btn span { position: absolute; left: 10px; width: 16px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 14px; }
.menu-btn span:last-child { top: 21px; }
.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: none; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.open .nav-mobile { max-height: 420px; }
.open { bottom: 0; }
.open::before { opacity: 1; background: rgba(18, 18, 20, .55); border-bottom-color: transparent; -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); }
html.menu-open { overflow: hidden; }
.nav-mobile a { display: block; padding: 12px 22px; font: 600 1.25rem var(--mono); border-top: 1px solid var(--line); }

/* ---------- type ---------- */
.eyebrow { font: 600 .9375rem var(--mono); color: var(--fg); letter-spacing: 0; margin-bottom: 14px; }
.headline-hero { font: 600 clamp(2.75rem, 9.5vw, 6rem)/1.05 var(--sans); letter-spacing: -.03em; }
.headline-section { font: 600 clamp(2.25rem, 6vw, 4rem)/1.08 var(--sans); letter-spacing: -.03em; max-width: 14em; }
.center .headline-section { margin-inline: auto; }
.headline-tile { font: 600 1.5rem/1.17 var(--sans); letter-spacing: -.015em; }
.lead { font: 600 clamp(1.1875rem, 2.4vw, 1.5rem)/1.38 var(--sans); color: var(--fg-2); max-width: 30em; margin: 28px auto 0; }
.lead strong { color: var(--fg); font-weight: 600; }
.lead-sm { color: var(--fg-2); margin-top: 12px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.alt { background: var(--bg-deep); }
.hero { padding: 140px 0 0; background: linear-gradient(var(--bg-top), var(--bg-0) 640px); }
.hero .wide { margin-top: 64px; padding-bottom: 96px; }
.closing { background: var(--bg-deep); padding-bottom: 120px; }
.closing .window { margin: 40px auto 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 34px; }
.btn { display: inline-block; background: var(--fg); color: var(--bg-0); padding: 12px 28px; border-radius: 980px; font: 700 1rem var(--mono); letter-spacing: 0; transition: background .2s, transform .2s; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(.97); }
.link { color: var(--fg); font-size: 1.0625rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- windows / tiles ---------- */
.window { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .45); }
.titlebar { position: relative; display: flex; align-items: center; height: 40px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.l-red { background: var(--red); } .l-yellow { background: var(--yellow); } .l-green { background: var(--green); }
.title { position: absolute; left: 0; right: 0; text-align: center; font: 600 .75rem var(--mono); color: var(--fg-3); letter-spacing: 0; pointer-events: none; }

.grid { display: grid; gap: 20px; margin-top: 56px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.crew { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tile { border-radius: 28px; }
.window.tile { border-radius: 20px; display: flex; flex-direction: column; }
.tile-body { padding: 28px 26px 30px; }
.ticks { margin-top: 20px; color: var(--fg-3); font-size: .9375rem; }
.ticks li { position: relative; padding-left: 20px; margin-top: 9px; }
.ticks li::before { content: "›"; position: absolute; left: 2px; font: 700 1rem var(--mono); color: var(--fg); }

/* terminal */
.terminal { border-radius: 16px; text-align: left; }
.term-body { padding: 22px 24px 26px; font: clamp(.75rem, 2.9vw, 1rem)/1.75 var(--mono); letter-spacing: 0; min-height: 15.5em; }
.term-body p { margin: 0; overflow-wrap: anywhere; }
.prompt { color: var(--fg-2); }
.cmd-text { font-weight: 700; }
.out { color: var(--fg-3); }
.out.strong { color: var(--fg); font-weight: 700; font-size: 1.15em; }
.key { color: var(--fg-2); display: inline-block; min-width: 9ch; }
.cursor { display: inline-block; width: .55em; height: 1.05em; background: var(--fg); vertical-align: -.17em; }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-line[hidden] { display: none; }

/* principles */
.principles { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.principles li { display: flex; gap: 18px; align-items: flex-start; padding: 30px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 28px; }
.principles .num { font: 700 .9375rem var(--mono); color: var(--fg-2); padding-top: 5px; letter-spacing: 0; }
.principles p { color: var(--fg-2); font-size: 1.1875rem; line-height: 1.45; }
.principles strong { display: block; color: var(--fg); font: 600 1.5rem/1.2 var(--sans); letter-spacing: -.015em; margin-bottom: 8px; }

/* crew */
.member { padding: 28px 18px; text-align: center; background: var(--bg-1); border: 1px solid var(--line); transition: background .3s var(--ease), transform .3s var(--ease); }
.member:hover { background: var(--bg-2); transform: translateY(-4px); }
.avatar { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); font: 700 1rem var(--mono); color: var(--fg); letter-spacing: 0; }
.member:hover .avatar { background: var(--bg-1); }
.member h3 { font: 700 1rem var(--mono); letter-spacing: 0; }
.role { color: var(--fg-3); font-size: .9375rem; margin-top: 2px; }

/* contact */
.mail { max-width: 560px; text-align: left; }
.mail-body { padding: 22px 24px; font: clamp(.9375rem, 3.6vw, 1.25rem) var(--mono); letter-spacing: 0; overflow-wrap: anywhere; }
.mail-link { font-weight: 700; }
.mail-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* footer */
.site-footer { background: #0a0a0b; color: var(--fg-2); font: .75rem/1.4 var(--mono); letter-spacing: 0; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; max-width: 1080px; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .menu-btn { display: block; }
  .nav-mobile { display: block; }
  section { padding: 72px 0; }
  .hero { padding-top: 110px; }
  .hero .wide { margin-top: 44px; padding-bottom: 72px; padding-inline: 14px; }
  .tile-body { padding: 24px 22px 26px; }
  .principles li { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .blink { animation: none; }
  .member, .btn, .site-header::before, .nav-mobile, .menu-btn span { transition: none; }
  .member:hover { transform: none; }
}
