:root {
  --color-bg: #ffffff;
  --color-surface: #ececec;
  --color-text: #0b0f14;
  --color-muted: #5f6b7a;
  --color-primary: #4f46e5;
  --color-primary-ink: #ffffff;

  --radius-s: 8px;
  --radius-m: 14px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-head: "Space Grotesk", Inter, ui-sans-serif, system-ui;
  --fs-1: clamp(28px, 6vw, 48px);
  --fs-2: clamp(22px, 4vw, 32px);
  --fs-3: 20px;
  --fs-4: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  background: var(--color-primary);
  color: var(--color-primary-ink);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-s);
}

.container {
  width: min(1080px, 100% - 2*var(--space-6));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e6e8eb;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.brand {
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  color: inherit;
}
.nav {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  padding: 0; margin: 0;
}
.nav a { text-decoration: none; color: inherit; }

.section { padding: var(--space-8) 0; }
.section--muted { background: var(--color-surface); }
.section-title {
  font-size: var(--fs-2);
  margin: 0 0 var(--space-6) 0;
}
.section-subtitle { color: var(--color-muted); }

.hero { background: radial-gradient(90% 60% at 50% 0%, #eef0ff 0%, rgba(255,255,255,0) 60%); }
.hero-inner { text-align: center; }
.hero-title { font-size: var(--fs-1); margin: 0 0 var(--space-3) 0; font-family: var(--font-head); letter-spacing: -0.02em; }
.hero-subtitle { font-size: var(--fs-3); color: var(--color-muted); margin: 0 0 var(--space-6) 0; }
.hero-ctas { display: inline-flex; gap: var(--space-3); }

.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: var(--radius-m);
  padding: var(--space-6);
}
.card-title { margin: 0 0 var(--space-2) 0; font-size: var(--fs-3); }
.card-body { margin: 0; color: var(--color-muted); }

.project-card .project-link { color: inherit; text-decoration: none; display: block; }
.tags { margin: var(--space-4) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: #eef0f5; color: #303a46; border: 1px solid #d5dbe3; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.button--primary { background: var(--color-primary); color: var(--color-primary-ink); }
.button--primary:hover { filter: brightness(0.95); }
.button--ghost { background: transparent; border-color: #d5dbe3; color: var(--color-text); }
.button--ghost:hover { background: #f4f6f9; }

.cta { text-align: center; }
.cta-form { display: inline-flex; gap: var(--space-3); }
.cta-form input {
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid #d5dbe3;
  min-width: 280px;
}

.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--space-2) 0; font-size: var(--fs-3); }
.quote figcaption { color: var(--color-muted); }

/* removed header styles */

/* removed footer styles */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.is-visible[data-reveal] { opacity: 1; transform: translateY(0); }

/* ——— Profile + Posts layout ——— */
.viewport { min-height: 100vh; padding: var(--space-6) 0; }
.grid-simple { width: 100%; display: grid; grid-template-columns: 320px 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 960px) { .grid-simple { grid-template-columns: 1fr; } }

.left { display: grid; gap: var(--space-2); position: sticky; top: var(--space-6); align-self: start; height: fit-content; }
/* keep more room before the story block */
.left .story { margin-top: var(--space-1); }
@media (max-width: 960px) { .left { position: static; } }
.dashed { border: none; border-radius: 18px; padding: var(--space-6); background: #f6f8fb; }
.profile-circle { display: grid; place-items: center; height: 200px; background: transparent !important; padding: 0 !important; border: none !important; }
.left .story, .left .links { background: transparent !important; padding: 0 !important; border: none !important; border-radius: 0 !important; }
.profile-name-txt { text-align: center; font-weight: 700; font-family: var(--font-head); margin-top: 6px; font-size: 18px; }
.icon-list { margin-top: 2px; }
.profile-circle img { width: 180px; height: 180px; border-radius: 999px; object-fit: cover; }
.story .mono { font-size: 18px; line-height: 1.35; word-break: keep-all; overflow-wrap: normal; hyphens: none; text-wrap: pretty; margin: 0; }
.icon-list { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-3); align-items: center; justify-content: center; width: 100%; }
.icon-btn { display: inline-flex; padding: 0; background: transparent; border: none; color: #111; align-items: center; justify-content: center; }
.icon-btn svg { width: 22px; height: 22px; }

.right {}
.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-6); }
.card-post { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-5); align-items: center; padding: var(--space-6); background: #f6f8fb; border-radius: 22px; border: none; }
.thumb { width: 96px; height: 96px; border-radius: 18px; background: #e9eef5; border: none; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 48px; height: 48px; object-fit: contain; filter: saturate(0.9) contrast(1.05); }
.thumb-dot { font-weight: 800; color: #6b7280; font-size: 28px; }
.thumb-emoji { font-size: 28px; }
.post-title { margin: 0 0 var(--space-2) 0; font-size: 20px; }
.post-desc { margin: 0; color: #374151; }
.ext { color: inherit; text-decoration: none; border-bottom: 1px solid #cfd6df; }
.ext:hover { border-color: #aab4c2; }

.profile-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.profile-avatar img { width: 160px; height: 160px; border-radius: 999px; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.profile-name { font-family: var(--font-head); font-size: 28px; margin: 0; letter-spacing: 0.01em; }
.profile-role { margin: 0; color: var(--color-muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.profile-bio { text-align: left; max-width: 46ch; }

.profile-links { display: grid; gap: var(--space-3); width: 100%; max-width: 520px; }
.link-btn {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f3f5f8;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e5e8ee;
}
.link-btn:hover { background: #eef2f7; }

.panel-title { font-family: var(--font-head); font-size: 26px; margin: 0 0 var(--space-6) 0; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.post-card { background: #f3f5f8; padding: var(--space-4); border-radius: 12px; border: 1px solid #e5e8ee; }
.post-link { color: inherit; text-decoration: none; display: block; font-size: clamp(16px, 2.2vw, 22px); line-height: 1.35; }

.project-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.project-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3); border: 1px solid #e5e8ee; border-radius: 10px; background: #fff; }
.project-link { text-decoration: none; color: inherit; font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-2); }
.chip { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: #eef0f5; color: #303a46; border: 1px solid #d5dbe3; }

