/* ============================================
   ATELIER — Designer Resume (Growth Tier)
   Sage Green + Charcoal / Warm white
   Fonts: Outfit (display+body) + Fira Code (meta)
   Structure: Sticky sidebar nav on desktop
   ============================================ */

:root {
  --bg: #f8f7f4;
  --bg2: #efede8;
  --surface: #ffffff;
  --surface2: #f4f2ed;
  --border: #e0dbd2;
  --border2: #d2ccc2;
  --text: #2c2c2c;
  --bright: #1b1b1b;
  --dim: #7a7770;
  --accent: #5a8a68;
  --accent2: #7eb88c;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(90, 138, 104, 0.18);
  --dark: #1b1b1b;
  --dark2: #242424;
  --dark-s: #2e2e2e;
  --sb-w: 220px;
  --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, 'Outfit', 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; }

/* ── SIDEBAR NAV ───────────────────────────── */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sb-w);
  background: var(--dark);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  z-index: 100;
  overflow-y: auto;
}

.sb-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.sb-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.sb-name { font-weight: 700; font-size: 0.95rem; color: #f0efe8; letter-spacing: -0.01em; }

.sb-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

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

.sb-link:hover, .sb-link.sb-active {
  color: var(--accent2);
  background: rgba(126, 184, 140, 0.08);
}

.sb-footer { margin-top: auto; padding-top: 20px; }

.sb-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sb-dot {
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── MOBILE NAV ────────────────────────────── */

.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(248, 247, 244, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mb-brand { display: flex; align-items: center; gap: 8px; }
.mb-logo { width: 28px; height: 28px; border-radius: 8px; }
.mb-name { font-weight: 700; font-size: 0.9rem; color: var(--bright); }

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

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

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

.mobile-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 99;
  background: rgba(248, 247, 244, 0.97);
  backdrop-filter: blur(14px);
  padding: 12px 16px;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border);
}

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

.md-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.md-link:hover { background: rgba(90, 138, 104, 0.07); color: var(--accent); }

/* ── MAIN CONTENT ──────────────────────────── */

.main {
  margin-left: var(--sb-w);
  min-height: 100vh;
}

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

.hero {
  position: relative;
  padding: 48px clamp(24px, 4vw, 56px);
  overflow: hidden;
}

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

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.hero-photo-card { padding: 0; }

.hero-img {
  width: 100%; height: 360px;
  object-fit: cover;
  border-radius: 18px;
}

.hero-info-card { padding: 32px; }

.chip-row { margin-bottom: 12px; }

.chip {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip-accent {
  color: var(--accent);
  background: rgba(90, 138, 104, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
}

.hero-name {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--bright);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  animation: fadeUp 0.7s var(--ease) both;
}

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

.hero-rule {
  width: 48px; height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin-bottom: 14px;
  animation: ruleGrow 0.5s 0.2s var(--ease) both;
}

@keyframes ruleGrow { from { width: 0; } to { width: 48px; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
  animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.3s var(--ease) both;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: fadeUp 0.7s 0.4s var(--ease) both;
}

.btn-dl:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(27, 27, 27, 0.14);
}

/* ── SEGMENTS (shared) ─────────────────────── */

.seg {
  padding: 64px clamp(24px, 4vw, 56px);
}

.seg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.seg-idx {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.45;
  font-weight: 600;
}

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

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

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

.skill-pill {
  padding: 14px 18px;
  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-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 27, 27, 0.05);
  border-color: var(--accent2);
}

.sp-group {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1px;
}

.sp-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bright);
  margin-bottom: 8px;
}

.sp-track {
  height: 5px;
  background: var(--bg2);
  border-radius: 5px;
  overflow: clip;
}

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

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

.xp-list { position: relative; }

.xp-row {
  position: relative;
  padding-left: 32px;
  margin-bottom: 22px;
}

.xp-row:last-child { margin-bottom: 0; }

.xp-line {
  position: absolute;
  left: 7px; top: 0; bottom: -22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--border));
}

.xp-row:last-child .xp-line { bottom: 0; }

.xp-dot {
  position: absolute;
  left: 2px; top: 16px;
  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);
}

.xp-row:hover .xp-dot {
  box-shadow: 0 0 0 5px var(--glow);
  transform: scale(1.15);
}

.xp-body {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.xp-row:hover .xp-body {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(27, 27, 27, 0.05);
  border-color: var(--accent2);
}

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

.xp-co { font-size: 1rem; font-weight: 700; color: var(--bright); }

.xp-dates {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--dim);
}

.xp-role { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.xp-desc { font-size: 0.85rem; color: var(--text); line-height: 1.6; }

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

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

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

.edu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 27, 27, 0.06);
  border-color: var(--accent2);
}

.edu-school { font-size: 0.95rem; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.edu-deg { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 3px; }

.edu-dates {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--dim);
  margin-bottom: 6px;
}

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

/* ── TINTED SECTION ────────────────────────── */

.sec-tinted { background: var(--bg2); }

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

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

.tool-tile {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease), box-shadow 0.25s var(--ease);
}

.tool-tile:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--accent2);
  box-shadow: 0 6px 20px rgba(27, 27, 27, 0.06);
}

.tool-letter-icon {
  width: 40px; height: 40px;
  margin: 0 auto 10px;
  background: rgba(90, 138, 104, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

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

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

.tool-cat {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 10px;
}

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

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

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

.case-bento { display: grid; gap: 24px; }

.case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  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:nth-child(even) { direction: rtl; }
.case-card:nth-child(even) > * { direction: ltr; }

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(27, 27, 27, 0.07);
  border-color: var(--accent2);
}

.case-visual { position: relative; overflow: hidden; min-height: 240px; }

.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-img-hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 27, 27, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 18px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

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

.case-view {
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease);
}

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

.case-info { padding: 28px; display: flex; flex-direction: column; justify-content: center; }

.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.case-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 3px 10px;
  border: 1px solid rgba(90, 138, 104, 0.2);
  border-radius: 6px;
}

.case-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bright);
  margin-bottom: 8px;
  transition: color 0.2s var(--ease);
}

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

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

.case-result {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(90, 138, 104, 0.06);
  border-radius: 8px;
  align-self: flex-start;
}

.case-result-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

.case-result-val { font-size: 0.82rem; font-weight: 700; color: var(--accent); }

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

.sec-dark { background: var(--dark); color: #ddd8d0; }
.sec-dark .seg-idx { color: var(--accent2); opacity: 0.5; }
.sec-dark .seg-title { color: #f0efe8; }

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

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

.folio-piece {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.folio-piece:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  border-color: rgba(126, 184, 140, 0.2);
}

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

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

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

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

.folio-piece:hover .folio-overlay { opacity: 1; }

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

.folio-piece:hover .folio-btn { transform: translateY(0); }

.folio-caption { padding: 16px 20px; }

.folio-cat {
  font-family: 'Fira Code', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
}

.folio-title {
  font-size: 1rem; font-weight: 700; color: #f0efe8;
  margin: 3px 0 5px;
  transition: color 0.2s var(--ease);
}

.folio-piece:hover .folio-title { color: var(--accent2); }

.folio-desc { font-size: 0.8rem; color: #9a9890; line-height: 1.5; }

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

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

.svc-card {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  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 28px rgba(27, 27, 27, 0.06);
  border-color: var(--accent2);
}

.svc-stripe {
  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-stripe { transform: scaleX(1); }

.svc-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 12px;
}

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

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

.svc-sub {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: var(--dim);
  margin-bottom: 8px;
}

.svc-body { font-size: 0.85rem; color: var(--text); line-height: 1.6; margin-bottom: 8px; }
.svc-price { display: block; font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }

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

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

/* ── TESTIMONIALS (accent section) ─────────── */

.sec-accent { background: var(--accent); color: #fff; }
.sec-accent .seg-idx { color: rgba(255, 255, 255, 0.3); }
.sec-accent .seg-title { color: #fff; }

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

.rev-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rev-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.rev-q { color: rgba(255, 255, 255, 0.2); margin-bottom: 8px; }
.rev-text { font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.9); margin-bottom: 16px; }

.rev-who { display: flex; align-items: center; gap: 10px; }

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

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

.rev-role {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
}

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

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

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

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

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

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

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

.ct-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.ct-intro { font-size: 1rem; color: #c5c0b8; line-height: 1.7; margin-bottom: 20px; }

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

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

.ct-map {
  font-size: 0.78rem; font-weight: 700; color: var(--accent2);
  transition: color 0.2s var(--ease);
}

.ct-map:hover { color: #fff; }

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

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

.ct-input, .ct-ta {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: #e0ddd8;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ct-input::placeholder, .ct-ta::placeholder { color: #6a6a62; }
.ct-input:focus, .ct-ta:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.ct-ta { resize: vertical; min-height: 100px; }

.ct-btn {
  align-self: flex-start;
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.ct-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--glow);
  background: var(--accent2);
}

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

footer {
  margin-left: var(--sb-w);
  background: var(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ft-bar {
  padding: 32px clamp(24px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.ft-left { display: flex; align-items: center; gap: 10px; }
.ft-logo { width: 24px; height: 24px; border-radius: 6px; }
.ft-tag { font-size: 0.8rem; color: #7a7770; }

.ft-icons { display: flex; gap: 8px; }

.ft-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius, 8px);
  background: var(--wb-tint, rgba(255, 255, 255, 0.04));
  color: var(--text, #7a7770);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ft-icons a:hover {
  color: var(--accent2);
  background: var(--wb-tint, rgba(126, 184, 140, 0.1));
  transform: translateY(-2px);
}

.ft-copy {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  color: #5a5a52;
}

/* ── REVEAL ────────────────────────────────── */
/* 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(.skill-pills,.xp-list,.edu-cards,.tool-grid,.case-bento,.folio-mosaic,.svc-row,.rev-grid,.soc-pills)>.rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.skill-pills,.xp-list,.edu-cards,.tool-grid,.case-bento,.folio-mosaic,.svc-row,.rev-grid,.soc-pills)>.rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.skill-pills,.xp-list,.edu-cards,.tool-grid,.case-bento,.folio-mosaic,.svc-row,.rev-grid,.soc-pills)>.rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.skill-pills,.xp-list,.edu-cards,.tool-grid,.case-bento,.folio-mosaic,.svc-row,.rev-grid,.soc-pills)>.rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.skill-pills,.xp-list,.edu-cards,.tool-grid,.case-bento,.folio-mosaic,.svc-row,.rev-grid,.soc-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. */
    .sp-bar { 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(22px) scale(0.96); } to { opacity: 1; } }
    @keyframes rv-fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-dot,
  .hero-name, .hero-title, .hero-rule, .hero-bio, .hero-meta, .btn-dl {
    animation: none;
  }
}

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

@media (max-width: 960px) {
  .sidebar { display: none; }
  .mobile-bar { display: flex; }
  .main { margin-left: 0; }
  footer { margin-left: 0; }

  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-img { height: 260px; }
  .hero-info-card { text-align: center; }
  .hero-meta { justify-content: center; }
  .btn-dl { margin: 0 auto; }
  .chip-row { text-align: center; }

  .case-card { grid-template-columns: 1fr; }
  .case-card:nth-child(even) { direction: ltr; }
  .case-visual { min-height: 180px; }

  .ct-layout { grid-template-columns: 1fr; gap: 24px; }
  .ct-pair { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .seg { padding: 48px 16px; }
  .hero { padding: 68px 16px 32px; }
  .skill-pills, .tool-grid, .folio-mosaic, .svc-row, .rev-grid, .edu-cards { grid-template-columns: 1fr; }
  .ft-bar { 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 .seg-idx { color: oklch(from var(--accent2) 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. */
:root {
  --accent: #467554; /* was #5a8a68 */
  --dim: #74716a; /* was #7a7770 */
  --accent2: #ceffdb; /* was #7eb88c */
}
.ft-tag { color: oklch(from rgb(122, 119, 112) calc(l - 0.02) c h / calc(min(1, alpha + 0.06))); }
