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

/* ── DARK THEME (default) ── */
:root,
[data-theme="dark"] {
  --bg: #0a0a08;
  --bg2: #111110;
  --bg3: #181816;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f0efe9;
  --muted: #9a9a92;
  --subtle: #5a5a54;
  --accent: #b8f0c8;
  --accent2: #4ade80;
  --accent3: #22c55e;
  --gold: #e8d5a3;
  --radius: 14px;
  --radius-sm: 8px;
  --pill: 100px;
  --side: 5rem;
  --nav-bg: rgba(10, 10, 8, 0.75);
  --vc-bg: rgba(255, 255, 255, 0.04);
  --vc-border: rgba(255, 255, 255, 0.12);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg: #f7f7f4;
  --bg2: #ffffff;
  --bg3: #eeeee9;
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.15);
  --text: #111110;
  --muted: #555550;
  --subtle: #999990;
  --accent: #16a34a;
  --accent2: #15803d;
  --accent3: #166534;
  --gold: #92400e;
  --nav-bg: rgba(247, 247, 244, 0.82);
  --vc-bg: rgba(0, 0, 0, 0.03);
  --vc-border: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(22, 163, 74, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(22, 163, 74, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 80%, rgba(22, 163, 74, 0.05) 0%, transparent 50%),
    var(--bg);
}

[data-theme="light"] .visual-dots {
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
}
[data-theme="light"] .visual-card {
  background: var(--vc-bg);
  border-color: var(--vc-border);
}
[data-theme="light"] .glow-green {
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), transparent 65%);
}
[data-theme="light"] .glow-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 65%);
}
[data-theme="light"] .otw-card {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, rgba(247, 247, 244, 0) 60%);
  border-color: rgba(22, 163, 74, 0.25);
}
[data-theme="light"] .otw-badge,
[data-theme="light"] .otw-chip {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
}
[data-theme="light"] .connect-card::after {
  background: var(--accent2);
}
[data-theme="light"] .project-card:hover {
  border-color: rgba(22, 163, 74, 0.3);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12), 0 20px 60px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .hero h1 .outline {
  -webkit-text-stroke: 1px rgba(17, 17, 16, 0.2);
}
[data-theme="light"] .status-live {
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent2);
  border-color: rgba(22, 163, 74, 0.25);
}
[data-theme="light"] .project-icon.green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--accent2);
  border-color: rgba(22, 163, 74, 0.2);
}
[data-theme="light"] .tag.hl {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--accent2);
}
[data-theme="light"] .skill-card .tag.hl {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--accent2);
}
[data-theme="light"] body::before {
  opacity: 0.015;
}
[data-theme="light"] .nav-cta {
  background: var(--accent2);
  color: #fff;
}
[data-theme="light"] .nav-cta:hover {
  background: var(--accent3);
}
[data-theme="light"] .btn-fill {
  background: var(--accent2);
  color: #fff;
}
[data-theme="light"] .btn-fill:hover {
  background: var(--accent3);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
}
[data-theme="light"] .hero-eyebrow {
  color: var(--accent2);
}
[data-theme="light"] .hero-eyebrow::before {
  background: var(--accent2);
}
[data-theme="light"] .s-label {
  color: var(--accent2);
}
[data-theme="light"] .about-card-val.open {
  color: var(--accent2);
}
[data-theme="light"] .project-role {
  color: var(--accent2);
}
[data-theme="light"] .project-bullets li::before {
  color: var(--accent2);
}
[data-theme="light"] .project-link {
  color: var(--muted);
}
[data-theme="light"] .vc-val {
  color: var(--text);
}
[data-theme="light"] .vc-bar.g {
  background: linear-gradient(to right, rgba(22, 163, 74, 0.5), rgba(22, 163, 74, 0.2));
}
[data-theme="light"] .vc-bar.b {
  background: linear-gradient(to right, rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.2));
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--muted);
  background: rgba(128, 128, 128, 0.08);
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ── BASE ── */
body {
  font-family: "Geist", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--side);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  font-family: "Fraunces", serif;
  font-size: 25px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span {
  color: var(--accent2);
  font-style: normal;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a08;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: var(--pill);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--side) 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(74, 222, 128, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184, 240, 200, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    var(--bg);
  transition: background 0.3s;
}

/* Two-column inner wrapper */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-content {
  min-width: 0;
}
/* Animated architecture diagram */
.hero-diagram {
  width: 100%;
  min-width: 0;
  opacity: 0;
  animation: fade-in 1s 0.5s ease forwards;
  filter: drop-shadow(0 0 48px rgba(74, 222, 128, 0.07));
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.7s 0.1s ease forwards;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent2);
  display: inline-block;
}
.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.8s 0.2s ease forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent2);
}
.hero h1 .outline {
  -webkit-text-stroke: 1px rgba(240, 239, 233, 0.3);
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.8s 0.3s ease forwards;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s 0.4s ease forwards;
}
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #0a0a08;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.btn-fill:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.25);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--pill);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border2);
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(128, 128, 128, 0.06);
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--side);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-in 1s 1s ease forwards;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--subtle));
  animation: scroll-drop 2s 1.5s ease-in-out infinite;
}
.scroll-label {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}
@keyframes scroll-drop {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ── STAT STRIP ── */
.stat-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transition: background 0.3s;
}
.stat-item {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--border);
}
.stat-item:first-child { padding-left: var(--side); }
.stat-item:last-child  { border-right: none; padding-right: var(--side); }
.stat-num {
  font-family: "Fraunces", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.stat-num span { color: var(--accent2); }
.stat-desc {
  font-size: 12px;
  color: var(--subtle);
  font-family: "Geist Mono", monospace;
}

/* ── LAYOUT WRAPPER ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ── SECTION ANATOMY ── */
.s-label {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-label::before {
  content: "//";
  opacity: 0.5;
}
.s-title {
  font-family: "Fraunces", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}
.s-title em {
  font-style: italic;
  color: var(--accent2);
}

/* ── ABOUT ── */
.about-section { padding: 6rem 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-top: 2rem;
}
.about-text strong {
  color: var(--text);
  font-weight: 500;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, background 0.3s;
}
.about-card:hover { border-color: var(--border2); }
.about-card-lbl {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.about-card-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.about-card-val.open { color: var(--accent2); }
.about-card.wide { grid-column: 1 / -1; }

/* ── PROJECTS ── */
.projects-section { padding: 2rem 0 4rem; }
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.projects-header a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.projects-header a:hover { color: var(--accent2); }

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  position: relative;
}
.project-card:hover {
  border-color: rgba(74, 222, 128, 0.25);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.1), 0 20px 60px rgba(0, 0, 0, 0.4);
}
.project-card:hover .project-visual { opacity: 1; }
.project-card:hover .project-arrow  { transform: translate(3px, -3px); }

.project-body {
  padding: 2.5rem 2.8rem;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 500;
}
.project-icon.green {
  background: rgba(74, 222, 128, 0.12);
  color: var(--accent2);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.project-icon.blue {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.project-status {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--pill);
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-live {
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.status-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.status-done {
  background: rgba(148, 163, 184, 0.08);
  color: var(--subtle);
  border: 1px solid var(--border);
}
.project-name {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.project-role {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--accent2);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.project-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex: 1;
}
.project-bullets { list-style: none; margin-bottom: 1.5rem; }
.project-bullets li {
  font-size: 15px;
  color: var(--muted);
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.project-bullets li::before {
  content: "↳";
  color: var(--accent2);
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 3px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.tag {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--subtle);
}
.tag.hl {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.2);
  color: var(--accent2);
}
.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.project-arrow { transition: transform 0.2s; }

.project-visual {
  background: var(--bg3);
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.visual-glow {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: absolute;
}
.glow-green {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15), transparent 65%);
}
.glow-blue {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 65%);
}
.visual-card {
  background: var(--vc-bg);
  border: 1px solid var(--vc-border);
  border-radius: 14px;
  padding: 20px;
  width: 200px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s;
}
.visual-card + .visual-card { margin-top: 12px; }
.vc-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--subtle);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.vc-bar {
  height: 5px;
  border-radius: 3px;
  margin-bottom: 5px;
}
.vc-bar.g {
  background: linear-gradient(to right, rgba(74, 222, 128, 0.5), rgba(74, 222, 128, 0.2));
}
.vc-bar.b {
  background: linear-gradient(to right, rgba(96, 165, 250, 0.5), rgba(96, 165, 250, 0.2));
}
.vc-val {
  font-size: 18px;
  font-family: "Fraunces", serif;
  color: var(--text);
}
.vc-sub {
  font-size: 10px;
  color: var(--subtle);
  margin-top: 2px;
}
.visual-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ── SKILLS ── */
.skills-section { padding: 2rem 0 4rem; }
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 5rem;
  align-items: start;
  margin-top: 3rem;
}
.skills-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.25s, transform 0.25s, background 0.3s;
}
.skill-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.sk-label {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sk-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── OPEN TO WORK ── */
.otw-section { padding: 2rem 0 4rem; }
.otw-card {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06) 0%, rgba(10, 10, 8, 0) 60%);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
  padding: 3.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.otw-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08), transparent 65%);
}
.otw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--accent2);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 14px;
  border-radius: var(--pill);
  margin-bottom: 1.2rem;
}
.otw-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse-dot 2s infinite;
}
.otw-title {
  font-family: "Fraunces", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.otw-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 1.5rem;
}
.otw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.otw-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--pill);
  background: rgba(74, 222, 128, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(74, 222, 128, 0.2);
  font-family: "Geist Mono", monospace;
}
.otw-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── CONNECT ── */
.connect-section { padding: 2rem 0 4rem; }
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 3rem;
}
.connect-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s, background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.connect-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.connect-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.connect-card:hover::after { transform: scaleX(1); }
.cc-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.cc-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.cc-lbl {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cc-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.cc-arrow {
  font-size: 13px;
  color: var(--subtle);
  margin-top: auto;
  transition: transform 0.2s, color 0.2s;
  line-height: 1;
}
.cc-arrow svg { display: block; }
.connect-card:hover .cc-arrow { transform: translate(3px, -3px); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s;
}
.footer-name {
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-style: italic;
  color: var(--subtle);
}
.footer-copy {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--subtle);
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --side: 3rem; }
}
@media (max-width: 768px) {
  :root { --side: 1.5rem; }

  .nav-links { display: none; }

  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 4rem;
    justify-content: flex-start;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 60px);
    margin-bottom: 1.25rem;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 2rem;
  }
  .hero-eyebrow { margin-bottom: 1.25rem; }
  .hero-diagram {
    /* Cap height on mobile so it doesn't dominate */
    max-height: 320px;
    overflow: hidden;
  }
  .hero-scroll { display: none; }

  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-item:first-child { padding-left: var(--side); }
  .stat-item:last-child  { padding-right: var(--side); }
  .stat-item:nth-child(2) { border-right: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-cards { grid-template-columns: 1fr 1fr; }

  .project-card { grid-template-columns: 1fr; }
  .project-visual { display: none; }
  .project-body { padding: 1.75rem; }

  .skills-layout { grid-template-columns: 1fr; gap: 2rem; }
  .skills-grid { grid-template-columns: 1fr; }

  .otw-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
  }
  .otw-title { font-size: 28px; }

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

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}