/* ============================================
   PALETTE — Designer Resume (Growth Tier)
   Coral + Charcoal / Warm off-white
   Fonts: Bricolage Grotesque (display) + Space Mono (meta)
   ============================================ */

:root {
  --bg: #faf9f7;
  --bg2: #f2efeb;
  --surface: #ffffff;
  --surface2: #f7f5f2;
  --border: #e5e0d8;
  --border2: #d6d0c7;
  --text: #2d2d2d;
  --bright: #1a1a1a;
  --dim: #7a7a72;
  --accent: #f06050;
  --accent2: #e8956a;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(240, 96, 80, 0.2);
  --dark: #1a1a1a;
  --dark2: #252525;
  --dark-surface: #2d2d2d;
  --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, 'Bricolage Grotesque', 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; }

/* ── 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: 60px;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bright);
  letter-spacing: -0.01em;
}

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

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

.nav-link:hover { color: var(--accent); background: rgba(240, 96, 80, 0.06); }

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

.nav-cta:hover { background: var(--dark2); color: var(--accent); }

.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: 60px; left: 0; right: 0;
  z-index: 99;
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(16px);
  padding: 16px clamp(20px, 4vw, 60px);
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}

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

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

.mobile-link:hover { background: rgba(240, 96, 80, 0.07); color: var(--accent); }

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

.hero-wrap {
  position: relative;
  padding: 100px clamp(20px, 5vw, 80px) 60px;
  overflow: hidden;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
}

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

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

.hero-photo-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.photo-frame {
  position: relative;
  width: 260px;
  height: 320px;
  border-radius: 20px;
  overflow: visible;
}

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

.photo-glow {
  position: absolute;
  inset: -12px;
  background: var(--gradient);
  border-radius: 28px;
  opacity: 0.15;
  z-index: 0;
  filter: blur(16px);
  animation: glowPulse 3.5s ease-in-out alternate infinite;
}

@keyframes glowPulse {
  from { opacity: 0.1; }
  to { opacity: 0.2; }
}

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

.btn-cv:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.16);
}

.hero-info { padding-top: 16px; }

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

.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-glow { animation: none; }
  .eyebrow-dot { animation: none; }
}

.eyebrow-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-name {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: var(--bright);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  animation: heroFadeUp 0.7s var(--ease) both;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  animation: heroFadeUp 0.7s 0.1s var(--ease) both;
}

.hero-accent-line {
  width: 56px; height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin-bottom: 18px;
  animation: lineGrow 0.5s 0.25s var(--ease) both;
}

@keyframes lineGrow { from { width: 0; } to { width: 56px; } }

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

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

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: heroFadeUp 0.7s 0.35s var(--ease) both;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--dim);
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

/* ── SHARED SECTION ────────────────────────── */

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

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

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.sec-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  color: var(--accent); /* never faded: large bold text, guarded to 4.5:1 in a stored palette (Weave items 55, 70) */
  font-weight: 700;
}

.sec-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--bright);
  letter-spacing: -0.01em;
}

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

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

.skill-chip {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.skill-group {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2px;
}

.skill-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bright);
  margin-bottom: 10px;
}

.skill-meter {
  height: 6px;
  background: var(--bg2);
  border-radius: 6px;
  overflow: clip;
}

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

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

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

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

.tl-entry { position: relative; margin-bottom: 24px; }
.tl-entry:last-child { margin-bottom: 0; }

.tl-marker {
  position: absolute;
  left: -28px; top: 18px;
  width: 10px; height: 10px;
  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);
}

.tl-entry:hover .tl-marker {
  box-shadow: 0 0 0 5px var(--glow);
  transform: scale(1.2);
}

.tl-card {
  padding: 22px 24px;
  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);
}

.tl-entry:hover .tl-card {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  border-color: var(--accent2);
}

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

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

.tl-dates {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--dim);
}

.tl-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

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

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

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

.edu-card {
  padding: 24px;
  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 8px 28px rgba(26, 26, 26, 0.07);
  border-color: var(--accent2);
}

.edu-school { font-size: 1rem; font-weight: 700; color: var(--bright); margin-bottom: 3px; }
.edu-degree { font-size: 0.88rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }

.edu-dates {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 8px;
}

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

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

.sec-dark { background: var(--dark); color: #e0ddd8; }
.sec-dark .sec-num { color: var(--accent); }
.sec-dark .sec-title { color: #f5f3f0; }

/* ── DESIGN TOOLS ──────────────────────────── */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.tool-card {
  padding: 20px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease), box-shadow 0.25s var(--ease);
}

.tool-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(240, 96, 80, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tool-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f3f0;
  margin-bottom: 2px;
  transition: color 0.2s var(--ease);
}

.tool-card:hover .tool-name { color: var(--accent); }

.tool-cat {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
  margin-bottom: 12px;
}

.tool-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: clip;
}

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

/* ── CASE STUDIES ──────────────────────────── */

.cases-list {
  display: grid;
  gap: 32px;
}

.case-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(26, 26, 26, 0.08);
  border-color: var(--accent2);
}

.case-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

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

.case-card:hover .case-img { transform: scale(1.05); }

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

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

.case-link {
  padding: 8px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(10px);
  transition: transform 0.3s var(--ease);
}

.case-card:hover .case-link { transform: translateY(0); }

.case-body { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.case-title { font-size: 1.2rem; font-weight: 800; color: var(--bright); margin-bottom: 6px; transition: color 0.2s var(--ease); }
.case-card:hover .case-title { color: var(--accent); }
.case-role { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }

.case-tools {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 8px;
}

.case-outcome {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bright);
  padding: 6px 12px;
  background: rgba(240, 96, 80, 0.08);
  border-radius: 8px;
  margin-bottom: 10px;
  display: inline-block;
  align-self: flex-start;
}

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

/* ── PORTFOLIO (accent band) ───────────────── */

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

.sec-accent-band .sec-num { color: #fff; }
.sec-accent-band .sec-title { color: #fff; }

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

.folio-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

.folio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

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

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

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

.folio-hover {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.folio-card:hover .folio-hover { opacity: 1; }

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

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

.folio-info { padding: 18px 20px; }

.folio-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.folio-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 6px;
  transition: color 0.2s var(--ease);
}

.folio-desc { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5; }

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

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

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

.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(26, 26, 26, 0.07);
  border-color: var(--accent2);
}

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

.svc-card:hover .svc-bar { transform: scaleX(1); }

.svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 14px;
}

.svc-title {
  font-size: 1.1rem; font-weight: 700; color: var(--bright);
  margin-bottom: 3px;
  transition: color 0.2s var(--ease);
}

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

.svc-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  margin-bottom: 10px;
}

.svc-content { font-size: 0.88rem; color: var(--text); line-height: 1.6; margin-bottom: 10px; }

.svc-price {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.svc-link {
  font-size: 0.8rem; font-weight: 700;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

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

/* ── TESTIMONIALS ──────────────────────────── */

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

.test-card {
  padding: 24px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), border-color 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

.test-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 96, 80, 0.2);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.test-quote { color: rgba(240, 96, 80, 0.3); margin-bottom: 10px; }

.test-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #d4d0cb;
  margin-bottom: 18px;
}

.test-author { display: flex; align-items: center; gap: 10px; }

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

.test-name { display: block; font-weight: 700; font-size: 0.88rem; color: #f5f3f0; }

.test-role {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.social-wrap {
  text-align: center;
  padding-top: 44px;
  padding-bottom: 44px;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

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

.social-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px var(--glow);
  border-color: var(--accent);
}

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

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

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

.contact-intro {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-meta { display: flex; flex-direction: column; gap: 12px; }

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

.contact-row:hover { color: var(--accent); transform: translateX(4px); }
.contact-row svg { color: var(--accent); flex-shrink: 0; }

.map-link {
  font-size: 0.8rem; font-weight: 700;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

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

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

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.f-input, .f-textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.f-input::placeholder, .f-textarea::placeholder { color: var(--dim); }
.f-input:focus, .f-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.f-textarea { resize: vertical; min-height: 110px; }

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

.f-submit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px var(--glow);
  background: var(--accent2);
}

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

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

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

.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 28px; height: 28px; border-radius: 8px; }
.footer-tagline { font-size: 0.82rem; color: #8a8a82; }

.footer-socials { display: flex; gap: 10px; }

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius, 8px);
  background: var(--wb-tint, rgba(255, 255, 255, 0.05));
  color: var(--text, #8a8a82);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-socials a:hover {
  color: var(--accent);
  background: var(--wb-tint, rgba(240, 96, 80, 0.1));
  transform: translateY(-2px);
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #5a5a52;
}

/* ── REVEAL BASE ───────────────────────────── */
/* Scroll-driven reveal, progressive enhancement only. The resting state is
   FULLY VISIBLE and lives outside every guard — a browser with no scroll
   timeline (or a same-origin preview iframe, where the timeline resolves to
   null) must never strand this content behind a rule-level hidden state.
   The hidden from-state lives ONLY inside @keyframes. Only opacity and
   transform animate — nothing reflows. */
.rv { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }

    /* Stagger is an animation-RANGE shift, never a delay — a wall-clock delay
       on a scroll timeline finishes long before the visitor arrives. Both
       ends stay inside `entry` so every reveal completes once the element
       has entered the viewport. */
    :is(.skills-masonry,.timeline,.edu-row,.tools-grid,.cases-list,.folio-grid,.svc-grid,.test-grid,.social-pills)>.rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.skills-masonry,.timeline,.edu-row,.tools-grid,.cases-list,.folio-grid,.svc-grid,.test-grid,.social-pills)>.rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.skills-masonry,.timeline,.edu-row,.tools-grid,.cases-list,.folio-grid,.svc-grid,.test-grid,.social-pills)>.rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.skills-masonry,.timeline,.edu-row,.tools-grid,.cases-list,.folio-grid,.svc-grid,.test-grid,.social-pills)>.rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.skills-masonry,.timeline,.edu-row,.tools-grid,.cases-list,.folio-grid,.svc-grid,.test-grid,.social-pills)>.rv:nth-child(n+6) { animation-range: entry 40% entry 78%; }

    /* The bar fills along its own axis via scaleX; the author's inline width
       stays the resting target, so the track never reflows while it fills. */
    .skill-fill { animation: rv-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }
    .tool-fill { animation: rv-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }

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

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

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo-col { align-items: center; }
  .photo-frame { width: 220px; height: 270px; }
  .hero-info { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-meta-row { justify-content: center; }
  .hero-summary { margin-left: auto; margin-right: auto; }
  .btn-cv { margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .form-pair { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .case-img-wrap { min-height: 200px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .hero-wrap { padding: 80px 16px 40px; }
  .section-block, .section-inner { padding: 52px 16px; }
  .skills-masonry, .tools-grid, .folio-grid, .svc-grid, .test-grid, .edu-row { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; text-align: center; }
}

/* 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; }

/* Palette roles (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
.sec-dark .sec-num { color: oklch(from var(--accent) max(l, 0.75) c h); }

/* 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-tagline { color: oklch(from rgb(138, 138, 130) 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 {
  --dim: #74746c; /* was #7a7a72 */
}

/* 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. */
.skill-group { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }
.case-role { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }
.svc-price { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }
.svc-link { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }
.tl-role { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }
.edu-degree { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }
.map-link { color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }

/* 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. */
.f-submit { background-color: oklch(from var(--accent) min(l, 0.571) c h / alpha); }

/* 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: #6e6e66; /* was #74746c */
}
