/* ============================================
   LEDGER — Accountant Resume (Growth Tier)
   Palette: Navy + Gold / Warm Cream
   Fonts: Inter (body) + DM Serif Display (display) + IBM Plex Mono (meta)
   ============================================ */

:root {
  --bg: #faf8f3;
  --bg2: #f0ece4;
  --surface: #ffffff;
  --surface2: #f6f3ec;
  --border: #e2ddd3;
  --border2: #d4cfc5;
  --text: #1e293b;
  --bright: #0f172a;
  --dim: #64748b;
  --accent: #b8860b;
  --accent2: #d4a853;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(212, 168, 83, 0.25);
  --navy: #0f172a;
  --navy2: #1e293b;
  --navy-surface: #263245;
  --accent-bg: #b8860b;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans, 'Inter', system-ui, sans-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── HEADER / NAV ──────────────────────────── */

.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 64px;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dim);
  padding: 6px 14px;
  border-radius: 8px;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(184, 134, 11, 0.06);
}

.nav-link-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 6px 18px;
  margin-left: 6px;
}

.nav-link-cta:hover {
  background: var(--navy2);
  color: var(--accent2);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bright);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(16px);
  padding: 20px clamp(20px, 4vw, 60px);
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.mobile-link:hover {
  background: rgba(184, 134, 11, 0.08);
  color: var(--accent);
}

/* ── HERO / IDENTITY ───────────────────────── */

.hero-wrap {  /* `clip`, not `hidden`: `hidden` makes this a scroll container, and one
     between the viewport and a `view()`-timeline element kills the timeline —
     the reveal silently never runs. `clip` clips identically. */

  position: relative;
  padding: 100px clamp(20px, 5vw, 80px) 60px;
  overflow: clip;
  background: var(--bg);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-photo-wrap {
  position: relative;
  width: 260px;
  height: 320px;
}

.photo-accent-block {
  position: absolute;
  top: 20px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 16px;
  transform: rotate(-3deg);
  opacity: 0.18;
  z-index: 0;
}

.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.photo-ring {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 56px;
  height: 56px;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent2);
  border-radius: 50%;
  z-index: 2;
  animation: ringSpin 5s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

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

.stat-card {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.hero-right {
  padding-top: 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
}

.eyebrow-divider {
  width: 32px;
  height: 1px;
  background: var(--border2);
}

.eyebrow-chips {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--dim);
}

.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--bright);
  line-height: 1.1;
  margin-bottom: 8px;
  animation: heroFadeUp 0.8s var(--ease) both;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  animation: heroFadeUp 0.8s 0.15s var(--ease) both;
}

.hero-highlight-line {
  width: 64px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin-bottom: 20px;
  animation: heroLineGrow 0.6s 0.3s var(--ease) both;
}

@keyframes heroLineGrow {
  from { width: 0; }
  to { width: 64px; }
}

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

.hero-summary {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
  animation: heroFadeUp 0.8s 0.25s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  animation: heroFadeUp 0.8s 0.35s var(--ease) both;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--dim);
}

.meta-item svg { color: var(--accent); flex-shrink: 0; }

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  animation: heroFadeUp 0.8s 0.45s var(--ease) both;
}

.btn-cv:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  background: var(--navy2);
}

/* ── SECTION BLOCKS (shared) ──────────────── */

.section-block {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 80px);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.section-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--bright);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 80px);
}

/* ── SKILLS ────────────────────────────────── */

.skills-grid {
  display: grid;
  gap: 16px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.skill-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  border-color: var(--accent2);
}

.skill-info {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skill-group {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bright);
}

.skill-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg2);
  border-radius: 8px;
  overflow: clip;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 8px;
  font-size: 0;
  color: transparent;
  transform-origin: left center;
}

/* ── EXPERIENCE / TIMELINE ─────────────────── */

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--border));
  border-radius: 2px;
}

.timeline-entry {
  position: relative;
  margin-bottom: 28px;
}

.timeline-entry:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 20px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  z-index: 1;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.timeline-entry:hover .timeline-dot {
  box-shadow: 0 0 0 6px var(--glow);
  transform: scale(1.2);
}

.timeline-card {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.timeline-entry:hover .timeline-card {
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  border-color: var(--accent2);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bright);
}

.timeline-dates {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--dim);
}

.timeline-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── EDUCATION ─────────────────────────────── */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.edu-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.edu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-color: var(--accent2);
}

.edu-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 134, 11, 0.08);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 16px;
}

.edu-school {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.edu-dates {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--dim);
  display: block;
  margin-bottom: 10px;
}

.edu-content {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── DARK SECTIONS ─────────────────────────── */

.section-dark {
  background: var(--navy);
  color: #e2e8f0;
  position: relative;
}

.section-dark .section-num { color: var(--accent2); opacity: 0.6; }
.section-dark .section-title { color: #f1f5f9; }

/* ── PORTFOLIO ─────────────────────────────── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  border-color: rgba(212, 168, 83, 0.2);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-action {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(12px);
  transition: transform 0.3s var(--ease);
}

.portfolio-card:hover .portfolio-action { transform: translateY(0); }

.portfolio-info {
  padding: 20px 24px;
}

.portfolio-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
}

.portfolio-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 6px 0 8px;
  transition: color 0.25s var(--ease);
}

.portfolio-card:hover .portfolio-title { color: var(--accent2); }

.portfolio-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.diagonal-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── SERVICES ──────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border-color: var(--accent2);
}

.service-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-accent-bar {
  transform: scaleY(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 4px;
  transition: color 0.25s var(--ease);
}

.service-card:hover .service-title { color: var(--accent); }

.service-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 12px;
}

.service-content {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-price {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.service-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.service-link:hover { color: var(--accent2); }

/* ── TESTIMONIALS (accent band) ────────────── */

.section-accent-band {
  background: var(--accent-bg);
  color: #fff;
  position: relative;
}

.section-accent-band .section-num { color: rgba(255, 255, 255, 0.4); }
.section-accent-band .section-title { color: #fff; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  background: var(--wb-tint, rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius, 16px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--border, rgba(255, 255, 255, 0.35));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.quote-icon {
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.testimonial-role {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── SOCIAL ────────────────────────────────── */

.social-inner {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.social-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px var(--glow);
  border-color: var(--accent2);
  background: rgba(184, 134, 11, 0.06);
}

.social-pill svg { color: var(--accent); }

/* ── CONTACT ───────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-intro {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #e2e8f0;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-row:hover {
  color: var(--accent2);
  transform: translateX(4px);
}

.contact-row svg { color: var(--accent2); flex-shrink: 0; }

.contact-map-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2);
  transition: color 0.2s var(--ease);
}

.contact-map-link:hover { color: #fff; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #64748b;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit {
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.form-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
  background: var(--accent2);
}

/* ── FOOTER ────────────────────────────────── */

footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius, 8px);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a:hover {
  color: var(--accent2);
  background: rgba(212, 168, 83, 0.12);
  transform: translateY(-2px);
}

.footer-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
}

/* ── REVEAL ANIMATION BASE (CSS scroll-driven, GSAP replacement) ───────
   Resting state is fully visible at rule level; the hidden from-state
   lives ONLY inside @rv-in's keyframes, gated behind @supports + the
   no-preference media query so a non-supporting browser (or a
   same-origin preview iframe, where the timeline resolves to null)
   never strands content behind an opacity:0 rule with nothing left to
   reveal it. Only opacity/transform animate: nothing reflows. */
.rv { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rv-in .7s var(--ease, ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }

    /* Stagger by shifting animation-range, never animation-delay — a
       wall-clock delay on a scroll timeline finishes long before the
       element is on screen. Both ends stay inside `entry`. */
    :is(.hero-stats,.skills-grid,.timeline,.edu-grid,.portfolio-grid,.services-grid,.testimonials-grid,.social-row)>.rv:nth-child(2){animation-range:entry 6% entry 91%}
    :is(.hero-stats,.skills-grid,.timeline,.edu-grid,.portfolio-grid,.services-grid,.testimonials-grid,.social-row)>.rv:nth-child(3){animation-range:entry 12% entry 97%}
    :is(.hero-stats,.skills-grid,.timeline,.edu-grid,.portfolio-grid,.services-grid,.testimonials-grid,.social-row)>.rv:nth-child(n+4){animation-range:entry 18% entry 100%}

    @keyframes rv-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; } }

    /* Skill bar fills grow along their own axis; the author's inline
       width stays the resting width, so the track never reflows. */
    .skill-bar-fill {
      animation: sk-fill-in .9s var(--ease, ease) both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }
    @keyframes sk-fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Reduced motion: neutralize any remaining time-based hero entrance
   instantly, never leaving it mid-flight or skipped. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-left {
    align-items: center;
  }

  .hero-photo-wrap {
    width: 200px;
    height: 250px;
  }

  .hero-right {
    padding-top: 0;
    text-align: center;
  }

  .hero-eyebrow { justify-content: center; flex-wrap: wrap; }
  .hero-meta { justify-content: center; }
  .hero-summary { margin-left: auto; margin-right: auto; }
  .btn-cv { margin: 0 auto; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  .hero-wrap { padding: 80px 16px 40px; }

  .section-block, .section-inner {
    padding: 56px 16px;
  }

  .hero-stats { flex-direction: column; }
  .stat-card { flex: none; }

  .portfolio-grid, .services-grid, .testimonials-grid, .edu-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .skill-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-info { min-width: auto; }
  .skill-bar-track { width: 100%; }
}

/* Hide wire:loading elements before Livewire mounts (mirrors Livewire's runtime CSS) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.footer-copy { color: oklch(from rgb(100, 116, 139) calc(l + 0.07) c h / calc(min(1, alpha + 0.21))); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --accent: #986800; /* was #b8860b */
}

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --accent: #3a0e00; /* was #986800 */
}

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --dim: #5e6e85; /* was #64748b */
}
