/* Rajatverse global system: inspired by Screener's variable + utility-class style. */
:root {
  color-scheme: dark;
  --base: #0a0d14;
  --base-2: #0f1421;
  --base-3: #151b2d;
  --ink-900: #f7fafc;
  --ink-800: #e9eef7;
  --ink-700: #b8c2d6;
  --ink-600: #8894ab;
  --link: #8aa2ff;
  --link-hover: #b7c4ff;
  --accent: #76f0c3;
  --accent-2: #8b5cf6;
  --gold: #f8d66d;
  --border-color: rgba(202, 213, 255, 0.14);
  --border-strong: rgba(202, 213, 255, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1120px;
  --nav-height: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 62.5%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.58;
  letter-spacing: -0.011em;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(118, 240, 195, 0.12), transparent 32rem),
    radial-gradient(circle at 70% 10%, rgba(139, 92, 246, 0.16), transparent 34rem),
    linear-gradient(180deg, #070911 0%, #0a0d14 48%, #090b10 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration-color: rgba(138, 162, 255, 0.45); text-underline-offset: 0.22em; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { --container: 860px; }
.article-container { --container: 820px; }
.section { padding: 88px 0; }
.section-lg { padding: 124px 0 92px; }
.section-sm { padding: 56px 0; }
.max-width-720 { max-width: 720px; }
.margin-inline-auto { margin-inline: auto; }
.margin-0 { margin: 0; }
.margin-top-0 { margin-top: 0; }
.margin-top-4 { margin-top: 4px; }
.margin-top-8 { margin-top: 8px; }
.margin-top-32 { margin-top: 32px; }
.margin-bottom-4 { margin-bottom: 4px; }
.margin-bottom-32 { margin-bottom: 32px; }
.width-fit { width: fit-content; }

/* Utilities */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-align-center { align-items: center; }
.flex-align-start { align-items: flex-start; }
.flex-space-between { justify-content: space-between; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-18 { gap: 18px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.text-center { text-align: center; }
.no-underline { text-decoration: none; }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.blur-bg { backdrop-filter: blur(18px); background: rgba(7, 9, 17, 0.68); }

/* Background effects */
.site-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.05;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.55'/%3E%3C/svg%3E");
}
.orb { position: fixed; z-index: -1; filter: blur(10px); border-radius: 999px; opacity: 0.46; }
.orb-one { width: 220px; height: 220px; right: -80px; top: 160px; background: rgba(118, 240, 195, 0.18); }
.orb-two { width: 280px; height: 280px; left: -120px; bottom: 12%; background: rgba(139, 92, 246, 0.16); }

/* Typography */
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 1.15rem;
}
.hero-title {
  max-width: 820px;
  font-size: clamp(4.4rem, 8vw, 9.2rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}
.hero-title-small {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4rem, 7vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.h3, h3 { font-size: 2.1rem; line-height: 1.18; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2.8rem, 4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 18px; }
.lead { color: var(--ink-700); font-size: clamp(1.8rem, 2vw, 2.2rem); }
.sub { color: var(--ink-600); }
.sub-link { color: var(--link); }
.gradient-text { background: linear-gradient(100deg, var(--accent), #8aa2ff 48%, #f8d66d); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.top-nav { position: sticky; top: 0; z-index: 20; min-height: var(--nav-height); display: flex; align-items: center; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: #07100d; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 30px rgba(118, 240, 195, 0.22);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { color: var(--ink-600); }
.nav-links a { padding: 8px 12px; color: var(--ink-700); text-decoration: none; border-radius: 999px; }
.nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--ink-900); }

/* Components */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.card-glow {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 8px);
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)),
    radial-gradient(circle at top, rgba(118,240,195,0.13), transparent 55%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.hover-lift { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.hover-lift:hover { transform: translateY(-4px); border-color: rgba(118, 240, 195, 0.36); background: linear-gradient(180deg, rgba(255,255,255,0.105), rgba(255,255,255,0.045)); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.06); color: var(--ink-900);
  text-decoration: none; font-weight: 750;
}
.button:hover { color: var(--ink-900); border-color: rgba(255,255,255,0.34); }
.button-primary { background: linear-gradient(135deg, var(--accent), #8aa2ff); color: #07100d; border: 0; }
.button-primary:hover { color: #07100d; }
.button-ghost { background: transparent; }
.pill, .tag, .chip, .status-dot {
  display: inline-flex; align-items: center; width: fit-content;
  border-radius: 999px; border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.055); color: var(--ink-700);
}
.pill { padding: 8px 12px; font-size: 1.35rem; }
.tag { padding: 5px 9px; font-size: 1.25rem; }
.chip { padding: 7px 10px; font-size: 1.35rem; }
.status-dot { padding: 6px 10px; font-size: 1.2rem; color: var(--accent); }
.status-dot::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

/* Home */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); align-items: center; }
.command-card { position: relative; overflow: hidden; }
.command-card::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(118,240,195,0.24), transparent 35%, rgba(139,92,246,0.2)); pointer-events: none; }
.terminal-dots { display: flex; gap: 8px; position: relative; z-index: 1; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 99px; background: var(--ink-600); }
.terminal-dots span:nth-child(1) { background: #ff6b6b; } .terminal-dots span:nth-child(2) { background: #ffd166; } .terminal-dots span:nth-child(3) { background: #76f0c3; }
.profile-card, .console-lines { position: relative; z-index: 1; }
.avatar-xl { width: 138px; height: 138px; object-fit: cover; border-radius: 38px; margin: 26px auto 16px; border: 1px solid var(--border-strong); }
.console-lines { margin-top: 24px; padding: 18px; border-radius: 18px; background: rgba(0,0,0,0.24); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1.35rem; }
.console-lines p { margin: 8px 0; } .console-lines span { color: var(--accent); } .console-output { color: var(--ink-600); padding-left: 16px; }
.signal-strip > div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.055); border: 1px solid var(--border-color); }
.signal-strip span { display: block; color: var(--ink-600); font-size: 1.3rem; }
.section-heading { margin-bottom: 30px; max-width: 760px; } .section-heading.center { text-align: center; margin-inline: auto; }
.timeline { display: grid; gap: 16px; }
.timeline-item { display: grid; grid-template-columns: 58px 1fr; gap: 18px; }
.timeline-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: rgba(255,255,255,0.08); }
.project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-card { min-height: 340px; display: flex; flex-direction: column; gap: 16px; }
.card-link { margin-top: 12px; color: var(--link); font-weight: 750; }
.skill-matrix { display: grid; gap: 18px; }
.skill-row + .skill-row { padding-top: 18px; border-top: 1px solid var(--border-color); }
.skill-row h3 { margin: 0 0 10px; }
.quote-card { padding: 32px; }
.principle { padding: 18px; border-radius: 18px; background: rgba(0,0,0,0.2); color: var(--ink-700); }

/* Notes */
.note-list { display: grid; gap: 14px; }
.note-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.note-row h2 { font-size: 2.8rem; margin-bottom: 8px; }
.prose { color: var(--ink-700); font-size: 1.8rem; }
.prose h1, .prose h2, .prose h3 { color: var(--ink-900); margin-top: 1.5em; }
.prose pre { padding: 18px; overflow: auto; border-radius: 16px; background: #05070c; border: 1px solid var(--border-color); }
.prose code { color: #a7f3d0; }
.prose a { color: var(--link); }
.now-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.now-row:last-child { border-bottom: 0; }
.now-row span { color: var(--accent); font-weight: 900; }
.now-row p { margin: 0; color: var(--ink-700); font-size: 1.9rem; }

/* Footer */
.footer { color: var(--ink-700); }
.footer-links a { color: var(--ink-700); text-decoration: none; display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.footer-links a:hover { color: var(--ink-900); }

@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3, .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
}
@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section-lg { padding-top: 88px; }
  .top-nav .container { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .brand-copy small { display: none; }
  .timeline-item { grid-template-columns: 1fr; }
  .signal-strip { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(4.2rem, 16vw, 6.4rem); }
}

/* Journey train UI */
.train-hero { padding-bottom: 44px; }
.journey-shell { position: relative; overflow: hidden; }
.journey-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}
.train-board {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--border-strong);
}
.board-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(118, 240, 195, 0.08);
  border: 1px solid rgba(118, 240, 195, 0.24);
  font-weight: 800;
}
.train-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.track-map {
  position: relative;
  z-index: 1;
  padding-top: 26px;
}
.track-map::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 30px;
  bottom: 30px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #8aa2ff, var(--gold));
  opacity: 0.7;
}
.station-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 12px 0;
}
.station-rail { position: relative; display: flex; justify-content: center; padding-top: 24px; }
.station-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--base);
  border: 4px solid var(--link);
  box-shadow: 0 0 0 8px rgba(138, 162, 255, 0.11);
  z-index: 2;
}
.station-dot.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(118, 240, 195, 0.12), 0 0 28px rgba(118, 240, 195, 0.45);
}
.station-panel { padding: 22px; }
.station-code {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #07100d;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.station-meta { margin-bottom: 14px; }
.compact-project { min-height: 270px; }
.subscribe-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
}
.subscribe-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink-900);
  background: rgba(0,0,0,0.24);
  font: inherit;
  outline: none;
}
.subscribe-form input:focus {
  border-color: rgba(118, 240, 195, 0.52);
  box-shadow: 0 0 0 4px rgba(118, 240, 195, 0.08);
}

@media (max-width: 680px) {
  .train-board, .subscribe-inline, .subscribe-form { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .station-card { grid-template-columns: 42px 1fr; }
  .track-map::before { left: 20px; }
  .station-panel { padding: 18px; }
}

/* Shipyard + flight deck layers */
.shipyard-hero {
  background: radial-gradient(circle at 50% 20%, rgba(118, 240, 195, 0.08), transparent 38rem);
}
.shipyard-board { overflow: hidden; position: relative; }
.shipyard-board::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    linear-gradient(180deg, transparent, rgba(31, 92, 117, 0.22)),
    repeating-linear-gradient(135deg, rgba(138, 162, 255, 0.10) 0 10px, transparent 10px 22px);
  opacity: .7;
  pointer-events: none;
}
.ship-status { color: #8debd1; }
.dock-lane {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.dock-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}
.dock-label {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(248, 214, 109, .28);
  color: var(--gold);
  background: rgba(248, 214, 109, .07);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ship-window {
  height: 92px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at 72% 25%, rgba(248, 214, 109, .23), transparent 28px),
    linear-gradient(180deg, rgba(138, 162, 255, .12), rgba(118, 240, 195, .08));
  position: relative;
  overflow: hidden;
}
.ship-window::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 14px;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(118,240,195,.18) 0 26px, rgba(138,162,255,.12) 26px 52px);
  border-radius: 999px;
}
.ship-hull {
  position: absolute;
  left: 40px;
  bottom: 30px;
  width: 92px;
  height: 22px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, var(--accent), #8aa2ff);
}
.ship-mast {
  position: absolute;
  left: 86px;
  bottom: 48px;
  width: 4px;
  height: 42px;
  border-radius: 4px;
  background: var(--ink-800);
}
.ship-sail {
  position: absolute;
  left: 90px;
  bottom: 54px;
  width: 42px;
  height: 35px;
  clip-path: polygon(0 0, 100% 70%, 0 100%);
  background: rgba(255,255,255,.76);
}
.flight-hero {
  background:
    radial-gradient(circle at top right, rgba(138, 162, 255, .14), transparent 34rem),
    linear-gradient(180deg, transparent, rgba(255,255,255,.01));
}
.runway-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.runway-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 18px 24px;
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 24px, transparent 24px 42px);
  opacity: .35;
}
.flight-note { position: relative; overflow: hidden; }
.flight-note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #8aa2ff, var(--accent));
}
.plane-arrow {
  font-size: 2.6rem;
  color: var(--accent);
  transform: rotate(-12deg);
}

@media (max-width: 980px) {
  .dock-lane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .dock-lane { grid-template-columns: 1fr; }
  .runway-card { flex-direction: column; align-items: stretch; }
}

/* Flight deck board model */
.flight-board { position: relative; overflow: hidden; }
.flight-board::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  height: 3px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 24px, transparent 24px 42px);
  opacity: .25;
}
.flight-board-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.flight-stats { position: relative; z-index: 1; }
.flight-stats > div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,.2);
}
.flight-stats strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
}
.flight-stats span {
  display: block;
  margin-top: 7px;
  color: var(--ink-600);
  font-size: 1.3rem;
}
.flight-idea-card { position: relative; min-height: 230px; overflow: hidden; }
.flight-idea-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 162, 255, .22), transparent 66%);
}
.flight-code {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138, 162, 255, .28);
  color: #b7c4ff;
  background: rgba(138, 162, 255, .08);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .08em;
}

@media (max-width: 680px) {
  .flight-board-header { flex-direction: column; align-items: stretch; }
}

/* Journey copy tuning */
.journey-shell .hero-title-small,
.train-hero .hero-title-small {
  font-size: clamp(3.2rem, 5.6vw, 5.8rem);
}
.station-panel h3 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.station-panel p {
  font-size: 1.48rem;
}
.station-panel .sub {
  font-size: 1.38rem;
}
.station-panel .chip,
.station-panel .tag {
  font-size: 1.18rem;
  padding: 4px 8px;
}
.station-code {
  min-width: 48px;
  height: 30px;
  font-size: 1.25rem;
}

/* Nav icon placeholders. Once Fontello package is generated, include fontello.css and hide .nav-emoji if preferred. */
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-fontello {
  display: inline-flex;
  align-items: center;
  font-style: normal;
  color: var(--accent);
}

/* Journey company logo/link polish */
.station-heading {
  margin-top: 12px;
  margin-bottom: 10px;
}
.station-logo-wrap {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.station-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.station-title-link {
  color: var(--ink-900);
  text-decoration: none;
}
.station-title-link:hover {
  color: var(--accent);
}
.journey-dates .tag {
  color: var(--ink-700);
  background: rgba(118, 240, 195, 0.055);
}
.margin-top-16 { margin-top: 16px; }

/* Smaller visual marks */
.nav-links a {
  gap: 5px;
}
.nav-fontello {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-600);
}
.station-logo-wrap {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
}
.station-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.station-heading {
  gap: 12px;
}

/* Journey railway track */
.track-map::before {
  left: 28px;
  top: 30px;
  bottom: 30px;
  width: 18px;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 3px, rgba(138, 162, 255, 0.62) 3px 6px, transparent 6px 12px, rgba(138, 162, 255, 0.62) 12px 15px, transparent 15px),
    repeating-linear-gradient(180deg, transparent 0 15px, rgba(248, 214, 109, 0.38) 15px 20px, transparent 20px 34px);
  opacity: 1;
}
.station-rail {
  padding-top: 20px;
}
.station-dot {
  display: none;
}
.station-stop {
  width: 30px;
  height: 10px;
  border-radius: 999px;
  background: var(--base);
  border: 2px solid rgba(138, 162, 255, 0.72);
  box-shadow: 0 0 0 5px rgba(138, 162, 255, 0.08);
  z-index: 2;
}
.train-marker {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #07100d;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 7px rgba(118, 240, 195, 0.12), 0 18px 36px rgba(118, 240, 195, 0.24);
  z-index: 3;
}
.train-marker i::before {
  margin: 0;
  width: auto;
}

.station-company-tag {
  text-decoration: none;
  color: var(--accent);
  border-color: rgba(118, 240, 195, 0.24);
}
.station-company-tag:hover {
  color: var(--ink-900);
  border-color: rgba(118, 240, 195, 0.48);
}

/* Stronger railway-track treatment for Journey */
.track-map {
  --rail-x: 31px;
  --rail-gap: 18px;
  --rail-color: rgba(226, 232, 255, 0.58);
  --sleeper-color: rgba(248, 214, 109, 0.34);
  position: relative;
}
.track-map::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: 18px;
  bottom: 18px;
  width: calc(var(--rail-gap) + 8px);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      var(--rail-color) 0 4px,
      transparent 4px var(--rail-gap),
      var(--rail-color) var(--rail-gap) calc(var(--rail-gap) + 4px),
      transparent calc(var(--rail-gap) + 4px)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 0 28px rgba(138, 162, 255, 0.08);
  opacity: 1;
  z-index: 0;
}
.track-map::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - 10px);
  top: 32px;
  bottom: 32px;
  width: calc(var(--rail-gap) + 28px);
  background: repeating-linear-gradient(
    180deg,
    transparent 0 18px,
    var(--sleeper-color) 18px 23px,
    transparent 23px 42px
  );
  border-radius: 999px;
  opacity: 0.9;
  z-index: 0;
}
.station-card {
  grid-template-columns: 88px 1fr;
  position: relative;
  z-index: 1;
}
.station-rail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
  position: relative;
  z-index: 2;
}
.station-stop {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--base);
  border: 4px solid var(--rail-color);
  box-shadow:
    0 0 0 7px rgba(10, 13, 20, 0.86),
    0 0 0 9px rgba(138, 162, 255, 0.13);
}
.train-marker {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 1.9rem;
  transform: translateX(1px);
  box-shadow:
    0 0 0 7px rgba(10, 13, 20, 0.88),
    0 0 0 10px rgba(118, 240, 195, 0.14),
    0 20px 42px rgba(118, 240, 195, 0.22);
}
.train-marker::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: -3px;
  top: -3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.station-panel {
  position: relative;
  z-index: 2;
}

@media (max-width: 680px) {
  .track-map { --rail-x: 14px; --rail-gap: 14px; }
  .station-card { grid-template-columns: 52px 1fr; }
  .track-map::before { width: 22px; }
  .track-map::after { left: 4px; width: 42px; }
  .train-marker { width: 38px; height: 38px; font-size: 1.6rem; }
  .station-stop { width: 22px; height: 22px; }
}

.toolbox-card {
  padding: 28px;
}
.toolbox-card .skill-row h3 {
  color: var(--ink-900);
}

/* Shipyard scene: make the page feel like an actual dockyard */
.shipyard-section {
  padding-top: 88px;
}
.harbor-scene {
  position: relative;
  z-index: 1;
  height: 245px;
  margin-top: 26px;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(248, 214, 109, 0.18), transparent 52px),
    linear-gradient(180deg, rgba(138, 162, 255, 0.12) 0%, rgba(118, 240, 195, 0.06) 54%, rgba(13, 54, 68, 0.42) 55%, rgba(6, 22, 32, 0.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.harbor-scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 132px;
  height: 18px;
  background: repeating-linear-gradient(90deg, rgba(248,214,109,.38) 0 24px, rgba(248,214,109,.15) 24px 36px, transparent 36px 52px);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(0,0,0,.22);
}
.harbor-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 86px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 19px),
    linear-gradient(180deg, rgba(10, 44, 59, .1), rgba(6, 20, 28, .7));
}
.crane {
  position: absolute;
  left: 62px;
  top: 30px;
  width: 175px;
  height: 140px;
  z-index: 3;
}
.crane-tower {
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 16px;
  height: 118px;
  background: linear-gradient(90deg, #f8d66d, #b99031);
  border-radius: 8px 8px 0 0;
  box-shadow: 28px 0 0 rgba(248, 214, 109, .48);
}
.crane-tower::before,
.crane-tower::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 58px;
  height: 4px;
  background: rgba(10,13,20,.45);
  transform: rotate(34deg);
  transform-origin: left center;
}
.crane-tower::before { top: 34px; }
.crane-tower::after { top: 78px; }
.crane-arm {
  position: absolute;
  left: 20px;
  top: 16px;
  width: 145px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8d66d, #d6a83e);
  transform: rotate(-5deg);
  transform-origin: left center;
}
.crane-arm::after {
  content: "";
  position: absolute;
  left: 44px;
  top: -22px;
  width: 48px;
  height: 48px;
  border-left: 5px solid rgba(248,214,109,.8);
  border-top: 5px solid rgba(248,214,109,.8);
  transform: rotate(45deg);
}
.crane-cable {
  position: absolute;
  left: 133px;
  top: 25px;
  width: 2px;
  height: 58px;
  background: rgba(226,232,255,.55);
}
.crane-hook {
  position: absolute;
  left: 127px;
  top: 80px;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(226,232,255,.68);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.container-stack {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 54px);
  grid-auto-rows: 28px;
  gap: 5px;
}
.container-stack span {
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(138,162,255,.75), rgba(118,240,195,.45));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.container-stack span:nth-child(2n) { background: linear-gradient(135deg, rgba(248,214,109,.78), rgba(139,92,246,.44)); }
.stack-one { left: 300px; top: 78px; }
.stack-two { right: 70px; top: 68px; grid-template-columns: repeat(2, 48px); }
.dry-dock {
  position: absolute;
  left: 47%;
  bottom: 44px;
  transform: translateX(-50%);
  width: 250px;
  height: 82px;
  z-index: 4;
}
.dock-ship-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 48px;
  border-radius: 8px 8px 42px 42px;
  background: linear-gradient(135deg, var(--accent), #8aa2ff);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.dock-ship-body::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 12px;
  height: 5px;
  border-radius: 999px;
  background: rgba(7,16,13,.28);
}
.dock-ship-cabin {
  position: absolute;
  left: 96px;
  bottom: 45px;
  width: 72px;
  height: 34px;
  border-radius: 14px 14px 4px 4px;
  background: rgba(255,255,255,.78);
}
.dock-ship-window {
  position: absolute;
  bottom: 55px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10,13,20,.5);
  z-index: 5;
}
.window-one { left: 115px; }
.window-two { left: 140px; }
.water-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 5;
  display: grid;
  gap: 12px;
  opacity: .7;
}
.water-lines span {
  height: 2px;
  width: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 36px, rgba(118,240,195,.35) 36px 76px, transparent 76px 112px);
}

@media (max-width: 980px) {
  .harbor-scene { height: 220px; }
  .stack-two { display: none; }
  .dry-dock { left: 62%; }
}
@media (max-width: 680px) {
  .shipyard-section { padding-top: 64px; }
  .harbor-scene { height: 190px; }
  .crane { left: 22px; transform: scale(.78); transform-origin: left top; }
  .stack-one { left: 210px; top: 92px; transform: scale(.78); transform-origin: left top; }
  .dry-dock { left: 62%; transform: translateX(-50%) scale(.76); transform-origin: center bottom; }
}

/* Terminal / Neovim inspired override */
:root {
  color-scheme: dark;
  --base: #080b0f;
  --base-2: #0d1117;
  --base-3: #111821;
  --ink-900: #d7e0ea;
  --ink-800: #c9d1d9;
  --ink-700: #8b949e;
  --ink-600: #6e7681;
  --link: #7aa2f7;
  --link-hover: #a6c1ff;
  --accent: #9ece6a;
  --accent-2: #bb9af7;
  --gold: #e0af68;
  --border-color: rgba(158, 206, 106, 0.18);
  --border-strong: rgba(158, 206, 106, 0.34);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1120px;
  --nav-height: 64px;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: -0.018em;
  color: var(--ink-800);
  background:
    linear-gradient(rgba(158, 206, 106, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 206, 106, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(122, 162, 247, 0.10), transparent 30rem),
    #080b0f;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.045;
  background: repeating-linear-gradient(180deg, transparent 0 2px, #ffffff 3px);
  mix-blend-mode: screen;
}

.site-noise { opacity: 0.025; }
.orb { display: none; }

.container { width: min(var(--container), calc(100% - 48px)); }
.section { padding: 64px 0; }
.section-lg { padding: 84px 0 64px; }
.section-sm { padding: 42px 0; }

.top-nav {
  background: rgba(8, 11, 15, 0.9);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 rgba(122,162,247,0.12), 0 12px 34px rgba(0,0,0,0.22);
}
.top-nav::before {
  content: "-- NORMAL --";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -25px;
  height: 24px;
  padding-left: max(24px, calc((100vw - var(--container)) / 2));
  color: #080b0f;
  background: linear-gradient(90deg, var(--accent), var(--link));
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: auto;
  min-width: 54px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  background: rgba(158, 206, 106, 0.08);
  box-shadow: 0 0 24px rgba(158, 206, 106, 0.14);
}
.brand-mark::before { content: "["; }
.brand-mark::after { content: "]"; }
.brand-copy strong { color: var(--ink-900); }
.brand-copy small { color: var(--ink-600); }
.nav-links a {
  border-radius: 4px;
  color: var(--ink-700);
  border: 1px solid transparent;
}
.nav-links a:hover {
  background: rgba(122, 162, 247, 0.10);
  color: var(--link-hover);
  border-color: rgba(122, 162, 247, 0.28);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-size: 1.25rem;
}
.eyebrow::before { content: ":"; color: var(--gold); }
.hero-title,
.hero-title-small,
h1,
h2,
h3,
.h3 {
  font-family: inherit;
  letter-spacing: -0.055em;
  color: var(--ink-900);
}
.hero-title-small::after,
.hero-title::after {
  content: "_";
  color: var(--accent);
  animation: terminal-blink 1.1s steps(1) infinite;
}
@keyframes terminal-blink { 50% { opacity: 0; } }
.lead, .sub { color: var(--ink-700); }
.gradient-text {
  background: none;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(158, 206, 106, 0.18);
}

.card,
.card-glow,
.command-card,
.quote-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.94), rgba(8, 11, 15, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(201,209,217,0.04);
}
.card,
.card-glow { position: relative; }
.card::before,
.card-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(158,206,106,0.10), transparent 28%, rgba(122,162,247,0.06));
  opacity: 0.5;
}
.card > *,
.card-glow > * { position: relative; z-index: 1; }
.hover-lift:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(17, 24, 33, 0.98), rgba(10, 14, 20, 0.98));
}

.button {
  border-radius: 4px;
  min-height: 40px;
  color: var(--ink-900);
  background: rgba(122, 162, 247, 0.08);
  border: 1px solid rgba(122, 162, 247, 0.3);
  font-weight: 800;
}
.button::before { content: "./"; color: var(--accent); margin-right: 1px; }
.button-primary {
  color: #080b0f;
  background: var(--accent);
  border-color: var(--accent);
}
.button-primary::before { color: #080b0f; }
.button-ghost { background: transparent; }

.pill,
.tag,
.chip,
.status-dot {
  border-radius: 4px;
  background: rgba(158, 206, 106, 0.07);
  border-color: rgba(158, 206, 106, 0.25);
  color: var(--ink-700);
}
.tag::before,
.chip::before { content: "#"; color: var(--accent); }
.status-dot { color: var(--accent); }
.status-dot::before {
  border-radius: 0;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 16px var(--accent);
}

.command-card {
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
  padding-top: 46px;
}
.command-card::after {
  content: "~/rajatverse/profile.lua";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #080b0f;
  background: linear-gradient(90deg, var(--accent), var(--link));
  font-weight: 900;
  font-size: 1.25rem;
}
.terminal-dots { display: none; }
.avatar-xl {
  border-radius: 8px;
  border-color: var(--border-strong);
  filter: saturate(0.85) contrast(1.04);
}
.console-lines {
  border-radius: 6px;
  border: 1px solid rgba(158,206,106,0.18);
  background: #05070a;
  color: var(--ink-800);
}
.console-lines p:first-child::after { content: " --cwd=/Users/rajatmittal"; color: var(--ink-600); }
.console-output { color: var(--ink-700); }
.console-lines span { color: var(--accent); }

.section-heading { border-left: 2px solid var(--accent); padding-left: 16px; }
.project-card { min-height: 280px; }
.principle {
  border-radius: 6px;
  border: 1px solid rgba(122,162,247,0.15);
  background: rgba(5, 7, 10, 0.62);
}
.note-row { border-radius: 8px; }
.prose pre { border-radius: 6px; background: #05070a; }
.prose code { color: var(--accent); }
.footer { background: #070a0e; }
.footer-links a { font-size: 1.35rem; }

.train-board,
.flight-board,
.shipyard-board {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(13,17,23,0.96), rgba(8,11,15,0.96));
}

@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .top-nav::before { display: none; }
  .section-lg { padding-top: 72px; }
}

/* Golden-ratio layout pass: Fibonacci spacing + 1.618 proportions */
:root {
  --phi: 1.618;
  --s-1: 0.5rem;
  --s0: 0.8rem;
  --s1: 1.3rem;
  --s2: 2.1rem;
  --s3: 3.4rem;
  --s4: 5.5rem;
  --s5: 8.9rem;
  --s6: 14.4rem;
  --container: 1164px;
  --narrow-container: 720px;
  --article-container: 720px;
  --radius: 1.3rem;
  --radius-sm: 0.8rem;
  --nav-height: 5.5rem;
}

body {
  line-height: 1.618;
}

.container {
  width: min(var(--container), calc(100% - var(--s4)));
}
.narrow { --container: var(--narrow-container); }
.article-container { --container: var(--article-container); }

.section { padding: var(--s5) 0; }
.section-lg { padding: var(--s6) 0 var(--s5); }
.section-sm { padding: var(--s4) 0; }
.margin-top-4 { margin-top: var(--s-1); }
.margin-top-8 { margin-top: var(--s0); }
.margin-top-32 { margin-top: var(--s3); }
.margin-bottom-4 { margin-bottom: var(--s-1); }
.margin-bottom-32 { margin-bottom: var(--s3); }

.gap-8 { gap: var(--s0); }
.gap-10 { gap: var(--s1); }
.gap-12 { gap: var(--s1); }
.gap-16 { gap: var(--s2); }
.gap-18 { gap: var(--s2); }
.gap-24 { gap: var(--s3); }
.gap-32 { gap: var(--s4); }

.hero-title {
  max-width: 89rem;
  font-size: clamp(5.5rem, 8vw, 8.9rem);
  line-height: 0.93;
}
.hero-title-small {
  max-width: 72rem;
  font-size: clamp(3.4rem, 6vw, 5.5rem);
  line-height: 1;
}
h2 {
  font-size: clamp(2.6rem, 3.4vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: var(--s2);
}
.h3,
h3 {
  font-size: 2.1rem;
  line-height: 1.272;
}
.lead {
  max-width: 72rem;
  font-size: clamp(1.8rem, 2vw, 2.1rem);
  line-height: 1.618;
}
.sub,
p,
li {
  line-height: 1.618;
}
.eyebrow {
  margin-bottom: var(--s1);
}

.top-nav {
  min-height: var(--nav-height);
}
.top-nav .container {
  min-height: var(--nav-height);
}
.brand-mark {
  min-width: var(--s4);
  height: var(--s3);
}
.nav-links a {
  padding: var(--s0) var(--s1);
}

.card,
.card-glow {
  border-radius: var(--radius);
  padding: var(--s3);
}
.card-glow {
  border-radius: var(--s2);
}
.button {
  min-height: 4.2rem;
  padding-inline: var(--s2);
}
.pill { padding: var(--s0) var(--s1); }
.tag { padding: 0.5rem var(--s0); }
.chip { padding: var(--s0) var(--s1); }
.status-dot { padding: var(--s0) var(--s1); }

.command-card {
  max-width: 72rem;
  padding: var(--s4) var(--s3) var(--s3);
}
.avatar-xl {
  width: var(--s6);
  height: var(--s6);
  margin: var(--s3) auto var(--s2);
}
.console-lines {
  margin-top: var(--s3);
  padding: var(--s2);
}

.section-heading {
  max-width: 72rem;
  margin-bottom: var(--s3);
}
.project-card {
  min-height: 34rem;
  gap: var(--s2);
}
.compact-project {
  min-height: 34rem;
}
.quote-card {
  padding: var(--s3);
}
.principle {
  padding: var(--s2);
}

.note-list { gap: var(--s1); }
.note-row {
  gap: var(--s2);
  padding: var(--s3);
}
.note-row h2 {
  font-size: 3.4rem;
  margin-bottom: var(--s0);
}
.prose {
  font-size: 1.8rem;
  line-height: 1.618;
}
.prose pre {
  padding: var(--s2);
}

.timeline { gap: var(--s2); }
.timeline-item {
  grid-template-columns: var(--s4) minmax(0, 1fr);
  gap: var(--s2);
}
.timeline-logo {
  width: var(--s4);
  height: var(--s4);
}

.train-board,
.flight-board,
.shipyard-board {
  padding: var(--s3);
}

@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.618fr) minmax(32rem, 1fr);
  }
  .grid-3 {
    gap: var(--s2);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - var(--s3)));
  }
  .section-lg { padding-top: var(--s5); }
  .section { padding: var(--s4) 0; }
  .section-sm { padding: var(--s3) 0; }
  .card,
  .card-glow {
    padding: var(--s2);
  }
  .hero-title { font-size: clamp(4.2rem, 15vw, 5.5rem); }
  .hero-title-small { font-size: clamp(3.4rem, 12vw, 4.2rem); }
}

/* Tighten nvim page headers to card lists */
.flight-hero,
.shipyard-section,
.journey-hero {
  padding-bottom: var(--s2);
}
.flight-hero + .section-sm,
.shipyard-section + .section-sm,
.journey-hero + .section-sm {
  padding-top: var(--s1);
}
.flight-hero + .section-sm .note-list,
.shipyard-section + .section-sm .grid,
.journey-hero + .section-sm .journey-shell {
  margin-top: 0;
}

/* Compact shipyard cards + boarding-pass flight notes */
.shipyard-section + .section-sm .grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: var(--s1);
}
.shipyard-section + .section-sm .project-card,
.shipyard-section + .section-sm .compact-project {
  min-height: 0;
  padding: var(--s2);
  gap: var(--s1);
}
.shipyard-section + .section-sm .project-card h3 {
  margin: 0;
  font-size: 1.8rem;
}
.shipyard-section + .section-sm .project-card .sub {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.45;
}
.shipyard-section + .section-sm .project-card .tag {
  font-size: 1.1rem;
  padding: 0.35rem 0.6rem;
}
.shipyard-section + .section-sm .project-card .status-dot {
  font-size: 1.05rem;
  padding: 0.45rem 0.65rem;
}
.shipyard-section + .section-sm .card-link {
  margin-top: 0;
  font-size: 1.28rem;
}

.flight-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12.8rem;
  align-items: stretch;
  min-height: 16rem;
  padding: 0;
  overflow: hidden;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.98), rgba(8,11,15,0.98));
}
.flight-note > div {
  padding: var(--s2) var(--s3);
}
.flight-note::after {
  content: "";
  position: absolute;
  top: -1.1rem;
  bottom: -1.1rem;
  right: 12.8rem;
  width: 2.2rem;
  background:
    radial-gradient(circle at 50% 1.1rem, transparent 0 0.68rem, var(--border-color) 0.72rem, transparent 0.78rem) top / 2.2rem 2.2rem repeat-y;
  opacity: 0.9;
  pointer-events: none;
}
.flight-note .plane-arrow {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 16rem;
  border-left: 1px dashed var(--border-strong);
  color: var(--accent);
  font-size: 2rem;
  background:
    repeating-linear-gradient(90deg, rgba(158,206,106,0.20) 0 0.25rem, transparent 0.25rem 0.55rem),
    rgba(158,206,106,0.045);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.flight-note .plane-arrow::before {
  content: "BOARDING PASS";
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--ink-700);
  margin-bottom: var(--s1);
}
.flight-note .plane-arrow::after {
  content: "▌▌ ▌ ▌▌▌ ▌ ▌▌";
  position: absolute;
  bottom: var(--s1);
  left: 50%;
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
  color: var(--ink-600);
  font-size: 1rem;
  letter-spacing: -0.16em;
}
.flight-note h2 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  margin-bottom: var(--s0);
}
.flight-note .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(158,206,106,0.22);
  border-radius: 0.4rem;
  background: rgba(158,206,106,0.06);
  margin-bottom: var(--s1);
}
.flight-note .tag {
  font-size: 1.1rem;
}

@media (max-width: 680px) {
  .flight-note {
    grid-template-columns: 1fr;
  }
  .flight-note::after { display: none; }
  .flight-note .plane-arrow {
    min-height: 4.2rem;
    height: 4.2rem;
    border-left: 0;
    border-top: 1px dashed var(--border-strong);
    writing-mode: horizontal-tb;
  }
  .flight-note .plane-arrow::before { margin: 0 var(--s1) 0 0; }
  .flight-note .plane-arrow::after { display: none; }
}

/* Boarding-pass look without literal label text */
.flight-note .plane-arrow::before {
  content: "✈";
  margin: 0;
  color: var(--accent);
  font-size: 2.4rem;
  letter-spacing: 0;
}
.flight-note .plane-arrow {
  font-size: 0;
}
.flight-note .plane-arrow::after {
  content: "▌▌ ▌ ▌▌▌ ▌ ▌▌";
}

/* Redesigned flight cards: dark terminal tickets */
.flight-note {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14.4rem;
  gap: 0;
  min-height: 15.2rem;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(122, 162, 247, 0.28);
  border-radius: 1.3rem;
  background:
    linear-gradient(90deg, rgba(13,17,23,0.98), rgba(13,17,23,0.98) calc(100% - 14.4rem), rgba(158,206,106,0.09) calc(100% - 14.4rem), rgba(122,162,247,0.08)),
    #0d1117;
  box-shadow: 0 1.3rem 4.2rem rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}
.flight-note::before,
.flight-note::after {
  content: "";
  position: absolute;
  right: 13.25rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #080b0f;
  border: 1px solid rgba(122, 162, 247, 0.22);
  z-index: 3;
}
.flight-note::before { top: -1.15rem; }
.flight-note::after { bottom: -1.15rem; }
.flight-note:hover {
  border-color: rgba(158, 206, 106, 0.58);
  transform: translateY(-2px);
}
.flight-note .ticket-main {
  min-width: 0;
  padding: var(--s2) var(--s3);
}
.ticket-route {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-bottom: var(--s1);
  color: var(--ink-600);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.ticket-route span {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(122,162,247,0.2);
  border-radius: 0.4rem;
  background: rgba(122,162,247,0.055);
}
.ticket-route i {
  color: var(--accent);
  font-style: normal;
}
.flight-note .eyebrow {
  display: inline-flex;
  margin-bottom: var(--s0);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
}
.flight-note h2 {
  margin: 0 0 var(--s0);
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  line-height: 1.05;
}
.flight-note .sub {
  max-width: 58rem;
  margin: 0 0 var(--s1);
  font-size: 1.42rem;
  line-height: 1.48;
}
.ticket-stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.35rem;
  padding: var(--s2) var(--s1) var(--s2) var(--s2);
  border-left: 1px dashed rgba(158,206,106,0.44);
}
.ticket-stub::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 1.1rem;
  bottom: 1.1rem;
  border-left: 1px dashed rgba(122,162,247,0.34);
}
.ticket-label {
  color: var(--ink-600);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.ticket-stub strong {
  color: var(--accent);
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.ticket-date {
  margin-top: var(--s0);
  color: var(--ink-700);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}
.ticket-barcode {
  display: block;
  width: 100%;
  height: 3.4rem;
  margin-top: var(--s0);
  border-radius: 0.3rem;
  background:
    repeating-linear-gradient(90deg,
      var(--ink-700) 0 0.12rem,
      transparent 0.12rem 0.28rem,
      var(--ink-700) 0.28rem 0.52rem,
      transparent 0.52rem 0.78rem,
      var(--ink-700) 0.78rem 0.88rem,
      transparent 0.88rem 1.2rem);
  opacity: 0.42;
}
.flight-note .plane-arrow { display: none; }

@media (max-width: 680px) {
  .flight-note {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .flight-note::before,
  .flight-note::after { display: none; }
  .ticket-stub {
    grid-template-columns: repeat(5, auto);
    align-items: center;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px dashed rgba(158,206,106,0.44);
    padding: var(--s1) var(--s2);
  }
  .ticket-stub::before { display: none; }
  .ticket-barcode { display: none; }
}

/* Remove ticket punch circles from flight cards */
.flight-note::before,
.flight-note::after {
  display: none;
}

/* Home nvim dashboard: compact profile sidebar + feeds */
.home-dashboard {
  padding-top: var(--s5);
}
.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(24rem, 34rem) minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
.profile-mini {
  position: sticky;
  top: calc(var(--nav-height) + var(--s4));
  max-width: none;
  margin: 0;
  padding: var(--s3);
}
.profile-mini::after {
  content: "~/profile.lua";
}
.profile-mini .profile-card {
  display: grid;
  grid-template-columns: 8.9rem minmax(0, 1fr);
  gap: var(--s2);
  align-items: center;
  text-align: left;
}
.profile-mini .avatar-xl {
  width: 8.9rem;
  height: 8.9rem;
  margin: 0;
  border-radius: 0.8rem;
}
.profile-mini .console-lines {
  margin-top: var(--s2);
  font-size: 1.2rem;
  padding: var(--s1);
}
.home-feed .section-heading {
  margin-bottom: var(--s2);
}
.home-feed .project-card,
.home-note-card {
  min-height: 22rem;
  padding: var(--s2);
  gap: var(--s1);
  display: flex;
  flex-direction: column;
}
.home-feed .project-card h3,
.home-note-card h3 {
  margin: 0;
  font-size: 1.8rem;
}
.home-feed .project-card .sub,
.home-note-card .sub {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.48;
}
.home-note-card {
  color: inherit;
}
.home-note-card::after {
  content: ":open note";
  margin-top: auto;
  color: var(--link);
  font-size: 1.18rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .home-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .profile-mini {
    position: relative;
    top: auto;
  }
}
@media (max-width: 680px) {
  .profile-mini .profile-card {
    grid-template-columns: 1fr;
  }
}

/* Homepage refinement: static taller profile pane + flight first */
.profile-mini {
  position: relative;
  top: auto;
  min-height: 42rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.profile-mini .profile-card {
  align-content: start;
}
.profile-mini .console-lines {
  margin-top: var(--s3);
}

/* Compact journey timeline cards */
.journey-shell {
  padding: var(--s2);
}
.track-map {
  padding-top: var(--s1);
}
.station-card {
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: var(--s1);
  padding: 0.55rem 0;
}
.track-map::before {
  left: 2rem;
  width: 2px;
}
.station-rail {
  padding-top: var(--s1);
}
.station-panel {
  padding: var(--s2);
}
.station-panel h3 {
  font-size: 1.75rem;
}
.station-panel p {
  font-size: 1.42rem;
  line-height: 1.48;
}
.journey-dates {
  margin-top: var(--s0);
}
.station-panel .chip,
.station-panel .tag {
  font-size: 1.08rem;
  padding: 0.35rem 0.6rem;
}
.train-marker,
.station-stop {
  transform: scale(0.78);
}

/* Give homepage profile content breathing room below its file-title bar */
.profile-mini {
  padding-top: var(--s5);
}
.profile-mini::after {
  height: 4.2rem;
  padding-inline: var(--s2);
}
.profile-mini .profile-card {
  margin-top: var(--s1);
}

/* Profile-card social links, moved out of footer */
.profile-socials {
  display: grid;
  gap: var(--s0);
  margin-top: var(--s2);
}
.profile-socials a {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-height: 4.2rem;
  padding: 0 var(--s1);
  border: 1px solid rgba(122, 162, 247, 0.22);
  border-radius: 0.6rem;
  color: var(--ink-700);
  background: rgba(122, 162, 247, 0.055);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
}
.profile-socials a:hover {
  color: var(--ink-900);
  border-color: rgba(158, 206, 106, 0.48);
  background: rgba(158, 206, 106, 0.08);
}
.social-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.4rem;
  color: #080b0f;
  background: var(--accent);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

/* Actual platform icons inside profile links */
.social-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  fill: currentColor;
}
.social-icon {
  color: #080b0f;
}

/* Social links as 2-column grid inside profile card */
.profile-socials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-socials a {
  min-width: 0;
  padding-inline: var(--s0);
}
.profile-socials a > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
