@charset "UTF-8";
/* ══════════════════════════════════════
   BRAND TOKENS
══════════════════════════════════════ */
:root {
  --lime: #AEDC03;
  --cyan: #00CFC8;
  --yellow: #FFE030;
  --helion: #F5A623;
  --meridian: #F83585;
  --perigee: #4C32BD;
  --void: #010101;
  --surface: #0d0d0f;
  --surface2: #141418;
  --border: #1c1c22;
  --border2: #242428;
  --text: #e0e0d8;
  --sub: #a8a8a0;
  --mid: #7a7a72;
  --dim: #4a4a44;
  --ultra-dim:#2e2e2a;
  --atmo: linear-gradient(to bottom, #010101 75%, #4C32BD 100%);
  --ff: "Fraunces", serif;
  --fb: "IBM Plex Sans", sans-serif;
  --fm: "IBM Plex Mono", monospace;
  --nav-h: 60px;
}

/* ══════════════════════════════════════
   RESET + BASE
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(1, 1, 1, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.nav-logo {
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.04em;
}
.nav-logo .nav-logo-subdued {
  color: var(--mid);
  padding-left: 0.25em;
}

.nav-hamburger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--mid);
  transition: all 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--lime);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--lime);
}

/* ── DRAWER ── */
.drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(1, 1, 1, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px 24px 40px;
}

.drawer.open {
  transform: translateY(0);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-link {
  font-family: var(--fb);
  font-size: 24px;
  font-weight: 300;
  color: var(--mid);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-link:first-child {
  border-top: 1px solid var(--border);
}

.drawer-link:hover {
  color: var(--text);
}

.drawer-link .arrow {
  font-family: var(--fm);
  font-size: 14px;
  color: var(--dim);
  transition: color 0.15s, transform 0.15s;
}

.drawer-link:hover .arrow {
  color: var(--lime);
  transform: translateX(4px);
}

.drawer-meta {
  margin-top: 28px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  gap: 16px;
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
/* page offset for fixed nav */
.page {
  padding-top: var(--nav-h);
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  background: var(--atmo);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 220, 3, 0.05) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0.8;
  margin-bottom: 20px;
  animation: fadein 0.6s ease both;
}

.hero-h1 {
  font-family: var(--ff);
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 600px;
  animation: fadein 0.6s 0.1s ease both;
}

.hero-h1 em {
  font-style: italic;
  color: var(--cyan);
}

.hero-sub {
  font-family: var(--fb);
  font-size: clamp(14px, 3vw, 16px);
  color: var(--mid);
  margin-top: 20px;
  line-height: 1.75;
  max-width: 480px;
  animation: fadein 0.6s 0.2s ease both;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  animation: fadein 0.6s 0.3s ease both;
}

.btn-primary {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--void);
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--perigee);
  color: var(--perigee);
  padding: 12px 24px;
  cursor: pointer;
  background: none;
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--mid);
  color: var(--mid);
}

/* scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadein 1s 0.6s ease both;
}

.hero-scroll .line {
  width: 32px;
  height: 1px;
  background: var(--dim);
}

.hero-scroll .label {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── STATUS BAR ── */
.status-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.status-bar::-webkit-scrollbar {
  display: none;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.pulse {
  animation: spulse 2s ease-in-out infinite;
}

.status-text {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.04em;
}

.status-val {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ── WRITING SECTION ── */
.section {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--ff);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.section-link {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  cursor: pointer;
}

/* post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.post-row:last-child {
  border-bottom: none;
}

.post-row:hover .post-title {
  color: var(--text);
}

.post-title {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--sub);
  line-height: 1.4;
  transition: color 0.15s;
}

.post-title.featured {
  color: var(--text);
}

.post-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 6px;
}

.post-tag {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.post-tag-sep {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--ultra-dim);
  user-select: none;
}

.post-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.post-date {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.post-readtime {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ── FEATURED POST ── */
.featured-post {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.fp-eyebrow {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.fp-h1 {
  font-family: var(--ff);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  max-width: 560px;
}

.fp-accent-bar {
  height: 2px;
  background: linear-gradient(to right, var(--lime), var(--perigee) 60%, transparent);
  margin: 20px 0;
  max-width: 320px;
}

.fp-lede {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--mid);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 14px;
}

.fp-body {
  font-family: var(--fb);
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 20px;
}

.fp-pullquote {
  border-left: 2px solid var(--meridian);
  padding-left: 18px;
  margin: 24px 0;
  max-width: 480px;
}

.fp-pullquote p {
  font-family: var(--ff);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

.fp-pullquote cite {
  display: block;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  margin-top: 8px;
  letter-spacing: 0.06em;
  font-style: normal;
}

.fp-tags {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid;
}

/* ── POST PAGE ── */
.post-page {
  max-width: 960px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 48px;
}

.post-body,
.md-content {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--mid);
  line-height: 1.8;
  /* ── SYNTAX HIGHLIGHTING (class-based, sy- prefix) ── */
}
.post-body p,
.md-content p {
  margin: 0 0 1.25em;
}
.post-body > p:first-child,
.md-content > p:first-child {
  font-size: 16px;
  color: var(--sub);
  line-height: 1.9;
}
.post-body h2,
.md-content h2 {
  font-family: var(--ff);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 600;
  color: var(--text);
  margin: 2.5em 0 0.65em;
  line-height: 1.15;
}
.post-body h3,
.md-content h3 {
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 600;
  color: var(--sub);
  margin: 2em 0 0.5em;
}
.post-body h4,
.md-content h4 {
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  color: var(--lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.75em 0 0.5em;
}
.post-body ul, .post-body ol,
.md-content ul,
.md-content ol {
  margin: 0 0 1.25em 1.5em;
}
.post-body ul li, .post-body ol li,
.md-content ul li,
.md-content ol li {
  margin-bottom: 0.4em;
}
.post-body a,
.md-content a {
  color: var(--lime);
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.15s;
}
.post-body a:hover,
.md-content a:hover {
  border-bottom-color: var(--lime);
}
.post-body em,
.md-content em {
  color: var(--helion);
}
.post-body strong,
.md-content strong {
  color: var(--text);
  font-weight: 600;
}
.post-body code,
.md-content code {
  font-family: var(--fm);
  font-size: 0.85em;
  color: var(--lime);
  background: var(--surface2);
  padding: 0.1em 0.4em;
  border-radius: 2px;
}
.post-body pre,
.md-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-body pre code,
.md-content pre code {
  background: none;
  color: var(--text);
  padding: 0;
  font-size: 13px;
  border-radius: 0;
}
.post-body pre.highlight,
.md-content pre.highlight {
  /* keywords: if, fn, let, pub, use, … */
  /* storage types: mut, const, static, type aliases */
  /* string literals */
  /* escape sequences and char literals */
  /* comments */
  /* numeric / boolean constants */
  /* function / method names at definition site */
  /* type names, struct names */
  /* macro invocations */
  /* built-in support functions / types */
  /* operators and punctuation */
  /* variables and parameters */
  /* attributes / decorators */
}
.post-body pre.highlight .sy-keyword,
.md-content pre.highlight .sy-keyword {
  color: var(--meridian);
}
.post-body pre.highlight .sy-storage,
.md-content pre.highlight .sy-storage {
  color: var(--lime);
}
.post-body pre.highlight .sy-string,
.md-content pre.highlight .sy-string {
  color: var(--helion);
}
.post-body pre.highlight .sy-constant.sy-character,
.post-body pre.highlight .sy-constant.sy-character.sy-escape,
.post-body pre.highlight .sy-string.sy-regexp,
.md-content pre.highlight .sy-constant.sy-character,
.md-content pre.highlight .sy-constant.sy-character.sy-escape,
.md-content pre.highlight .sy-string.sy-regexp {
  color: var(--perigee);
}
.post-body pre.highlight .sy-comment,
.md-content pre.highlight .sy-comment {
  color: var(--dim);
  font-style: italic;
}
.post-body pre.highlight .sy-constant.sy-numeric,
.post-body pre.highlight .sy-constant.sy-language,
.md-content pre.highlight .sy-constant.sy-numeric,
.md-content pre.highlight .sy-constant.sy-language {
  color: var(--cyan);
}
.post-body pre.highlight .sy-entity.sy-name.sy-function,
.md-content pre.highlight .sy-entity.sy-name.sy-function {
  color: var(--text);
}
.post-body pre.highlight .sy-entity.sy-name.sy-type,
.post-body pre.highlight .sy-entity.sy-name.sy-class,
.md-content pre.highlight .sy-entity.sy-name.sy-type,
.md-content pre.highlight .sy-entity.sy-name.sy-class {
  color: var(--sub);
}
.post-body pre.highlight .sy-entity.sy-name.sy-macro,
.md-content pre.highlight .sy-entity.sy-name.sy-macro {
  color: var(--yellow);
}
.post-body pre.highlight .sy-support.sy-function,
.post-body pre.highlight .sy-support.sy-type,
.md-content pre.highlight .sy-support.sy-function,
.md-content pre.highlight .sy-support.sy-type {
  color: var(--sub);
}
.post-body pre.highlight .sy-keyword.sy-operator,
.md-content pre.highlight .sy-keyword.sy-operator {
  color: var(--mid);
}
.post-body pre.highlight .sy-punctuation,
.md-content pre.highlight .sy-punctuation {
  color: var(--mid);
}
.post-body pre.highlight .sy-variable,
.md-content pre.highlight .sy-variable {
  color: var(--text);
}
.post-body pre.highlight .sy-meta.sy-attribute,
.md-content pre.highlight .sy-meta.sy-attribute {
  color: var(--perigee);
}
.post-body blockquote,
.md-content blockquote {
  border-left: 2px solid var(--meridian);
  padding-left: 18px;
  margin: 1.75em 0;
}
.post-body blockquote p,
.md-content blockquote p {
  font-family: var(--ff);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0;
}
.post-body img,
.md-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}
.post-body hr,
.md-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}
.post-body table,
.md-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--fm);
  font-size: 13px;
  margin: 1.5em 0;
}
.post-body table th,
.md-content table th {
  color: var(--lime);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}
.post-body table td,
.md-content table td {
  color: var(--mid);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.post-body table tr:last-child td,
.md-content table tr:last-child td {
  border-bottom: none;
}
.post-body details,
.md-content details {
  border: 1px solid var(--border);
  padding: 12px 16px;
  margin: 1em 0;
}
.post-body details summary,
.md-content details summary {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mid);
  cursor: pointer;
}

/* ── TERMINAL SECTION ── */
.terminal-section {
  padding: 64px 24px;
  border-bottom: 1px solid var(--border);
  background: #050507;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.th-title {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.th-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--lime), var(--perigee), transparent);
  opacity: 0.35;
}

.terminal-body {
  font-family: var(--fm);
  font-size: clamp(11px, 2.5vw, 13px);
  line-height: 2;
}

.t-prompt {
  color: var(--lime);
}

.t-prompt .cmd {
  color: var(--text);
}

.t-prompt .arg {
  color: var(--mid);
}

.t-prompt .str {
  color: var(--helion);
}

.t-out {
  line-height: 1.9;
  margin-bottom: 16px;
}

.t-out .ok {
  color: var(--lime);
}

.t-out .status {
  color: var(--cyan);
}

.t-out .warn {
  color: var(--yellow);
}

.t-out .photo {
  color: var(--meridian);
}

.t-out .dim {
  color: var(--dim);
}

.t-out .info {
  color: var(--perigee);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--lime);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* ── PHOTO SECTION ── */
.photo-section {
  background: #000;
  border-bottom: 1px solid #111;
}

.photo-section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #111;
}

.psn-logo {
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
}

.psn-label {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1.5px solid var(--meridian);
  padding-bottom: 1px;
}

/* ── ABOUT SECTION ── */
.about-section {
  padding: 64px 24px;
  background: var(--atmo);
  border-bottom: 1px solid var(--border);
}

.about-label {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meridian);
  margin-bottom: 16px;
}

.about-h1 {
  font-family: var(--ff);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 500px;
}

.about-body {
  font-family: var(--fb);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 8px;
}

.about-body .hl {
  color: var(--lime);
}

.about-body .il {
  color: var(--helion);
  font-style: italic;
}

.timeline {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 400px;
}

.tl-row {
  display: grid;
  grid-template-columns: 44px 12px 1fr;
  gap: 0 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.tl-row:last-child {
  border-bottom: none;
}

.tl-year {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  justify-self: center;
}

.tl-text {
  font-family: var(--fb);
  font-size: 13px;
  color: var(--mid);
}

.about-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  font-family: var(--fm);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--mid);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.footer-palette {
  display: flex;
  gap: 4px;
}

.fp-dot {
  width: 10px;
  height: 10px;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes spulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
/* ══════════════════════════════════════
   RESPONSIVE OVERRIDES
══════════════════════════════════════ */
@media (min-width: 640px) {
  .hero {
    padding: 80px 48px 100px;
  }
  .section {
    padding: 80px 48px;
  }
  .featured-post {
    padding: 80px 48px;
  }
  .terminal-section {
    padding: 80px 48px;
  }
  .about-section {
    padding: 80px 48px;
  }
  .footer {
    padding: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .status-bar {
    padding: 16px 48px;
    gap: 32px;
  }
  .photo-section-nav {
    padding: 18px 48px;
  }
  .footer-bottom {
    border-top: none;
    padding-top: 0;
  }
  .nav {
    padding: 0 48px;
  }
}
@media (min-width: 960px) {
  .hero {
    padding: 100px 72px 120px;
  }
  .section {
    padding: 96px 72px;
  }
  .featured-post {
    padding: 96px 72px;
  }
  .terminal-section {
    padding: 96px 72px;
  }
  .about-section {
    padding: 96px 72px;
  }
  .nav {
    padding: 0 72px;
  }
  .status-bar {
    padding: 16px 72px;
  }
  .photo-section-nav {
    padding: 20px 72px;
  }
}
/* ══════════════════════════════════════
   PHOTOGRAPHY PAGE
══════════════════════════════════════ */
.page-photography {
  background: #000 !important;
}
.page-photography main {
  padding: 0;
  gap: 0;
}

.photography-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-top: calc(var(--nav-h) + 2rem);
  width: 100%;
  box-sizing: border-box;
}
.photography-page .loading-message,
.photography-page .error-message {
  text-align: center;
  padding: 2rem;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mid);
}
.photography-page .error-message {
  color: var(--meridian);
}

.photo-title {
  font-family: var(--ff);
  font-weight: 600;
  font-size: 36px;
  color: var(--text);
  margin: 0 0 1.5rem 0;
}

.photo-grid {
  position: relative;
  width: 100%;
}

.photo-item {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
}
.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
  pointer-events: none;
}
.photo-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}
.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.photo-item:hover img {
  transform: scale(1.03);
}

.photo-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px;
  border-top: 1px solid #111;
}

.pf-count {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.2s ease both;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mid);
  font-size: 48px;
  cursor: pointer;
  padding: 16px;
  transition: color 0.2s;
  line-height: 1;
  user-select: none;
}
.lightbox-nav:hover {
  color: var(--text);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--mid);
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  line-height: 1;
}
.lightbox-close:hover {
  color: var(--text);
}

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* Photography responsive */
@media (max-width: 1100px) {
  .photography-page {
    padding: 1rem;
    padding-top: calc(var(--nav-h) + 1.5rem);
  }
}
@media (max-width: 700px) {
  .photography-page {
    padding: 0.75rem;
    padding-top: calc(var(--nav-h) + 1rem);
  }
}
@media (max-width: 420px) {
  .photography-page {
    padding: 0.5rem;
    padding-top: calc(var(--nav-h) + 0.75rem);
  }
  .lightbox-nav {
    font-size: 36px;
    padding: 12px;
  }
  .lightbox-prev {
    left: 4px;
  }
  .lightbox-next {
    right: 4px;
  }
}
