/* ══════════════════════════════════════════════
   DAVID LOROW — Portfolio
   ══════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg:              #0a0b0e;
  --surface:         #0f1117;
  --surface2:        #14181f;
  --surface3:        #1a1f2a;
  --border:          #1a1f2e;
  --border-bright:   #252b3b;

  --accent:          #00e5a0;  /* green  */
  --accent2:         #0090ff;  /* blue   */
  --accent3:         #a78bfa;  /* purple */
  --accent-amber:    #f5a623;

  --text:            #e8eaf0;
  --text-muted:      #6b7599;
  --text-dim:        #3d4460;

  --mono:  'Space Mono', monospace;
  --sans:  'DM Sans', sans-serif;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis owns scrolling */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── GRID BACKGROUND ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
}

/* ─── NOISE GRAIN ─── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ─── SPOTLIGHT ─── */
.spotlight {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(0, 229, 160, 0.025) 0%,
    rgba(0, 144, 255, 0.015) 35%,
    transparent 70%
  );
}


/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  transform: translateY(-100%);
  opacity: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 56px;
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.brand-dot { color: var(--accent); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.2);
  background: rgba(0, 229, 160, 0.04);
}


.nav-progress {
  height: 1px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  position: absolute;
  bottom: -1px;
  left: 0;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px 80px 96px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(14px);
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Title — clip reveal */
.hero-title {
  font-family: var(--mono);
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.07em;
}

.title-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
}

.title-inner em {
  font-style: normal;
  color: var(--accent);
}

/* Hero body */
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.78;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(18px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 5px;
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.5);
  color: var(--accent);
}

.btn-primary:hover {
  background: rgba(0, 229, 160, 0.18);
  border-color: var(--accent);
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(0, 229, 160, 0.18);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  transform: translateY(-3px) !important;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text-muted);
  transform: translateY(-3px) !important;
}

/* Hero decorations */
.hero-meta {
  position: absolute;
  bottom: 52px;
  right: 80px;
  text-align: right;
  z-index: 2;
  opacity: 0;
}

.hero-location,
.hero-year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.9;
}

.hero-scroll {
  position: absolute;
  bottom: 52px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  opacity: 0;
}

.scroll-track {
  width: 1px;
  height: 52px;
  background: var(--border-bright);
  overflow: hidden;
  position: relative;
  border-radius: 1px;
}

.scroll-thumb {
  width: 100%;
  height: 45%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: translateY(-100%); opacity: 1; }
  60%  { transform: translateY(200%);  opacity: 0.4; }
  100% { transform: translateY(200%);  opacity: 0; }
}

.hero-scroll span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ─── SECTION SHARED ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 80px;
}

.section-inner + .section-inner,
.section .section-inner {
  border-top: 1px solid var(--border);
}

#story .section-inner,
#infrastructure .section-inner {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(24px);
}

.section-num {
  font-family: var(--mono);
  font-size: 88px;
  font-weight: 700;
  color: var(--surface3);
  line-height: 1;
  margin-bottom: -24px;
  letter-spacing: -0.05em;
  user-select: none;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ─── STORY ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.82;
  font-weight: 300;
  margin-bottom: 22px;
}

.story-text p strong {
  color: var(--text);
  font-weight: 500;
}

.story-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s var(--ease-out);
}

.story-card:hover {
  border-color: rgba(0, 229, 160, 0.3);
  box-shadow: -3px 0 0 0 var(--accent), 0 8px 32px rgba(0,0,0,0.25);
}

.card-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.68;
  font-weight: 300;
}

/* ─── PROJECTS ─── */
.projects-section {
  padding: 0;
}

.projects-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 80px 56px;
  border-top: 1px solid var(--border);
}

.projects-header .section-title {
  margin-top: 18px;
}

.projects-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.projects-container::-webkit-scrollbar {
  display: none;
}

.projects-track {
  display: flex;
  gap: 16px;
  padding: 8px 80px 24px;
  width: max-content;
}

/* Project card */
.project-card {
  width: 580px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(24px);
}

.project-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    transform 0.35s var(--ease-out);
  transform-style: preserve-3d;
}

.project-card-inner:hover {
  border-color: var(--border-bright);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.project-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid rgba(0, 229, 160, 0.22);
  border-radius: 3px;
  background: rgba(0, 229, 160, 0.06);
}

/* Visual area */
.project-visual {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 220px;
  position: relative;
}

/* iOS visual */
.ios-visual {
  gap: 16px;
  padding: 20px;
}

.phone-mockup {
  width: 136px;
  height: 262px;
  background: var(--bg);
  border: 2px solid var(--border-bright);
  border-radius: 26px;
  padding: 28px 7px 12px;
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  background: var(--border-bright);
  border-radius: 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface3);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-screenshots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ios-screenshots img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  height: 136px;
  object-position: center;
}

/* ML visual */
.ml-visual {
  flex-direction: column;
  align-items: stretch;
  padding: 28px;
  gap: 0;
}

.ml-stats-display {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.ml-stat-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.ml-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ml-stat-val {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 80px;
}

.ml-stat-row:nth-child(2) .ml-stat-val { color: var(--accent2); }
.ml-stat-row:nth-child(3) .ml-stat-val { color: var(--accent3); }

.ml-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ml-math {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent3);
  padding: 12px 0 0;
  opacity: 0.85;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}

/* IT overview visual */
.it-visual {
  align-items: stretch;
  padding: 20px;
}

.it-overview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.it-ov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

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

.it-ov-cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  min-width: 110px;
  flex-shrink: 0;
}

.it-ov-detail {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}

/* Project info */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-title {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
  font-weight: 300;
}

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

.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface2);
}

.project-links {
  display: flex;
  gap: 18px;
  padding-top: 4px;
}

.project-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.project-link.secondary { color: var(--text-dim); }
.project-link.secondary:hover { color: var(--text-muted); }

/* Scroll progress bar */
.h-scroll-bar {
  max-width: 1200px;
  margin: 8px auto 88px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.h-scroll-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  position: relative;
  border-radius: 2px;
  cursor: pointer;
}

.h-scroll-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: left 0.08s linear, width 0.08s linear;
  cursor: grab;
  touch-action: none;
}

.h-scroll-thumb:active,
.h-scroll-thumb.dragging {
  cursor: grabbing;
  transition: none;
}

.h-scroll-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ─── INFRASTRUCTURE ─── */
.section-intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.82;
  max-width: 620px;
  margin-bottom: 52px;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}

.it-tabs-wrapper {
  margin-bottom: 0;
}

.it-tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.it-tab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  outline: none;
  transition: color 0.2s, background 0.2s;
}

.it-tab:hover {
  color: var(--text);
  background: var(--surface2);
}

.it-tab.active {
  color: var(--accent);
  background: var(--surface2);
  border-color: var(--border-bright);
}

.it-panels {
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 0 6px 6px 6px;
  overflow: hidden;
}

.it-panel {
  display: none;
  padding: 36px;
  animation: panelIn 0.28s var(--ease-out);
}

.it-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.panel-icon {
  width: 42px;
  height: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.panel-header-text { flex: 1; }

.panel-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.panel-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.panel-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 229, 160, 0.07);
  border: 1px solid rgba(0, 229, 160, 0.2);
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.skill-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-item:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.skill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.skill-dot.green  { background: var(--accent); }
.skill-dot.blue   { background: var(--accent2); }
.skill-dot.amber  { background: var(--accent-amber); }
.skill-dot.purple { background: var(--accent3); }

.skill-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
}

.skill-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.62;
  font-weight: 300;
}

/* Automation block */
.automation-block {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 28px 32px;
  opacity: 0;
  transform: translateY(20px);
}

.auto-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.automation-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 12px;
  max-width: 700px;
}

.automation-block p strong {
  color: var(--text);
  font-weight: 500;
}

.auto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Top row: CTA left, sig right */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
}

.footer-cta .section-label {
  margin-bottom: 0;
}

.footer-title {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 20px 0 0;
  opacity: 0;
  transform: translateY(24px);
}

.footer-sig {
  text-align: right;
  flex-shrink: 0;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-brand span { color: var(--accent); }

.footer-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-link:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.3);
  background: rgba(0, 229, 160, 0.04);
}

/* ─── CONTACT CARD ─── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 28px 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-detail-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
}

.contact-detail-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 44px;
  flex-shrink: 0;
}

.contact-detail-val {
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  transition: color 0.2s;
}

.contact-detail-row:hover .contact-detail-val {
  color: var(--accent);
}

.tag-link {
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tag-link:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 160, 0.35);
  background: rgba(0, 229, 160, 0.06);
}

/* ─── REVEAL INITIAL STATES ─── */
.reveal-text  { opacity: 0; transform: translateY(20px); }
.reveal-block { opacity: 0; transform: translateY(20px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content    { padding: 110px 56px 80px; }
  .hero-meta,
  .hero-scroll     { display: none; }
  .section-inner   { padding: 88px 56px; }
  .projects-header { padding: 88px 56px 44px; }
  .projects-track  { padding-left: 56px; padding-right: 56px; }
  .h-scroll-bar    { padding: 0 56px; }
  .footer-inner    { padding: 80px 56px; }
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-card { width: 440px; }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-sig {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }


}

@media (max-width: 600px) {
  .nav-inner     { padding: 0 20px; }
  .nav-links,
  .nav-status    { display: none; }

  .hero-content  { padding: 90px 24px 64px; }
  .section-inner { padding: 64px 24px; }
  .section-num   { font-size: 60px; }

  .projects-header { padding: 64px 24px 36px; }
  .projects-track  { padding: 8px 24px 20px; }
  .project-card    { width: 320px; }
  .h-scroll-bar    { padding: 0 24px; margin-bottom: 60px; }

  .it-tabs         { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .it-panel        { padding: 24px; }

  .panel-header    { flex-wrap: wrap; }
  .panel-header-text { min-width: 0; }
  .panel-badge     { margin-left: 0; }
  .skills-grid     { grid-template-columns: 1fr; }

  .footer-inner    { padding: 60px 24px; gap: 40px; }
  .contact-card    { padding: 20px 24px; }

  .contact-detail-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    width: 100%;
  }

  .contact-detail-val {
    word-break: break-all;
  }
}
