/* ── passkeasy.com home ──────────────────────────────────────────
   Mobile first. One accent (amber), hairlines instead of boxes,
   mono for anything that is data. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --panel: rgba(17, 17, 21, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededf0;
  --muted: rgba(237, 237, 240, 0.62);
  --hint: rgba(237, 237, 240, 0.40);
  --accent: #ffb454;
  --accent-2: #ffd9a0;
  --accent-bg: rgba(255, 180, 84, 0.10);
  --ok: #4ade80;
  --busy: #fbbf24;
  --bad: #f87171;
  --wrap: 1120px;
  --gut: 20px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: normal; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
kbd {
  font-family: var(--mono); font-size: .9em; padding: 0 .4em;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; color: var(--text);
}

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ── backdrop: a quiet blueprint grid and one warm light ─────── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 85% -8%, rgba(255,180,84,.13), transparent 70%),
    radial-gradient(520px 380px at -10% 30%, rgba(255,180,84,.05), transparent 70%);
}

/* ── top bar ──────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.bar.scrolled { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { font-family: var(--mono); font-weight: 700; font-size: 15px; display: flex; align-items: center; letter-spacing: -.01em; }
.brand-cur { color: var(--accent); animation: blink 1.1s steps(1) infinite; margin-right: 10px; }
.brand-name { font-weight: 500; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
.bar-nav { display: none; gap: 22px; font-family: var(--mono); font-size: 13px; color: var(--hint); }
.bar-nav a { transition: color .2s; }
.bar-nav a:hover, .bar-nav a[aria-current="true"] { color: var(--text); }
.bar-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(255,255,255,.02);
  white-space: nowrap;
}
.bar-live:hover { border-color: var(--line-2); color: var(--text); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hint); display: inline-block; flex: none; position: relative; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(74,222,128,.14); }
.dot.busy { background: var(--busy); box-shadow: 0 0 0 3px rgba(251,191,36,.16); animation: breathe 1.4s ease-in-out infinite; }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(248,113,113,.16); }
@keyframes breathe { 50% { opacity: .35; } }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { display: grid; gap: 40px; padding-top: 44px; padding-bottom: 24px; }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.who b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.who span { display: block; font-size: 12px; color: var(--accent); line-height: 1.4; }

h1 {
  font-size: clamp(2.5rem, 9.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 12ch;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 14.5px;
  background: var(--text); color: #0a0a0c;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.28); }

/* ── live panel ───────────────────────────────────────────────── */
.live {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.live::before {  /* hairline highlight along the top edge */
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,180,84,.55), transparent);
}
.live-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 11.5px; color: var(--hint); border-bottom: 1px solid var(--line); }
.live-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.live-sec { padding: 18px 20px; }
.live-sec + .live-sec { border-top: 1px solid var(--line); }
.live-label { font-size: 11.5px; color: var(--hint); margin-bottom: 12px; }

.ld-state { display: flex; align-items: center; gap: 10px; }
.ld-state b { font-weight: 600; font-size: 16px; }
.ld-when { margin-left: auto; font-size: 12px; color: var(--hint); }
.ld-msg { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; min-height: 1.45em; overflow-wrap: anywhere; }
.ld-meta { margin-top: 8px; font-size: 11.5px; color: var(--hint); }
.ld-meta b { color: var(--muted); font-weight: 500; }
.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: rgba(255,180,84,.16); } 100% { background: transparent; } }

.lh-body { display: flex; gap: 20px; align-items: center; }
.lh-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 184px; flex: none; }
.lh-grid i { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.05); transform: scale(.4); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.lh-grid i.in { transform: none; opacity: 1; }
.lh-grid i.pad { visibility: hidden; }
.lh-grid i.l1 { background: rgba(255,180,84,.24); }
.lh-grid i.l2 { background: rgba(255,180,84,.46); }
.lh-grid i.l3 { background: rgba(255,180,84,.72); }
.lh-grid i.l4 { background: var(--accent); box-shadow: 0 0 12px rgba(255,180,84,.45); }
.lh-grid i.today { outline: 1px solid rgba(255,255,255,.55); outline-offset: 1px; }
.lh-stats { display: grid; gap: 12px; min-width: 0; }
.lh-stats div { min-width: 0; }
.lh-stats dt { font-family: var(--mono); font-size: 11px; color: var(--hint); white-space: nowrap; }
.lh-stats dd { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }

.ln-list { list-style: none; display: grid; gap: 2px; }
.ln-list li { min-width: 0; }
.ln-list a, .ln-list .ln-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 7px 0; }
.ln-repo { font-family: var(--mono); font-size: 12.5px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-when { font-family: var(--mono); font-size: 11.5px; color: var(--hint); text-align: right; }
.ln-msg { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-list a:hover .ln-msg { color: var(--text); }
.sk { height: 44px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.07), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sk 1.4s linear infinite; margin: 4px 0; }
@keyframes sk { to { background-position: -200% 0; } }
.live-dim { font-size: 13.5px; color: var(--hint); }

/* ── sections ─────────────────────────────────────────────────── */
.sec { padding-top: 64px; padding-bottom: 24px; }
.sec-h { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; margin-bottom: 28px; }
.sec-i { font-size: 12px; color: var(--accent); }
.sec-h h2 { font-size: clamp(1.6rem, 5.6vw, 2.2rem); letter-spacing: -0.035em; font-weight: 650; line-height: 1.1; }
.sec-h p { grid-column: 2; margin-top: 10px; color: var(--muted); max-width: 40em; font-size: 15.5px; text-wrap: pretty; }

/* built end to end: a hairline grid, no cards */
.arcs { list-style: none; display: grid; border-top: 1px solid var(--line); }
.arc { padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.arc-area { font-size: 11.5px; color: var(--accent); letter-spacing: .02em; }
.arc h3 { margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.arc p { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.stack { margin-top: 28px; display: grid; gap: 10px; }
.stack div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 14px; }
.stack dt { font-size: 12px; color: var(--hint); padding-top: 2px; }
.stack dd { color: var(--muted); }

/* lab */
.exps { list-style: none; border-top: 1px solid var(--line); }
.exp a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 4px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: background .25s;
}
.exp-name { font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.exp-live { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ok); border: 1px solid rgba(74,222,128,.35); padding: 1px 7px; border-radius: 99px; letter-spacing: .04em; }
.exp-dates { grid-row: 1; grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--hint); text-align: right; white-space: nowrap; }
.exp-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--hint); border: 1px solid var(--line-2); padding: 1px 7px; border-radius: 99px; }
.exp-find { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.exp-go { display: none; font-family: var(--mono); font-size: 12px; color: var(--hint); transition: color .2s; }
.exp a:hover .exp-go { color: var(--accent); }
.exp a:hover .exp-name { color: var(--accent-2); }
.more { display: inline-flex; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--accent); }
.more span { transition: transform .2s var(--ease); }
.more:hover span { transform: translateX(3px); }

/* made */
.tiles { display: grid; gap: 12px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.015);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
  min-height: 180px;
}
.tile:hover { border-color: rgba(255,180,84,.35); background: rgba(255,180,84,.03); transform: translateY(-2px); }
.tile-k { font-size: 11.5px; color: var(--hint); }
.tile h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.tile h3 span { color: var(--hint); font-weight: 400; transition: color .2s, transform .2s; display: inline-block; }
.tile:hover h3 span { color: var(--accent); transform: translate(2px, -1px); }
.tile p { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 34em; }

.tile-arcade { padding-bottom: 60px; }
.marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; width: max-content;
  padding: 10px 0; font-size: 11.5px; letter-spacing: .12em; color: var(--accent);
  border-top: 1px solid rgba(255,180,84,.18);
  background: linear-gradient(180deg, rgba(255,180,84,.07), rgba(255,180,84,.02));
  text-shadow: 0 0 10px rgba(255,180,84,.5);
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.marquee span { padding-right: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tile-os { padding-bottom: 104px; }
.mini-os {
  position: absolute; left: 22px; right: 22px; bottom: -1px; height: 84px;
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0;
  background:
    radial-gradient(160px 80px at 80% 0%, rgba(255,180,84,.18), transparent 70%),
    #0f0f13;
  overflow: hidden;
}
.mw { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(24,24,30,.95); box-shadow: 0 10px 20px -8px rgba(0,0,0,.8); transition: transform .5s var(--ease); }
.mw::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); border-radius: 6px 6px 0 0; }
.mw::after { content: ""; position: absolute; left: 8px; right: 30%; top: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); box-shadow: 0 9px 0 rgba(255,255,255,.07), 0 18px 0 rgba(255,255,255,.07); }
.mw1 { left: 8%; top: 12px; width: 44%; height: 70px; }
.mw2 { left: 40%; top: 24px; width: 46%; height: 70px; }
.mw2::before { background: rgba(255,180,84,.22); }
.mtb { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: rgba(255,255,255,.06); border-top: 1px solid rgba(255,255,255,.1); }
.mtb::before { content: ""; position: absolute; left: 6px; top: 3px; width: 16px; height: 5px; border-radius: 2px; background: var(--accent); }
.tile-os:hover .mw1 { transform: translate(-6px, -3px); }
.tile-os:hover .mw2 { transform: translate(8px, -6px); }

/* trace */
.trace { list-style: none; position: relative; display: grid; gap: 0; }
.trace::before {  /* the wire */
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, var(--line-2), var(--line-2));
}
.trace::after {  /* the packet */
  content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px 2px rgba(255,180,84,.7);
  opacity: 0;
}
.trace.run::after { animation: packet-v 1.6s var(--ease) forwards; }
@keyframes packet-v { 0% { opacity: 0; top: 6px; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 14px); } }
.hop { position: relative; padding: 0 0 26px 32px; display: grid; gap: 2px; align-content: start; }
.hop:last-child { padding-bottom: 0; }
.hop::before {  /* node */
  content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .4s, box-shadow .4s;
}
.hop.on::before { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,180,84,.12); }
.hop-k { font-size: 11px; color: var(--hint); }
.hop b { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.hop-v { font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.hop-v em { font-style: normal; color: var(--accent); }
.hop-s { font-size: 12px; color: var(--hint); }
.trace-note { margin-top: 26px; font-size: 12px; color: var(--hint); max-width: 60em; }

/* footer */
.foot { margin-top: 88px; padding-top: 36px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; gap: 36px; }
.foot-h { font-size: 11.5px; color: var(--hint); margin-bottom: 14px; }
.marks, .elsewhere { list-style: none; display: grid; gap: 10px; }
.marks a { display: grid; gap: 1px; }
.marks b { font-weight: 600; font-size: 14.5px; transition: color .2s; }
.marks span { font-size: 13.5px; color: var(--hint); }
.marks a:hover b, .elsewhere a:hover { color: var(--accent); }
.elsewhere a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.foot-fine { margin-top: 40px; font-size: 12px; color: var(--hint); }
.kbd-hint { display: none; }

/* ── motion ───────────────────────────────────────────────────── */
.rise { animation: rise .9s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .06s; }
.hero .rise:nth-child(3) { animation-delay: .14s; }
.hero .rise:nth-child(4) { animation-delay: .22s; }
.live.rise { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .lh-grid i { transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ── wider screens ────────────────────────────────────────────── */
@media (min-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 760px) {
  :root { --gut: 32px; }
  .bar-nav { display: flex; margin-left: 12px; }
  .arcs { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .arc { border-top: 1px solid var(--line); border-bottom: 0; padding: 24px 0 26px; }
  .arcs { border-bottom: 1px solid var(--line); }
  .stack { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .exp a { grid-template-columns: 180px 1fr auto; column-gap: 28px; align-items: baseline; padding: 20px 0; }
  .exp-name { grid-column: 1; grid-row: 1; }
  .exp-find { grid-column: 2; grid-row: 1; }
  .exp-dates { grid-column: 3; grid-row: 1; }
  .exp-go { display: block; grid-column: 2; grid-row: 2; }
  .exp-tag { display: none; }
  .exp a:hover { background: linear-gradient(90deg, transparent, rgba(255,180,84,.035), transparent); }
  .kbd-hint { display: inline; }

  /* the trace runs left to right */
  .trace { grid-template-columns: repeat(4, 1fr); column-gap: 20px; padding-top: 30px; }
  .trace::before { left: 6px; right: 12%; top: 5px; bottom: auto; width: auto; height: 1px; }
  .trace::after { top: 2px; left: 0; }
  .trace.run::after { animation-name: packet-h; }
  @keyframes packet-h { 0% { opacity: 0; left: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; left: 78%; } }
  .hop { padding: 0; }
  .hop::before { left: 0; top: -30px; }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; min-height: min(760px, calc(100svh - 56px)); }
  .sec { padding-top: 88px; }
  .sec-h { grid-template-columns: 1fr 2fr; column-gap: 40px; margin-bottom: 36px; }
  .sec-h .sec-i { grid-row: 1; grid-column: 1; }
  .sec-h h2 { grid-column: 1; grid-row: 2; margin-top: 6px; }
  .sec-h p { grid-column: 2; grid-row: 2; margin-top: 0; align-self: end; }
  .arcs { grid-template-columns: repeat(3, 1fr); }
  .stack { grid-template-columns: repeat(4, 1fr); }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { min-height: 300px; }
}

/* ── 404 ──────────────────────────────────────────────────────── */
.nf { padding-top: 18vh; padding-bottom: 20vh; }
.nf-code { font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.nf h1 { max-width: 16ch; }
