@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url("fonts/space-grotesk.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono.woff2") format("woff2"); }
@font-face { font-family: "Gasoline"; font-weight: 400; font-display: swap; src: url("fonts/gasoline.woff2") format("woff2"); }
@font-face { font-family: "Neighbor"; font-weight: 400; font-display: swap; src: url("fonts/neighbor.woff2") format("woff2"); }

:root {
  /* Moonlit Forest Journey */
  --onyx: #131316;
  --shadow-1: #1c1c21;
  --shadow-2: #26262c;
  --graphite: #2f3037;
  --gunmetal: #393a41;
  --charcoal-1: #4b4c52;
  --charcoal-2: #5b5c62;
  --dim-grey: #6a6b70;

  --bg: var(--onyx);
  --surface: var(--shadow-1);
  --surface-2: var(--shadow-2);
  --line: var(--graphite);
  --line-2: var(--gunmetal);
  --decor: var(--dim-grey);
  /* Text tints share the palette's cool undertone; palette tones are too dark to read as text. */
  --ink: #ececef;
  --ink-2: #b5b6bc;
  --ink-3: #9c9da3;
  --sand: #a68a64;
  --accent: var(--sand);
  --accent-ink: var(--onyx);
  --brown: #6b4423;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Gasoline", "Space Grotesk", ui-sans-serif, sans-serif;
  --title: "Neighbor", "Space Grotesk", ui-sans-serif, sans-serif;
  --side: clamp(320px, 27vw, 400px);
  --gutter: clamp(20px, 4vw, 72px);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--ink-3); }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font: 600 14px var(--mono); transition: top 0.2s; }
.skip:focus { top: 16px; }

/* Ambient background */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora span:nth-child(1) { width: 52vmax; height: 52vmax; left: -12vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(91, 92, 98, 0.55), transparent); animation: drift1 28s var(--ease) infinite alternate; }
.aurora span:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 30vh; background: radial-gradient(closest-side, rgba(75, 76, 82, 0.45), transparent); animation: drift2 34s var(--ease) infinite alternate; }
.aurora span:nth-child(3) { width: 46vmax; height: 46vmax; left: 30vw; bottom: -30vmax; background: radial-gradient(closest-side, rgba(106, 107, 112, 0.35), transparent); animation: drift1 40s var(--ease) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vmax, -8vmax) scale(0.9); } }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
}

/* Layout */
.shell { position: relative; z-index: 2; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 5;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.78), rgba(19, 19, 22, 0.78));
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow-y: auto; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.side-inner { display: flex; flex-direction: column; gap: 20px; padding: 28px 28px 24px; min-height: 100%; }

.portrait { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; isolation: isolate; box-shadow: 0 30px 60px -30px rgba(10, 10, 12, 0.8), 0 0 0 1px var(--line-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(0.9) contrast(1.05); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(106, 107, 112, 0.22), transparent 42%), linear-gradient(to top, rgba(19, 19, 22, 0.6), transparent 35%); pointer-events: none; }

.name { font-family: var(--display); font-size: 38px; line-height: 1; letter-spacing: 0.005em; font-weight: 400; }
.title { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin-top: 8px; }
.sep { color: var(--ink-3); padding: 0 2px; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-3); font-size: 12px; }
.dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(166, 138, 100, 0.55); animation: ping 2.4s var(--ease) infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(166, 138, 100, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 138, 100, 0); } }

.side-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  font: 500 13px/1 var(--mono); cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .handle { overflow: hidden; text-overflow: ellipsis; }
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.btn.primary:hover { box-shadow: 0 8px 30px -8px rgba(166, 138, 100, 0.55); }

.side-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 12px; margin: 0 -12px;
  border-radius: 10px; color: var(--ink-2); font-size: 15px; transition: color 0.2s, background 0.2s;
}
.side-nav a .mono { font-size: 11px; color: var(--ink-3); transition: color 0.2s; }
.side-nav a::after { content: ""; position: absolute; right: 12px; width: 18px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease); }
.side-nav a:hover { color: var(--ink); background: var(--surface); }
.side-nav a.active { color: var(--ink); }
.side-nav a.active .mono { color: var(--accent); }
.side-nav a.active::after { transform: scaleX(1); }

.socials { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.socials a {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.socials svg { width: 18px; height: 18px; }
.socials a:hover { color: var(--accent); border-color: var(--line-2); transform: translateY(-2px); }
.socials a::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px);
  font: 500 11px/1 var(--mono); padding: 6px 8px; border-radius: 6px; background: var(--ink); color: var(--bg);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.socials a:hover::after, .socials a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.kbar-trigger {
  margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-3); cursor: pointer;
  font: 500 13px var(--mono); transition: color 0.2s, border-color 0.2s;
}
.kbar-trigger svg { width: 16px; height: 16px; }
.kbar-trigger kbd { margin-left: auto; }
.kbar-trigger:hover { color: var(--ink); border-color: var(--ink-3); }
kbd { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }

/* Content */
.content { padding: 0 var(--gutter) 0; max-width: 1040px; width: 100%; outline: none; }
.intro { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 12px; color: var(--ink-2); padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.display { margin-top: 28px; font-family: var(--display); font-size: clamp(46px, 6.8vw, 108px); line-height: 0.92; letter-spacing: 0; font-weight: 400; max-width: 13ch; }
.display em { color: var(--accent); }
.typed { margin-top: 32px; color: var(--ink-2); font-size: clamp(14px, 1.6vw, 17px); min-height: 1.7em; }
.caret { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.block { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.block-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.block-head .mono { font-size: 12px; color: var(--accent); }
.block-head h2 { font-family: var(--display); font-size: 20px; font-weight: 400; letter-spacing: 0.06em; color: var(--ink); }

.about { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; }
.prose p { color: var(--ink-2); margin-bottom: 18px; }
.prose .lead { color: var(--ink); font-size: clamp(20px, 2vw, 25px); line-height: 1.45; letter-spacing: -0.015em; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: start; }
.stats div { background: var(--bg); padding: 20px; }
.stats dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.stats dd { margin: 8px 0 0; font-family: var(--title); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; white-space: nowrap; font-weight: 400; letter-spacing: 0; }

.now { list-style: none; margin: 0; padding: 0; }
.now li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.now li:first-child { padding-top: 0; }
.now .mono { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; padding-top: 4px; }
.now p { color: var(--ink-2); font-size: 18px; }
.now em { color: var(--ink); font-weight: 500; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; min-height: 240px; border-radius: var(--radius);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(160deg, var(--line-2), var(--line) 40%) border-box;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(166, 138, 100, 0.12), transparent 42%); }
.card:hover::before { opacity: 1; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(10, 10, 12, 0.9); }
.card.feature { grid-column: span 4; background: linear-gradient(135deg, var(--shadow-2), var(--bg) 60%) padding-box, linear-gradient(160deg, rgba(166, 138, 100, 0.6), var(--line) 50%) border-box; }
.card.feature h3 { font-size: clamp(36px, 4vw, 50px); }
.card.wide { grid-column: 1 / -1; min-height: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.chip { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); }
.status { font-size: 11px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.status.live::before, .status.wip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.status.wip::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.card h3 { font-family: var(--title); font-size: 30px; line-height: 1.02; font-weight: 400; letter-spacing: 0; }
.card p { color: var(--ink-2); font-size: 15px; }
.go { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--ink); display: inline-flex; gap: 6px; }
a.card:hover .go { color: var(--accent); }

.mats { display: grid; gap: 20px; max-width: 720px; }
.belt { height: 30px; max-width: 360px; border-radius: 4px; position: relative; background: linear-gradient(180deg, #7a4f2b, var(--brown) 45%, #4e3018); box-shadow: 0 14px 40px -10px rgba(107, 68, 35, 0.55); }
.belt span { position: absolute; right: 18px; top: 0; bottom: 0; width: 48px; background: var(--onyx); }
.belt span::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 5px; transform: translateX(-50%); background: var(--ink); }
.big { font-family: var(--title); font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: 0; }
.mats p:not(.big) { color: var(--ink-2); }

.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px;
  padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font: 500 16px/1.2 var(--sans); text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.link:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateX(2px); }
.link .handle { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; text-align: right; }
.link:hover .handle { color: var(--accent); }
.sub { font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin: 36px 0 12px; }
.pays { display: flex; flex-wrap: wrap; gap: 10px; }
.pay { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; transition: border-color 0.2s; }
.pay .mono { font-size: 12px; color: var(--ink-3); }
.pay:hover { border-color: var(--accent); }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* Command palette */
.kbar { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(600px, calc(100vw - 32px)); margin: 14vh auto auto; }
.kbar::backdrop { background: rgba(19, 19, 22, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kbar[open] .kbar-box { animation: pop 0.18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.kbar-box { border-radius: 18px; border: 1px solid var(--line-2); background: rgba(28, 28, 33, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 40px 80px -20px rgba(10, 10, 12, 0.8); overflow: hidden; }
.kbar-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.kbar-input svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.kbar-input input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--ink); font: 400 16px var(--sans); outline: none; }
.kbar-input input::placeholder { color: var(--ink-3); }
.kbar-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.kbar-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.kbar-list li .mono { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.kbar-list li[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.kbar-list li[aria-selected="true"] .mono { color: var(--accent); }
.kbar-list .empty { cursor: default; color: var(--ink-3); }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (min-width: 921px) and (max-height: 860px) {
  .side-inner { gap: 12px; padding-top: 18px; padding-bottom: 16px; }
  .portrait { aspect-ratio: 16 / 10; }
  .name { font-size: 28px; }
  .side-nav { padding-top: 8px; }
  .side-nav a { padding: 6px 12px; }
}
@media (min-width: 921px) and (max-height: 700px) {
  .portrait { aspect-ratio: 2 / 1; }
  .side-nav { display: none; }
}
@media (max-width: 1180px) {
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.feature, .card.wide { grid-column: span 1; }
  .card.feature, .card.wide { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .side-inner { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 18px 20px; padding: 20px 16px; }
  .portrait { aspect-ratio: 1 / 1; border-radius: 16px; }
  .name { font-size: 32px; }
  .side-cta, .side-nav, .socials, .kbar-trigger { grid-column: 1 / -1; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-top: 12px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { margin: 0; padding: 8px 12px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .side-nav a::after { display: none; }
  .side-nav a .mono { display: none; }
  .kbar-trigger { margin-top: 0; }
  .content { padding: 0 16px; }
  .intro { min-height: 0; padding: 56px 0 48px; }
  .block { padding: 56px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .side-inner { grid-template-columns: 96px 1fr; }
  .name { font-size: 28px; }
  .title { font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .now li { grid-template-columns: 1fr; gap: 6px; }
  .bento, .links { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .socials { justify-content: space-between; }
  .socials li { flex: 1; }
  .socials a { width: 100%; }
}
@media (hover: none) {
  .socials a::after { display: none; }
  .kbar-trigger, .kbd-hint { display: none; }
}
/* Text reveal: ported from 21st.dev "Text Reveal" (kuratlielia). CSS-only so it runs on first paint. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rv-clip { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; padding-bottom: 0.24em; margin-bottom: -0.24em; vertical-align: top; }
.rv-word { display: inline-block; animation: rv-rise 0.9s var(--ease) both; }
@keyframes rv-rise { from { transform: translateY(105%); filter: blur(10px); opacity: 0; } 60% { opacity: 1; } to { transform: none; filter: blur(0); opacity: 1; } }
.rv-line .rv-clip:nth-child(1) .rv-word { animation-delay: 0.080s; }
.rv-line .rv-clip:nth-child(2) .rv-word { animation-delay: 0.135s; }
.rv-line .rv-clip:nth-child(3) .rv-word { animation-delay: 0.190s; }
.rv-line .rv-clip:nth-child(4) .rv-word { animation-delay: 0.245s; }
.rv-line .rv-clip:nth-child(5) .rv-word { animation-delay: 0.300s; }
.rv-line .rv-clip:nth-child(6) .rv-word { animation-delay: 0.355s; }
.rv-line .rv-clip:nth-child(7) .rv-word { animation-delay: 0.410s; }
.rv-line .rv-clip:nth-child(8) .rv-word { animation-delay: 0.465s; }
.rv-line .rv-clip:nth-child(9) .rv-word { animation-delay: 0.520s; }
.rv-line .rv-clip:nth-child(10) .rv-word { animation-delay: 0.575s; }
.rv-line .rv-clip:nth-child(11) .rv-word { animation-delay: 0.630s; }
.rv-line .rv-clip:nth-child(12) .rv-word { animation-delay: 0.685s; }
.rv-line .rv-clip:nth-child(13) .rv-word { animation-delay: 0.740s; }
.rv-line .rv-clip:nth-child(14) .rv-word { animation-delay: 0.795s; }

/* Glowing border: ported from 21st.dev "Glowing Effect" (Aceternity), recolored to sand + charcoal. */
.card { --start: 0; --active: 0; --spread: 44; --glow-w: 2px; }
.card .glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; }
.card .glow::before, .card .glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--glow-w);
  /* Bright arc centred on --start; everything else transparent. */
  background: conic-gradient(from calc((var(--start) - var(--spread)) * 1deg),
    transparent 0deg, #c9ad85 calc(var(--spread) * 0.6deg), #f0dfc2 calc(var(--spread) * 1deg),
    var(--sand) calc(var(--spread) * 1.4deg), transparent calc(var(--spread) * 2deg));
  /* Ring mask: keep only the border band. */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--active); transition: opacity 0.35s;
}
.card .glow::before { --glow-w: 6px; filter: blur(8px); opacity: calc(var(--active) * 0.6); }
@media (hover: none) { .card .glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .rv-word { animation: none; } .card .glow { display: none; } }

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

.notfound { position: relative; z-index: 2; margin: 0 auto; }
.notfound .intro { min-height: 100vh; }
.notfound-cta { margin-top: 36px; }
.notfound-cta .btn { padding: 0 22px; }
