:root {
  --bg: #000000;
  --bg-soft: #050505;
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --text: #f4f4f4;
  --muted: #b3b3b3;
  --faint: #737373;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --white-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.75);
  --container: 1160px;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", Consolas, "Courier New", monospace;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.075), transparent 26rem),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.055), transparent 34rem),
    linear-gradient(180deg, #020202 0%, #000 50%, #020202 100%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::selection {
  background: #ffffff;
  color: #000000;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

.container {
  width: min(100% - 44px, var(--container));
  margin: 0 auto;
}

.section-pad {
  padding: 112px 0;
}

.section-pad.compact {
  padding: 88px 0;
}

.border-top {
  border-top: 1px solid var(--line-soft);
}

.cursor-light {
  position: fixed;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 67%);
  filter: blur(10px);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  opacity: 0.20;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.2px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.10) 0 1px, transparent 1.3px);
  background-size: 38px 38px, 52px 52px;
}

.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.45) 70%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-path {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065), 0 18px 60px rgba(0, 0, 0, 0.54);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding-top: 92px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.hero-left {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.terminal-line {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.role-kicker {
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.profile-frame {
  position: relative;
  max-width: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.profile-frame::before,
.profile-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.profile-frame::before {
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: calc(var(--radius-xl) - 10px);
  z-index: 1;
}

.profile-frame::after {
  inset: auto 18px 18px auto;
  width: 54px;
  height: 54px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  z-index: 2;
}

.profile-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: none;
  opacity: 0.96;
}

.hero-copy {
  max-width: 760px;
}

.hello {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 20px;
  max-width: 900px;
  color: var(--text);
  font-size: clamp(4rem, 11.6vw, 10.6rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.095em;
}

h2 {
  margin-bottom: 18px;
  max-width: 900px;
  color: var(--text);
  font-size: clamp(2.35rem, 6.3vw, 5.9rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.085em;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.status-line span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.status-line .open {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.08);
}

.intro,
.body-copy p,
.section-title p,
.project-content p,
.deploy-card p,
.principle-card p,
.contact-statement {
  color: var(--muted);
  font-size: 1rem;
}

.focus-list {
  list-style: square;
  padding: 30;
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.focus-list li {
  margin-bottom: 10px;
  color: #ffffff;
}

.intro {
  max-width: 650px;
  margin-bottom: 28px;
}

.hero-actions,
.follow-line,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.text-link.is-muted {
  color: var(--faint);
}

.follow-line {
  margin-top: 24px;
  align-items: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.follow-line a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.22);
  text-underline-offset: 4px;
}

.follow-line a:hover {
  color: var(--text);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.section-title.narrow {
  max-width: 820px;
  margin-bottom: 34px;
}

.body-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.body-copy p {
  margin-bottom: 0;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: block;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transform-style: preserve-3d;
}

.project-row[open] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.project-row summary {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(200px, 1fr) minmax(220px, 0.95fr) 34px;
  gap: 22px;
  align-items: center;
  min-height: 88px;
  padding: 0 26px;
  cursor: pointer;
  list-style: none;
}

.project-row summary::-webkit-details-marker {
  display: none;
}

.project-number {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.project-name {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.project-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
}

.project-plus {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
}

.project-plus::before,
.project-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.project-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.project-row[open] .project-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.project-content {
  display: grid;
  gap: 18px;
  padding: 0 26px 28px 116px;
  max-width: 980px;
}

.project-content p {
  margin: 0;
  max-width: 720px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span,
.stack-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 650;
}

.project-links a:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.25);
}

.cost-note {
  max-width: 820px !important;
  color: var(--faint) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem !important;
}

.stack-section {
  overflow: hidden;
}

.stack-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.stack-marquee::before,
.stack-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 120px;
  pointer-events: none;
}

.stack-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #000, transparent);
}

.stack-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #000, transparent);
}

.stack-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scrollStack 34s linear infinite;
}

.stack-track span {
  min-height: 46px;
  padding: 0 18px;
  color: var(--text);
}

.stack-track small {
  color: var(--faint);
  font-size: 0.72rem;
}

@keyframes scrollStack {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principle-card,
.deploy-card,
.contact-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 20%), rgba(255, 255, 255, 0.12), transparent 16rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.principle-card {
  min-height: 220px;
  padding: 26px;
}

.principle-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--faint);
  font-family: var(--font-mono);
}

.principle-card p {
  margin-bottom: 0;
}

.deploy-card {
  padding: 28px;
}

.flow-line {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.flow-line span {
  position: relative;
  display: block;
  padding: 16px 18px 16px 46px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.flow-line span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--text);
  border-radius: 50%;
  transform: translateY(-50%);
}

.deploy-card p {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.contact-panel {
  padding: 32px;
}

.contact-statement {
  margin-bottom: 28px;
  max-width: 680px;
  color: var(--text);
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.contact-link-list {
  display: grid;
  gap: 10px;
}

.contact-link-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-link-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.contact-link-item.is-static:hover {
  transform: none;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.028);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon svg path:first-child:last-child {
  fill: currentColor;
  stroke: none;
}

.contact-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.contact-url {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.contact-link-item.is-static .contact-label,
.contact-link-item.is-static .contact-url {
  color: var(--faint);
}

.site-footer {
  padding: 30px 0;
  color: var(--faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.tilt-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tilt-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-light {
    display: none;
  }
}

@media (max-width: 980px) {
  .section-pad {
    padding: 92px 0;
  }

  .hero-layout,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-left {
    max-width: 460px;
  }

  .profile-frame {
    max-width: 330px;
  }

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

  .project-row summary {
    grid-template-columns: 52px 1fr 34px;
  }

  .project-meta {
    grid-column: 2 / 3;
  }

  .project-plus {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .project-content {
    padding-left: 78px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    background: rgba(0, 0, 0, 0.88);
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 84px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    justify-content: center;
    min-height: 44px;
  }

  .brand-path {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .role-kicker {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 6.4rem);
  }

  h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .project-row summary {
    grid-template-columns: 1fr 34px;
    gap: 10px 14px;
    min-height: 118px;
    padding: 20px 16px;
  }

  .project-number {
    grid-column: 1 / -1;
  }

  .project-name {
    grid-column: 1 / 2;
  }

  .project-meta {
    grid-column: 1 / -1;
  }

  .project-plus {
    grid-column: 2;
    grid-row: 2;
  }

  .project-content {
    padding: 0 16px 24px;
  }

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

  .principle-card {
    min-height: 210px;
  }

  .stack-marquee::before,
  .stack-marquee::after {
    width: 54px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 480px) {
  .section-pad {
    padding: 78px 0;
  }

  .status-line span,
  .text-link,
  .project-links a {
    width: 100%;
    justify-content: center;
  }

  .contact-link-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .profile-frame {
    max-width: 100%;
    border-radius: 26px;
  }

  .deploy-card,
  .contact-panel,
  .principle-card {
    padding: 22px;
  }
}


/* Refined spacing and accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
}

.project-row summary:hover .project-name,
.project-row summary:hover .project-meta {
  color: var(--text);
}

.principle-card h3 {
  font-size: 1.18rem;
}

.principle-card p {
  max-width: 34ch;
}


/* Cleaner learning notes */
.learning-layout {
  align-items: start;
}

.learning-notes {
  display: grid;
  border-top: 1px solid var(--line);
}

.learning-note {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.learning-note span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.learning-note p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.learning-note:first-child p {
  color: var(--text);
}

/* Reference-style reach out rows */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}

.contact-rows {
  border-top: 1px solid var(--line);
}

.contact-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: padding-left 180ms ease, border-color 180ms ease;
}

.contact-row:hover {
  padding-left: 10px;
  border-color: rgba(255, 255, 255, 0.32);
}

.contact-row.is-static:hover {
  padding-left: 0;
  border-color: var(--line);
}

.contact-row-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.contact-row-logo svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row-logo svg path:first-child:last-child {
  fill: currentColor;
  stroke: none;
}

.contact-row-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-row-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.contact-row-address {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-row-arrow {
  justify-self: end;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.contact-row:hover .contact-row-arrow {
  transform: translateX(4px);
}


@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .learning-note {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .contact-row {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
    gap: 12px;
    min-height: 78px;
  }

  .contact-row-title {
    font-size: 1rem;
  }

  .contact-row-address {
    font-size: 0.76rem;
  }
}

.project-links a {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;

  color: inherit;
  text-decoration: underline;
  text-underline-offset: 12px;
  box-shadow: none !important;
}

/* Linux boot splash screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(20px, 5vw, 56px);
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.075), transparent 27rem),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.045), transparent 22rem),
    linear-gradient(180deg, #020202 0%, #000000 58%, #030303 100%);
  color: #f2f2f2;
  transition: opacity 560ms ease, visibility 560ms ease, filter 560ms ease;
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 6px
    );
}

.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.09) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.055) 0 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  mix-blend-mode: screen;
}

.splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  filter: blur(4px);
  pointer-events: none;
}

.boot-terminal {
  position: relative;
  z-index: 1;
  width: min(92vw, 660px);
  height: clamp(290px, 48svh, 385px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  font-family: var(--font-mono);
  text-align: left;
  letter-spacing: -0.025em;
}

.boot-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(10px, 1.4vw, 18px) 0;
}

.boot-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.boot-lines p {
  --delay: 0ms;
  --line-gap: clamp(7px, 1.08vh, 11px);
  max-width: 100%;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #f3f3f3;
  font-size: clamp(0.82rem, 1.55vw, 1rem);
  line-height: 1.48;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-7px);
  filter: blur(0.45px);
  animation: bootLinePopLeft 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.04);
}

.boot-lines p:nth-child(1) { --delay: 420ms; }
.boot-lines p:nth-child(2) { --delay: 940ms; }
.boot-lines p:nth-child(3) { --delay: 1280ms; }
.boot-lines p:nth-child(4) { --delay: 1960ms; }
.boot-lines p:nth-child(5) { --delay: 2460ms; }
.boot-lines p:nth-child(6) { --delay: 3300ms; }
.boot-lines p:nth-child(7) { --delay: 3730ms; }
.boot-lines p:nth-child(8) { --delay: 4660ms; }
.boot-lines p:nth-child(9) { --delay: 5150ms; }
.boot-lines p:nth-child(10) { --delay: 6120ms; }

.boot-ok,
.boot-check,
.boot-success {
  color: #33ff33;
  font-weight: 700;
}

.boot-starting {
  color: #ffd21f !important;
}

.boot-ready {
  color: #f3f3f3 !important;
}

.boot-lines p:last-child {
  --line-gap: 3px;
}

.boot-typing-line {
  flex: 0 0 auto;
  min-height: 1.55em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: clamp(6px, 1vh, 10px);
  color: rgba(243, 243, 243, 0.9);
  font-size: clamp(0.82rem, 1.55vw, 1rem);
  line-height: 1.48;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.04);
}

.boot-prompt {
  opacity: 0.86;
}

.boot-cursor {
  display: inline-block;
  width: 0.58em;
  height: 1.05em;
  vertical-align: -0.14em;
  background: #ffffff;
  animation: cursorBlink 900ms step-end infinite;
}

@keyframes bootLinePopLeft {
  0% {
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(-3px);
    filter: blur(0.25px);
  }

  45% {
    max-height: 4.8em;
    margin-bottom: var(--line-gap);
    opacity: 1;
  }

  100% {
    max-height: 4.8em;
    margin-bottom: var(--line-gap);
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}
@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Floating terminal button */
.mode-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

.mode-dock-btn,
.terminal-switch {
  cursor: pointer;
}

.mode-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 17px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mode-dock-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.085);
}

.terminal-button-logo,
.inline-terminal-logo,
.terminal-top-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.terminal-button-logo {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
}

.terminal-button-logo svg,
.terminal-top-logo svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-terminal-logo {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Interactive Linux terminal portfolio mode */
.terminal-portfolio {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.085), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.055), transparent 22rem),
    rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.terminal-portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 78%);
}

.terminal-portfolio::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 7px
  );
}

body.terminal-open {
  overflow: hidden;
}

body.terminal-open .terminal-portfolio {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.terminal-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  height: min(760px, 88vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(2, 2, 2, 0.96);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.034);
  font-family: var(--font-mono);
}

.terminal-title-left {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.terminal-top-logo {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.terminal-title-left p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-exit {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.terminal-exit:hover {
  background: rgba(255, 255, 255, 0.11);
}

.terminal-screen {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: clamp(18px, 3vw, 28px);
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: -0.035em;
}

.terminal-output-area {
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

.terminal-entry,
.terminal-command-line,
.terminal-response {
  font-size: clamp(0.82rem, 1.7vw, 0.95rem);
  line-height: 1.65;
}

.terminal-entry {
  margin-bottom: 4px;
}

.terminal-muted {
  color: var(--faint);
}

.terminal-muted strong {
  color: var(--text);
  font-weight: 700;
}

.terminal-command-line {
  display: flex;
  gap: 10px;
  color: var(--text);
  margin-top: 14px;
}

.terminal-command-line span,
.terminal-prompt {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.terminal-response {
  margin: 6px 0 12px;
  color: var(--muted);
  white-space: pre-wrap;
}

.terminal-response a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.terminal-table {
  display: grid;
  gap: 2px;
}

.terminal-table-row {
  display: grid;
  grid-template-columns: 115px 52px 100px minmax(0, 1fr);
  gap: 12px;
  color: var(--muted);
}

.terminal-table-row strong {
  color: var(--text);
  font-weight: 700;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.terminal-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  caret-color: var(--text);
}

.terminal-input-row input::selection {
  background: var(--text);
  color: #000;
}

@media (max-width: 760px) {
  .mode-dock {
    right: 14px;
    bottom: 14px;
  }

  .mode-dock-btn {
    min-height: 44px;
    padding-right: 14px;
  }

  .splash-screen {
    place-items: center;
    padding: 24px 18px;
  }

  .boot-terminal {
    width: min(100%, 440px);
    height: clamp(300px, 58svh, 390px);
  }

  .boot-lines {
    gap: 0;
  }

  .boot-lines p,
  .boot-typing-line {
    font-size: clamp(0.72rem, 3.05vw, 0.86rem);
    line-height: 1.55;
  }

  .boot-lines p {
    --line-gap: 7px;
    white-space: normal;
  }

  .boot-prompt {
    max-width: calc(100vw - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .terminal-shell {
    height: 88vh;
    border-radius: 16px;
  }

  .terminal-topbar {
    padding: 10px 12px;
  }

  .terminal-screen {
    padding: 18px;
  }

  .terminal-input-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .terminal-table-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-bottom: 10px;
  }
}
