:root {
  --bg: #040404;
  --ink: #f4f4f4;
  --muted: #8e8e8e;
  --card-start: #121212;
  --card-end: #0a0a0a;
  --project-border: #5f5f5f;
  --project-hover: #8f8f8f;
  --line: #272727;
  --line-strong: #7a7a7a;
  --card: #0f0f0f;
  --chip-service-bg: #ffffff;
  --chip-service-ink: #000000;
  --chip-saas-bg: #ffdba8;
  --chip-saas-ink: #000000;
  --chip-game-bg: #b8d8ff;
  --chip-game-ink: #000000;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background: radial-gradient(circle at 15% 6%, #171717 0, transparent 38%),
    radial-gradient(circle at 84% 22%, #131313 0, transparent 30%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

body.home {
  overflow: hidden;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: repeating-radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
}

.logo {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.45);
}

.site-shell {
  display: flex;
  min-height: 100vh;
}

.profile-column {
  width: 30%;
  min-width: 320px;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  padding: 1.5rem 1.4rem 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.15));
}

.panel-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.panel-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #454545;
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
}

.panel-nav a:hover {
  color: var(--ink);
  border-color: #8e8e8e;
}

.content-column {
  width: 70%;
  height: 100vh;
  overflow-y: auto;
  padding: 0 1.2rem;
  scroll-behavior: smooth;
}

.content-column section,
.site-footer {
  max-width: 980px;
  margin: 0 auto;
}

section {
  padding: 4rem 0 0;
}

.hero-main,
.hero-photo-wrap,
.record-strip {
  will-change: transform;
}

.hero-photo-wrap {
  margin: 0 0;
}

.hero-photo {
  width: min(100%, 100px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  filter: grayscale(100%) contrast(112%);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.post-meta,
.small {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.13;
}

h1,
h2 {
  font-family: "Fraunces", serif;
}

h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.hero-copy {
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  max-width: 52ch;
  color: #d2d2d2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.btn {
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: #fff;
  color: #000;
}

.btn.ghost {
  color: #fff;
  background: transparent;
}

.badge-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9e9e9e;
  border-radius: 999px;
  color: #fff;
  background: #0d0d0d;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
}

/* Social links row used in the about panel */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.social-links a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.social-links a:hover {
  border-color: rgba(255,255,255,0.06);
}
.social-logo {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 6px;
  background: #0a0a0a;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.7rem);
  max-width: 23ch;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}

.fact-cards {
  display: grid;
  gap: 0.8rem;
}

.fact-cards article,
.project-card,
.post-item {
  background: linear-gradient(180deg, var(--card-start), var(--card-end));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.fact-cards h3 {
  font-size: 0.95rem;
  margin-bottom: 0.24rem;
  color: #cdcdcd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline {
  margin-top: 1rem;
  border-left: 2px solid #5e5e5e;
  padding-left: 1rem;
  color: #d2d2d2;
}

.timeline p {
  margin: 0.5rem 0;
}

.project-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--project-hover);
}

.project-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--project-border);
}

.chip {
  display: inline-block;
  margin-top: 0;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 1.25rem;
}

.project-card a,
.post-item a,
.logo,
.back-link {
  color: #fff;
}

.project-card a {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.project-card > .project-link {
  display: block;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
}
.project-card > .project-link:focus {
  outline: 2px solid rgba(255,255,255,0.12);
  outline-offset: 2px;
}

.project-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chip--service {
  background: var(--chip-service-bg);
  color: var(--chip-service-ink);
}
.chip--saas {
  background: var(--chip-saas-bg);
  color: var(--chip-saas-ink);
}
.chip--game {
  background: var(--chip-game-bg);
  color: var(--chip-game-ink);
}

.track-record {
  overflow: hidden;
}

.record-strip {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.record-strip::-webkit-scrollbar {
  display: none;
}

.record-strip span {
  white-space: nowrap;
  border: 1px solid #505050;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #efefef;
  font-size: 0.83rem;
  letter-spacing: 0.05em;
}

.post-list {
  display: grid;
  gap: 0.9rem;
}

.post-item h3 {
  margin: 0.3rem 0;
  font-size: 1.3rem;
}

.post-item a {
  text-decoration: none;
}

.post-item a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-footer {
  padding-top: 3.5rem;
  padding-bottom: 2.4rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3.5rem;
}

.post-page h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0.5rem 0 1rem;
}

.post-page p,
.post-page li {
  color: #dfdfdf;
  font-size: 1.05rem;
}

.post-page ul {
  padding-left: 1.1rem;
}

.back-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

@media (max-width: 1024px) {
  body.home {
    overflow: auto;
  }

  .site-shell {
    flex-direction: column;
  }

  .profile-column,
  .content-column {
    width: 100%;
    min-width: 0;
    height: auto;
    position: relative;
  }

  .profile-column {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .content-column {
    overflow: visible;
    padding: 0 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding-top: 3.2rem;
  }
}
