/* ============================================================
   AARON JARVIS — Portfolio
   style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:ital,wght@0,300;0,400;0,600;0,700;1,300;1,600&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #0d0d0d;
  --surface:   #141414;
  --border:    #222222;
  --muted:     #555;
  --text:      #e8e4dc;
  --text-soft: #999;
  --accent:    #c8f03e;   /* sharp lime */
  --accent2:   #f0e6c8;  /* warm cream */

  --font-body:    'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;

  --nav-h:   72px;
  --max-w:   1160px;
  --radius:  4px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Light mode ─────────────────────────────────────────── */
/* light-early is set on <html> instantly to prevent flash */
html.light-early body,
body.light {
  --bg:        #f5f3ef;
  --surface:   #ffffff;
  --border:    #e2ddd6;
  --muted:     #aaa;
  --text:      #141414;
  --text-soft: #666;
  --accent:    #7ab800;   /* darker lime for light bg legibility */
  --accent2:   #5a4000;
}
body.light::before { opacity: 0.012; }
body.light nav { background: rgba(245,243,239,0.88); }
body.light .btn-primary { background: #7ab800; color: #fff; }
body.light .btn-primary:hover { background: #6aa300; box-shadow: 0 8px 24px rgba(122,184,0,0.2); }
body.light .hero-card { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
body.light .blog-card,
body.light .portfolio-item,
body.light .yt-card { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }

/* ── Theme transition ───────────────────────────────────── */
body, body * {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ── Theme toggle button ────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--text-soft);
  color: var(--text);
  background: rgba(128,128,128,0.08);
}

/* ── Scroll animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.reveal-left {
  transform: translateX(-28px);
}
.reveal.reveal-scale {
  transform: scale(0.93) translateY(12px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* stagger children inside a .stagger-parent */
.stagger-parent .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-parent .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-parent .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-parent .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-parent .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-parent .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Grain overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo img {
  height: 20px; /* adjust based on your header */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── LAYOUT WRAPPER ──────────────────────────────────────── */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

main {
  padding-top: var(--nav-h);
}

/* ── SECTION PRIMITIVES ──────────────────────────────────── */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 520px;
  line-height: 1.75;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent2);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
}
.btn-primary:hover {
  background: #d8ff4e;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,240,62,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-soft);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

/* ── HERO RIGHT SIDE CARD ────────────────────────────────── */
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  filter: blur(40px);
}
.hero-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.hero-card-stat {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-desc {
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
  max-width: 160px;
  line-height: 1.4;
}

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-item .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CARDS GRID ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 48px;
  background: var(--border);
}
.card {
  background: var(--surface);
  padding: 36px;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,240,62,0.03), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  background: #171717;
}
.card:hover::after {
  opacity: 1;
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(200,240,62,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ── PORTFOLIO ITEMS ─────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.portfolio-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
}
.portfolio-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a1a, #222);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,240,62,0.05), transparent);
}
.portfolio-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.portfolio-info {
  padding: 24px;
}
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(200,240,62,0.1);
  color: var(--accent);
  border: 1px solid rgba(200,240,62,0.2);
}
.portfolio-item-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.portfolio-item-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── YOUTUBE ─────────────────────────────────────────────── */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.yt-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.yt-card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
}
.yt-thumb {
  aspect-ratio: 16/9;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.yt-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #0d0d0d;
  font-size: 18px;
  z-index: 1;
  transition: transform 0.2s;
}
.yt-card:hover .yt-play { transform: scale(1.1); }
.yt-info { padding: 20px; }
.yt-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.4;
}
.yt-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ── ABOUT PAGE ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
.about-photo {
  aspect-ratio: 3/4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(13,13,13,0.4));
}
.about-body p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-body p:first-child {
  font-size: 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.skill-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.2s;
}
.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(200,240,62,0.05);
}

/* ── PROJECTS PAGE ───────────────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
  margin-top: 48px;
}
.project-row {
  background: var(--surface);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.2s;
  cursor: pointer;
}
.project-row:hover { background: #171717; }
.project-row-left { flex: 1; }
.project-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.project-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.project-desc {
  font-size: 13px;
  color: var(--text-soft);
}
.project-tags {
  display: flex;
  gap: 6px;
}
.project-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  transition: all 0.2s;
  flex-shrink: 0;
}
.project-row:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(24px, 5vw, 64px);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── PAGE HEADER (inner pages) ───────────────────────────── */
.page-header {
  padding: clamp(80px, 10vw, 120px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 16px;
}
.page-header-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent2);
}
.page-header-sub {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 480px;
  line-height: 1.75;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.7s var(--ease) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.22s; }
.fade-in:nth-child(3) { animation-delay: 0.34s; }
.fade-in:nth-child(4) { animation-delay: 0.46s; }
.fade-in:nth-child(5) { animation-delay: 0.58s; }

/* ── CONTACT FORM ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
.contact-info-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.contact-info-body {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-detail-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: rgba(200,240,62,0.1);
  border: 1px solid rgba(200,240,62,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.contact-detail-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}
.contact-detail-text strong {
  display: block;
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 2px;
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,240,62,0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.form-group select option {
  background: var(--surface);
  color: var(--text);
}
.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  justify-content: center;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(200,240,62,0.1);
  border: 1px solid rgba(200,240,62,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 20px;
}
.form-success-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.form-success-body {
  font-size: 14px;
  color: var(--text-soft);
}

/* ── BLOG ────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--muted);
}
.blog-card-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #181818, #1f1f1f);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,240,62,0.04), transparent 60%);
}
.blog-card-cover-emoji {
  font-size: 36px;
  z-index: 1;
}
.blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.blog-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,240,62,0.1);
  border: 1px solid rgba(200,240,62,0.2);
  padding: 3px 10px;
  border-radius: 2px;
}
.blog-date {
  font-size: 12px;
  color: var(--muted);
}
.blog-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--accent2); }
.blog-excerpt {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s;
  margin-top: auto;
}
.blog-card:hover .blog-read-more { gap: 10px; }

/* Featured blog post */
.blog-featured {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 48px;
  transition: border-color 0.3s;
}
.blog-featured:hover { border-color: var(--muted); }
.blog-featured-cover {
  aspect-ratio: unset;
  background: linear-gradient(135deg, #181818, #202020);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--border);
  font-size: 64px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.blog-featured-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(200,240,62,0.06), transparent 60%);
}
.blog-featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.blog-featured-label::before {
  content: '★';
  font-size: 10px;
}
.blog-featured-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.blog-featured-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Blog post page */
.post-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.post-header {
  padding: clamp(60px, 8vw, 100px) 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.post-intro {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.8;
  font-weight: 300;
}
.post-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 16px;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}
.post-body p { margin-bottom: 24px; }
.post-body ul {
  list-style: none;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-body ul li::before {
  content: '→';
  color: var(--accent);
  margin-right: 10px;
  font-weight: 600;
}
.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
}
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner   { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual  { display: none; }
  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .about-photo  { aspect-ratio: 4/3; }
  .project-row  { flex-wrap: wrap; }
  .project-tags { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-cover { min-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}
