@font-face {
  font-family: KaramahSans;
  src: url('/assets/general-sans.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas-light: #fdfcf8;
  --surface-light: #fffdf8;
  --ink-light: #202923;
  --canvas: var(--canvas-light);
  --surface: var(--surface-light);
  --ink: var(--ink-light);
  --accent-light: #2b745c;
  --accent: var(--accent-light);
  --content-width: 680px;
  --muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --faint: color-mix(in srgb, var(--ink) 44%, transparent);
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 17%, transparent);
  /* Decorative surfaces stay neutral. Accent is reserved for state and links. */
  --accent-wash: color-mix(in srgb, var(--ink) 5%, var(--surface));
  --radius-card: 16px;
  --radius-image: 11px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: KaramahSans, sans-serif;
  color: var(--ink);
  background: #fff;
}

:root[data-corners='compact'] { --radius-card: 10px; --radius-image: 7px; }
:root[data-corners='pill'] { --radius-card: 28px; --radius-image: 22px; }
:root[data-theme='dark'] { color-scheme: dark; }
:root[data-theme='system'] { color-scheme: light dark; }

:root[data-color-mode='dark'] {
  color-scheme: dark;
  --canvas: #0d1a1f;
  --surface: #182a32;
  --ink: #f4f1e9;
  --accent: #e2b85b;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='system'] { color-scheme: dark; }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; background: var(--canvas); }
body {
  min-width: 280px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.startup-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 32px;
  background: var(--canvas);
  opacity: 1;
  transform: translateZ(0);
  transition: opacity 240ms var(--ease-out);
}
.startup-mark { position:relative; display:grid; justify-items:center; gap:18px; width:min(64vw,238px); isolation:isolate; }
.startup-mark img { display:block; width:100%; height:auto; opacity:0; transform:scale(.985); animation:startup-mark-in 620ms var(--ease-out) 80ms forwards; }
.startup-mark span { position:relative; width:54px; height:1px; overflow:hidden; background:var(--line-strong); }
.startup-mark span::after { content:''; position:absolute; inset:0; background:var(--accent); transform:translateX(-100%); animation:startup-progress 900ms var(--ease-out) 120ms both; }
.startup-mark-gathering::before,
.startup-mark-gathering::after { content:''; position:absolute; bottom:24px; width:7px; height:7px; border-radius:50%; background:var(--accent); opacity:0; }
.startup-mark-gathering::before { margin-left:-44px; }
.startup-mark-gathering::after { margin-left:44px; }
.startup-mark-gathering span { position:absolute; bottom:24px; width:7px; height:7px; border-radius:50%; background:var(--accent); opacity:0; }
.startup-mark-gathering span::after { display:none; }
.startup-mark-gathering img { animation:gathering-logo 820ms var(--ease-out) 300ms forwards; }
.startup-mark-gathering::before { animation:gathering-left 760ms var(--ease-out) both; }
.startup-mark-gathering span { animation:gathering-center 760ms var(--ease-out) 80ms both; }
.startup-mark-gathering::after { animation:gathering-right 760ms var(--ease-out) 160ms both; }
.startup-screen.is-closing { opacity:0; pointer-events:none; }
.startup-screen.is-closing .startup-mark { transform:translateY(-4px) scale(.99); transition:transform 240ms var(--ease-out); }
:root[data-color-mode='dark'] .startup-mark img { filter:brightness(0) invert(1); }
:root[data-color-mode='dark'] .startup-screen { background:#101815; }
:root[data-color-mode='dark'] .brand img[src*='karamah-logo'],
:root[data-color-mode='dark'] #profile-image[src*='karamah-logo'] { filter:invert(1); }

.masthead-actions { display:flex; align-items:center; gap:7px; }
.theme-toggle { width:38px; height:38px; display:grid; place-items:center; padding:0; border:1px solid var(--line); border-radius:13px; background:color-mix(in srgb,var(--surface) 80%,transparent); color:var(--ink); cursor:pointer; transition:background-color 180ms ease,border-color 180ms ease,transform 150ms var(--ease-out); }
.theme-toggle svg { grid-area:1/1; width:16px; height:16px; transition:opacity 160ms ease,transform 180ms var(--ease-out); }
.theme-toggle .theme-sun { opacity:0; transform:scale(.9); }
:root[data-color-mode='dark'] .theme-toggle .theme-moon { opacity:0; transform:scale(.9); }
:root[data-color-mode='dark'] .theme-toggle .theme-sun { opacity:1; transform:scale(1); }
.theme-toggle:active { transform:scale(.97); }

.atmosphere { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.atmosphere::before {
  content: '';
  position: absolute;
  top: -32vmax;
  left: 50%;
  width: 72vmax;
  height: 72vmax;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 46% 54% 52% 48%;
  box-shadow: 0 0 0 42px color-mix(in srgb, var(--accent) 2.5%, transparent), 0 0 0 84px color-mix(in srgb, var(--accent) 1.5%, transparent);
  transform: translateX(-50%) rotate(-14deg);
}
.atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .016;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-background='plain'] .atmosphere { display: none; }
:root[data-background='mist'] .atmosphere {
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 32%);
}

.page {
  position: relative;
  width: min(calc(100% - 32px), var(--content-width));
  max-width: 720px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 18px 0 28px;
}
:root[data-layout='grid'] .page { max-width: 940px; }

.masthead {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: reveal 420ms var(--ease-out) both;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 610;
  transition: color 180ms var(--ease-out);
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.page-share {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px 4px 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 5%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 56%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: border-color 240ms var(--ease-out), background-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.page-share i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  transition: transform 300ms var(--ease-out), background-color 240ms var(--ease-out);
}
.page-share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-share:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--surface); box-shadow: 0 7px 20px color-mix(in srgb, var(--ink) 8%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 62%, transparent); transform: translateY(-1px); }
.page-share:hover i { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); transform: translateY(-1px); }
.page-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.profile-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 32px;
  text-align: center;
  animation: reveal 460ms var(--ease-out) 40ms both;
}
.profile-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 20px;
  width: min(370px, 82%);
  height: 142px;
  border: 1px solid color-mix(in srgb, var(--accent) 11%, transparent);
  border-radius: 52% 48% 44% 56%;
  transform: rotate(-3deg);
}
.profile-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 45px;
  width: min(300px, 68%);
  height: 104px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  transform: rotate(5deg);
}
.profile-portrait {
  position: relative;
  width: 92px;
  height: 92px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 31px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.portrait-core {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 17px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 75%, transparent);
}
.portrait-core img { width: 100%; height: 100%; object-fit: contain; }
.portrait-orbit {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border: 5px solid var(--canvas);
  border-radius: 50%;
  background: var(--accent);
  animation: orbit-breathe 4.8s var(--ease-out) infinite;
}
.profile-copy { margin-top: 18px; }
.kicker {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.profile-copy h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.05;
  font-weight: 630;
  letter-spacing: -.045em;
}
.profile-copy .kicker:not([hidden]) + h1 { margin-top: 7px; }
.profile-copy p {
  max-width: 46ch;
  margin: 9px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.socials {
  width: 100%;
  margin-bottom: 26px;
  animation: reveal 480ms var(--ease-out) 70ms both;
}
.socials-head { margin-bottom: 11px; padding: 0 3px; text-align: center; }
.socials-head h2 { margin: 5px 0 0; font-size: 15px; font-weight: 620; letter-spacing: -.02em; }
.socials-head p { max-width: 46ch; margin: 5px auto 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.social-list { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; }
.social-card {
  width: 52px;
  min-width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 62%, transparent);
  text-decoration: none;
  opacity: 0;
  animation: card-reveal 380ms var(--ease-out) calc(80ms + var(--index) * 45ms) forwards;
  transition: width 620ms var(--ease-out), gap 560ms var(--ease-out), transform 300ms var(--ease-out), border-color 360ms var(--ease-out), background-color 360ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.social-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
}
.social-icon svg { width: 18px; height: 18px; }
.social-copy { min-width: 0; max-width: 0; display: grid; gap: 1px; opacity: 0; transform: translateX(-7px); transition: max-width 620ms var(--ease-out), opacity 340ms var(--ease-out) 90ms, transform 620ms var(--ease-out); }
.social-copy small,
.social-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-copy small { color: var(--faint); font-size: 11px; font-weight: 630; letter-spacing: .06em; text-transform: uppercase; }
.social-copy strong { font-size: 13px; font-weight: 630; }

.directory { width: 100%; animation: reveal 480ms var(--ease-out) 80ms both; }
.directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0 3px;
}
.directory-copy { min-width: 0; }
.directory-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -.025em;
}
.directory-head .kicker:not([hidden]) + h2 { margin-top: 5px; }
.directory-head p {
  max-width: 52ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}
.count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 620;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.links { display: grid; gap: 9px; }
:root[data-layout='grid'] .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
  opacity: 0;
  animation: card-reveal 380ms var(--ease-out) calc(60ms + var(--index) * 45ms) forwards;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.link-card.featured { border-left: 3px solid var(--accent); }
.link-main {
  min-height: 82px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 30px;
  gap: 13px;
  align-items: center;
  padding: 10px 11px;
  text-decoration: none;
}
.link-card:has(.link-share) .link-main { padding-right: 47px; }
.link-media {
  position: relative;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: var(--radius-image);
  background: var(--accent-wash);
}
.link-media img { width: 100%; height: 100%; object-fit: cover; }
:root[data-images='contain'] .link-media img,
.link-media img.is-fallback { padding: 17%; object-fit: contain; }
.link-copy { min-width: 0; }
.link-domain {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.link-domain img { width: 11px; height: 11px; border-radius: 3px; object-fit: contain; }
.link-copy h3 {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-copy p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-arrow,
.link-share {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--faint);
}
.link-arrow { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.link-arrow svg { width: 13px; height: 13px; }
.link-card:has(.link-share) .link-arrow { display: none; }
.link-share {
  position: absolute;
  right: 10px;
  top: 50%;
  padding: 0;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 150ms var(--ease-out), color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.link-share:active { transform: translateY(-50%) scale(.94); }
.link-share span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.link-share svg { width: 14px; height: 14px; }
:root[data-cards='outline'] .link-card { background: color-mix(in srgb, var(--surface) 38%, transparent); box-shadow: none; }
:root[data-cards='solid'] .link-card { border-color: transparent; box-shadow: none; }

.skeleton {
  height: 78px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  overflow: hidden;
}
.skeleton i,
.skeleton span { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.skeleton i { width: 56px; height: 56px; border-radius: var(--radius-image); }
.skeleton span { height: 24px; max-width: 66%; border-radius: 6px; }
.skeleton i::after,
.skeleton span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, #fff 50%, transparent), transparent);
  animation: shimmer 1.5s var(--ease-out) infinite;
}
.state {
  padding: 48px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.state-mark {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: var(--accent-wash);
}
.state strong { display: block; font-size: 14px; }
.state p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.state button {
  margin-top: 16px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), filter 180ms var(--ease-out);
}
.state button:active { transform: scale(.97); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 56px;
  color: var(--faint);
}
.footer-mark { display: flex; align-items: center; gap: 8px; }
.footer-mark > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.footer-mark p { margin: 0; font-size: 8px; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; }
.site-footer > a { display: flex; align-items: center; gap: 8px; font-size: 9px; text-decoration: none; }
.site-footer > a i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.site-footer > a svg { width: 12px; height: 12px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 2;
  padding: 10px 15px;
  border: 1px solid color-mix(in srgb, var(--surface) 12%, transparent);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 10px;
  font-weight: 620;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(.98);
  transition: transform 180ms var(--ease-out), opacity 150ms var(--ease-out);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (hover: hover) and (pointer: fine) {
  .brand:hover { color: var(--accent); }
  .social-card:hover { width:min(190px, 34vw); gap:10px; transform:translateY(-2px); border-color:var(--line-strong); background:var(--surface); box-shadow:0 9px 24px color-mix(in srgb,var(--ink) 5%,transparent); }
  .social-card:hover .social-copy { max-width:118px; opacity:1; transform:translateX(0); }
  .link-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 6%, transparent); }
  .link-share:hover { color: var(--accent); background: var(--accent-wash); }
  .site-footer > a:hover { color: var(--accent); }
  .state button:hover { filter: brightness(.94); }
}

@media (max-width: 759px) {
  :root[data-layout='grid'] .links { grid-template-columns: 1fr; }
  .page { width: min(calc(100% - 24px), var(--content-width)); padding-top: 12px; }
  .brand span { display: none; }
  .page-share { width: 38px; justify-content: center; padding: 4px; border-radius: 13px; }
  .page-share i { background: transparent; }
  .page-share > span { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .profile-panel { padding: 30px 14px 28px; }
  .profile-portrait { width: 82px; height: 82px; border-radius: 28px; }
  .portrait-core { padding: 15px; border-radius: 23px; }
  .profile-copy { margin-top: 15px; }
  .profile-copy h1 { font-size: 27px; }
  .socials { margin-bottom: 23px; }
  .social-list { justify-content:center; width:calc(100% + 2px); padding:1px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
  .social-list::-webkit-scrollbar { display:none; }
  .social-card { width:48px; min-width:48px; min-height:48px; padding:6px; }
  .social-icon { width:36px; height:36px; flex-basis:36px; }
  .social-copy { display:none; }
  .directory-head { align-items: flex-start; }
  .directory-copy { min-width: 0; }
  .count { margin-top: 1px; }
  .link-main { grid-template-columns: 54px minmax(0, 1fr) 28px; gap: 11px; min-height: 76px; }
  .link-media { width: 54px; height: 54px; }
  .site-footer { padding-top: 40px; }
}

@media (max-width: 420px) {
  .page { width: calc(100% - 20px); }
  .profile-panel { padding-top: 25px; }
  .social-list { gap:7px; }
  .social-card { width:46px; min-width:46px; min-height:46px; padding:5px; }
  .social-icon { width:34px; height:34px; flex-basis:34px; }
  .directory-head { gap: 10px; }
  .directory-head h2 { font-size: 16px; }
  .link-copy h3 { font-size: 15px; }
  .footer-mark p,
  .site-footer > a > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead,
  .profile-panel,
  .socials,
  .directory,
  .link-card,
  .social-card { animation-duration: 1ms; animation-delay: 0ms; }
  .portrait-orbit { animation: none; }
  .skeleton i::after,
  .skeleton span::after { animation: none; }
  .brand,
  .startup-screen,
  .startup-mark,
  .theme-toggle,
  .page-share,
  .social-card,
  .link-card,
  .link-share,
  .state button,
  .toast { transition-duration: 1ms; }
  .startup-mark img { opacity:1; transform:none; animation:none; }
  .startup-mark span::after,
  .startup-mark-gathering::before,
  .startup-mark-gathering::after { transform:none; animation:none; }
}

@keyframes startup-mark-in { to { opacity:1; transform:scale(1); } }
@keyframes startup-progress { to { transform:translateX(0); } }
@keyframes gathering-logo { 0% { opacity:0; transform:scale(.965); } 100% { opacity:1; transform:scale(1); } }
@keyframes gathering-left { 0% { opacity:0; transform:translateX(-28px); } 55% { opacity:1; } 100% { opacity:0; transform:translateX(44px); } }
@keyframes gathering-center { 0% { opacity:0; transform:translateY(18px); } 55% { opacity:1; } 100% { opacity:0; transform:none; } }
@keyframes gathering-right { 0% { opacity:0; transform:translateX(28px); } 55% { opacity:1; } 100% { opacity:0; transform:translateX(-44px); } }

/* Keep the recognisable orbital composition, rendered as flat ink and wash. */
.atmosphere { display:block; background:none !important; }
.atmosphere::before {
  border-color:color-mix(in srgb,var(--accent) 18%,transparent);
  box-shadow:none;
  opacity:.72;
}
.atmosphere::after { opacity:.012; }
.profile-panel::before { display:block; border-color:color-mix(in srgb,var(--accent) 18%,transparent); }
.profile-panel::after { display:block; background:color-mix(in srgb,var(--accent) 6%,transparent); }
.page-share,
.portrait-core,
.social-card,
.link-card { box-shadow:none; }
.page-share:hover,
.social-card:hover,
.link-card:hover { box-shadow:none; }
.profile-portrait,
.social-card,
.page-share { background:var(--surface); }
:root[data-color-mode='dark'] .page-share,
:root[data-color-mode='dark'] .theme-toggle,
:root[data-color-mode='dark'] .profile-portrait,
:root[data-color-mode='dark'] .social-card,
:root[data-color-mode='dark'] .link-card,
:root[data-color-mode='dark'] .state,
:root[data-color-mode='dark'] .skeleton {
  box-shadow:none;
  background:var(--surface);
  backdrop-filter:none;
}
@media (hover:hover) and (pointer:fine) {
  :root[data-color-mode='dark'] .page-share:hover,
  :root[data-color-mode='dark'] .social-card:hover,
  :root[data-color-mode='dark'] .link-card:hover {
    transform:none;
    border-color:var(--accent);
    box-shadow:none;
  }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes orbit-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.86); opacity: .72; }
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Shared public masthead: Forms establishes the family proportions while
   Links keeps its own compact directory body below it. */
.site-header.masthead{position:relative;z-index:1;width:min(1160px,calc(100% - 64px));min-height:76px;margin:0 auto;animation:reveal 420ms var(--ease-out) both}
.site-header .brand{font-size:15px}.site-header .brand img{width:32px;height:32px}.site-header .masthead-actions{gap:8px}
.site-header .brand small{padding-left:10px;border-left:1px solid var(--line-strong);font-size:14px;font-weight:450;color:var(--muted)}
.theme-toggle{transition:background-color 180ms var(--ease-out),border-color 180ms var(--ease-out),color 180ms var(--ease-out)}.theme-toggle:active{transform:none}
.page-share{transition:border-color 240ms var(--ease-out),background-color 240ms var(--ease-out),box-shadow 240ms var(--ease-out),color 240ms var(--ease-out)}.page-share:hover{transform:none;box-shadow:none}.page-share:hover i,.page-share:active{transform:none}
.link-card:hover,.social-card:hover,.link-share:active,.state button:active{transform:none}
@media(max-width:640px){.site-header.masthead{width:calc(100% - 32px);min-height:68px}.site-header .brand img{width:30px;height:30px}.site-header .brand span{display:inline}.site-header .brand small{font-size:13px}}

/* One neutral social-icon system: the glyph, not a coloured badge, carries
   recognition. The existing atmosphere and logo accent remain the identity. */
.social-icon{width:40px;height:40px;flex-basis:40px;background:transparent;color:var(--ink);box-shadow:none}
.social-icon svg{width:21px;height:21px;stroke-width:1.85}
:root[data-color-mode='dark'] .social-icon{background:transparent;color:#f4f1e9;box-shadow:none}
:root[data-color-mode='dark'] .social-card:hover .social-icon{background:transparent;color:#fff}
@media(max-width:759px){.social-card{width:52px;min-width:52px;min-height:52px;padding:6px}.social-icon{width:40px;height:40px;flex-basis:40px}.social-icon svg{width:21px;height:21px}}
@media(max-width:420px){.social-card{width:50px;min-width:50px;min-height:50px}.social-icon{width:38px;height:38px;flex-basis:38px}.social-icon svg{width:20px;height:20px}}

/* Link cards: quiet editorial surfaces with a single, deliberate outbound cue. */
.links{gap:10px}
.link-card{border-color:color-mix(in srgb,var(--ink) 11%,transparent);border-radius:calc(var(--radius-card) + 2px);background:color-mix(in srgb,var(--surface) 92%,transparent)}
.link-card.featured{border-left:1px solid color-mix(in srgb,var(--ink) 11%,transparent);box-shadow:inset 3px 0 0 var(--accent)}
.link-main{min-height:88px;grid-template-columns:56px minmax(0,1fr) 26px;gap:14px;padding:12px 13px}
.link-media{width:56px;height:56px;border-color:color-mix(in srgb,var(--ink) 9%,transparent);background:color-mix(in srgb,var(--ink) 4%,var(--surface));border-radius:calc(var(--radius-image) - 1px)}
.link-domain{margin-bottom:4px;color:var(--faint);font-size:10px;letter-spacing:.09em}
.link-copy h3{font-size:16px;font-weight:650;letter-spacing:-.022em}
.link-copy p{margin-top:5px;font-size:12px;line-height:1.45}
.link-arrow{width:26px;height:26px;background:transparent;color:var(--accent)}
.link-arrow svg{width:15px;height:15px;stroke-width:1.8}
.link-share{width:30px;height:30px;right:12px;border-color:var(--line);background:transparent;color:var(--faint)}
@media (hover:hover) and (pointer:fine){.link-card:hover{border-color:color-mix(in srgb,var(--accent) 38%,var(--line));background:var(--surface)}.link-card:hover .link-arrow{transform:translate(2px,-2px)}.link-share:hover{border-color:var(--accent);color:var(--accent);background:transparent}}
@media(max-width:759px){.link-main{min-height:82px;grid-template-columns:54px minmax(0,1fr) 26px;padding:11px 12px;gap:12px}.link-media{width:54px;height:54px}.link-copy h3{font-size:15.5px}}

/* A calm, useful recovery page that remains legible at every viewport. */
.not-found-page{min-width:320px;min-height:100dvh;background:var(--canvas);color:var(--ink)}
.not-found-shell{width:min(560px,calc(100% - 40px));min-height:100dvh;display:flex;flex-direction:column;justify-content:center;margin:0 auto;padding:40px 0 28px}
.not-found-brand{display:inline-flex;align-items:center;align-self:flex-start;gap:10px;margin-bottom:30px;color:var(--ink);font-size:14px;font-weight:650;letter-spacing:-.015em;text-decoration:none}
.not-found-brand img{width:30px;height:30px}.not-found-brand:focus-visible,.not-found-action:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.not-found-card{padding:clamp(28px,7vw,46px);border:1px solid color-mix(in srgb,var(--ink) 12%,transparent);border-radius:24px;background:var(--surface)}
.not-found-code{margin:0 0 18px;color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.14em}
.not-found-card h1{max-width:11ch;margin:0;color:var(--ink);font-size:clamp(32px,7vw,50px);font-weight:650;letter-spacing:-.058em;line-height:1.01;text-wrap:balance}
.not-found-card>p:not(.not-found-code){max-width:36ch;margin:18px 0 0;color:var(--muted);font-size:15px;line-height:1.6}
.not-found-action{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:28px;padding:10px 0;border-bottom:1px solid var(--accent);color:var(--ink);font-size:14px;font-weight:700;text-decoration:none;transition:color 180ms var(--ease-out),border-color 180ms var(--ease-out)}
.not-found-action span{color:var(--accent);font-size:18px;line-height:1}.not-found-action:hover{border-color:var(--ink);color:var(--accent)}
.not-found-note{margin:24px 0 0;color:var(--faint);font-size:12px}
:root[data-color-mode='dark'] .not-found-card{border-color:color-mix(in srgb,var(--ink) 13%,transparent);background:var(--surface)}
@media(max-width:480px){.not-found-shell{width:calc(100% - 32px);padding-top:28px}.not-found-brand{margin-bottom:22px}.not-found-card{border-radius:19px}.not-found-card>p:not(.not-found-code){font-size:14px}.not-found-note{margin-top:18px}}
