/* ============================================
   STRATUM — Designer Resume (Growth Tier)
   Midnight Purple + Warm Gold / Dark-first
   Fonts: Space Grotesk (display+body) + DM Mono (meta)
   Structure: Left-docked vertical label nav, two-row hero
   ============================================ */

:root {
  --bg: #110e18;
  --bg2: #181422;
  --surface: #1c1828;
  --surface2: #221e30;
  --border: #2a2638;
  --border2: #363248;
  --text: #c4c0b8;
  --bright: #f0ede4;
  --dim: #7a7670;
  --accent: #c9a84c;
  --accent2: #8b6cc4;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(201, 168, 76, 0.16);
  --glow2: rgba(139, 108, 196, 0.14);
  --gold-bg: #c9a84c;
  --purple-bg: #6b4fa0;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --sl-w: 52px;
}

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

.body-dark {
  font-family: 'Space Grotesk', 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; }

/* ── LEFT-DOCKED VERTICAL LABEL NAV ────────── */

.side-label {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sl-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  z-index: 100;
}

.sl-brand { margin-bottom: 28px; }
.sl-logo { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }

.sl-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.sl-link {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--dim);
  padding: 10px 4px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.sl-link:hover, .sl-link.sl-active {
  color: var(--accent);
  background: rgba(201, 168, 76, 0.06);
}

/* ── MOBILE BAR ────────────────────────────── */

.m-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(17, 14, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.m-brand { display: flex; align-items: center; gap: 7px; }
.m-logo { width: 24px; height: 24px; border-radius: 7px; }
.m-name { font-weight: 700; font-size: 0.85rem; color: var(--bright); }

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

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

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

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

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

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

.md-link:hover { background: rgba(201, 168, 76, 0.06); color: var(--accent); }

/* ── MAIN OFFSET ───────────────────────────── */

.main-offset { margin-left: var(--sl-w); }

/* ── HERO — TWO-ROW ASYMMETRIC ─────────────── */

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

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

.hero-inner {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
}

.hero-row1 { margin-bottom: 32px; }

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

.hb-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pip 2s ease-in-out infinite;
}

@keyframes pip { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

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

.hb-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dim);
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; color: var(--bright);
  line-height: 0.92; letter-spacing: -0.04em;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-title {
  font-size: 1.2rem; font-weight: 500; color: var(--accent);
  margin-top: 8px; animation: fadeUp 0.7s 0.08s var(--ease) both;
}

.hero-row2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

.hero-photo-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
}

.hero-photo {
  width: 100%; height: 380px;
  object-fit: cover;
}

.hero-bio-card {
  padding-top: 8px;
}

.hero-rule {
  width: 48px; height: 2px; background: var(--gradient);
  border-radius: 2px; margin-bottom: 16px;
  animation: rW 0.5s 0.16s var(--ease) both;
}

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

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

.hero-metas {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 22px; animation: fadeUp 0.7s 0.28s var(--ease) both;
}

.hm {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--dim);
  transition: color 0.2s var(--ease);
}

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

.btn-cv {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 0.8rem; border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  animation: fadeUp 0.7s 0.36s var(--ease) both;
}

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

/* ── SEGMENTS ──────────────────────────────── */

.seg {
  max-width: 1020px;
  margin: 0 auto;
  padding: 60px clamp(24px, 5vw, 64px);
}

.seg-surface { background: var(--bg2); }

.seg-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
}

.seg-n {
  font-family: 'DM Mono', monospace; font-size: 0.95rem;
  color: var(--accent); font-weight: 500;
}

.seg-t {
  font-size: 1.45rem; font-weight: 700; color: var(--bright);
  letter-spacing: -0.01em;
}

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

.sk-cols {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.sk-item {
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.sk-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.sk-grp {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 0.52rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent); font-weight: 500;
}

.sk-name { display: block; font-weight: 700; font-size: 0.85rem; color: var(--bright); margin-bottom: 7px; }
.sk-track { height: 4px; background: var(--border); border-radius: 4px; overflow: clip; }

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

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

.tl { position: relative; padding-left: 26px; }

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

.tl-item { position: relative; margin-bottom: 16px; }
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute; left: -22px; top: 14px;
  width: 10px; height: 10px; background: var(--accent);
  border: 3px solid var(--bg2); border-radius: 50%; z-index: 1;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

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

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

.tl-item:hover .tl-card {
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.tl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.tl-co { font-size: 0.92rem; font-weight: 700; color: var(--bright); }
.tl-when { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--dim); }
.tl-role { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.tl-desc { font-size: 0.8rem; color: var(--text); line-height: 1.6; }

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

.ed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px;
}

.ed-card {
  padding: 18px; 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);
}

.ed-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); border-color: var(--accent); }

.ed-school { font-size: 0.88rem; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.ed-deg { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.ed-when { display: block; font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--dim); margin-bottom: 5px; }
.ed-note { font-size: 0.75rem; color: var(--text); line-height: 1.6; }

/* ── GOLD ACCENT SECTION ───────────────────── */

.sec-gold { background: var(--gold-bg); color: var(--bg); }
.sec-gold .seg-n { color: var(--bg); }
.sec-gold .seg-t { color: var(--bg); }

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

.dt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}

.dt-card {
  padding: 14px; background: rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1); border-radius: 12px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.dt-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.22);
}

.dt-name { display: block; font-weight: 700; font-size: 0.85rem; color: var(--bg); margin-bottom: 1px; }
.dt-cat { display: block; font-family: 'DM Mono', monospace; font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(0,0,0,0.5); margin-bottom: 8px; }
.dt-bar { height: 3px; background: rgba(0,0,0,0.12); border-radius: 3px; overflow: clip; }
.dt-fill { height: 100%; background: var(--bg); border-radius: 3px; font-size: 0; color: transparent; transform-origin: left; }

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

.cs-list { display: grid; gap: 22px; }

.cs-card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  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);
}

.cs-card:nth-child(even) { direction: rtl; }
.cs-card:nth-child(even) > * { direction: ltr; }

.cs-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.25); border-color: var(--accent); }

.cs-vis { position: relative; overflow: hidden; min-height: 220px; }
.cs-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.cs-card:hover .cs-img { transform: scale(1.05); }

.cs-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,14,24,0.7), transparent);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 14px; opacity: 0; transition: opacity 0.3s var(--ease);
}

.cs-card:hover .cs-ov { opacity: 1; }

.cs-go {
  padding: 6px 16px; background: var(--accent); color: var(--bg);
  font-size: 0.72rem; font-weight: 700; border-radius: 8px;
  transform: translateY(8px); transition: transform 0.3s var(--ease);
}

.cs-card:hover .cs-go { transform: translateY(0); }

.cs-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.cs-tag {
  font-family: 'DM Mono', monospace; font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent);
  padding: 2px 7px; border: 1px solid rgba(201,168,76,0.2); border-radius: 4px;
}

.cs-title { font-size: 1.05rem; font-weight: 700; color: var(--bright); margin-bottom: 5px; transition: color 0.2s var(--ease); }
.cs-card:hover .cs-title { color: var(--accent); }
.cs-desc { font-size: 0.78rem; color: var(--text); line-height: 1.6; margin-bottom: 8px; }

.cs-result {
  display: flex; align-items: baseline; gap: 4px;
  padding: 5px 8px; background: rgba(201,168,76,0.06);
  border-radius: 5px; align-self: flex-start;
}

.cs-result-l { font-family: 'DM Mono', monospace; font-size: 0.52rem; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.cs-result-v { font-size: 0.75rem; font-weight: 700; color: var(--accent); }

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

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

.fo-card {
  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);
}

.fo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.2); border-color: var(--accent); }

.fo-thumb { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.fo-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.fo-card:hover .fo-img { transform: scale(1.06); }

.fo-ov {
  position: absolute; inset: 0;
  background: rgba(17,14,24,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease);
}

.fo-card:hover .fo-ov { opacity: 1; }

.fo-btn {
  padding: 6px 16px; background: var(--accent); color: var(--bg);
  font-size: 0.72rem; font-weight: 700; border-radius: 8px;
  transform: translateY(8px); transition: transform 0.3s var(--ease);
}

.fo-card:hover .fo-btn { transform: translateY(0); }

.fo-info { padding: 14px 16px; }
.fo-cat { font-family: 'DM Mono', monospace; font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent2); }
.fo-title { font-size: 0.9rem; font-weight: 700; color: var(--bright); margin: 2px 0 3px; transition: color 0.2s var(--ease); }
.fo-card:hover .fo-title { color: var(--accent); }
.fo-desc { font-size: 0.75rem; color: var(--dim); line-height: 1.5; }

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

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

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

.sv-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.18); border-color: var(--accent); }

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

.sv-card:hover .sv-accent { transform: scaleX(1); }

.sv-ico { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }
.sv-name { font-size: 0.95rem; font-weight: 700; color: var(--bright); margin-bottom: 1px; transition: color 0.2s var(--ease); }
.sv-card:hover .sv-name { color: var(--accent); }
.sv-sub { font-family: 'DM Mono', monospace; font-size: 0.58rem; color: var(--dim); margin-bottom: 6px; }
.sv-body { font-size: 0.78rem; color: var(--text); line-height: 1.6; margin-bottom: 6px; }
.sv-price { display: block; font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.sv-more { font-size: 0.68rem; font-weight: 700; color: var(--accent); transition: color 0.2s var(--ease); }
.sv-more:hover { color: var(--accent2); }

/* ── PURPLE ACCENT SECTION ─────────────────── */

.sec-purple { background: var(--purple-bg); color: #fff; }
.sec-purple .seg-n { color: #fff; }
.sec-purple .seg-t { color: #fff; }

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

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

.tm-card {
  padding: 20px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; backdrop-filter: blur(4px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.tm-q { color: rgba(255,255,255,0.18); margin-bottom: 6px; }
.tm-text { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.88); margin-bottom: 12px; }
.tm-who { display: flex; align-items: center; gap: 8px; }
.tm-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.12); }
.tm-name { display: block; font-weight: 700; font-size: 0.78rem; color: #fff; }
.tm-role { display: block; font-family: 'DM Mono', monospace; font-size: 0.56rem; color: rgba(255,255,255,0.45); }

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

.soc-center { text-align: center; padding-top: 32px; padding-bottom: 32px; }
.soc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }

.soc-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.75rem; 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 4px 12px var(--glow); border-color: var(--accent); }
.soc-pill svg { color: var(--accent); }

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

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

.ct-intro { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }

.ct-detail {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text); margin-bottom: 7px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ct-detail:hover { color: var(--accent); transform: translateX(4px); }
.ct-detail svg { color: var(--accent); flex-shrink: 0; }
.ct-map { font-size: 0.7rem; font-weight: 700; color: var(--accent); transition: color 0.2s var(--ease); }
.ct-map:hover { color: var(--accent2); }

.ct-form { display: flex; flex-direction: column; gap: 8px; }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ct-in, .ct-ta {
  width: 100%; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: 0.82rem; outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ct-in::placeholder, .ct-ta::placeholder { color: var(--dim); }
.ct-in:focus, .ct-ta:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.ct-ta { resize: vertical; min-height: 90px; }

.ct-send {
  align-self: flex-start; padding: 10px 26px;
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 0.8rem;
  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-send:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 18px var(--glow); background: var(--accent2); color: #fff; }

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

footer {
  margin-left: var(--sl-w);
  background: var(--bg); border-top: 1px solid var(--border);
}

.ft {
  max-width: 1020px; margin: 0 auto;
  padding: 26px clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

.ft-left { display: flex; align-items: center; gap: 7px; }
.ft-logo { width: 18px; height: 18px; border-radius: 4px; }
.ft-tag { font-size: 0.72rem; color: var(--dim); }

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

.ft-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--radius, 6px);
  background: var(--surface); color: var(--dim);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ft-icons a:hover { color: var(--accent); background: var(--wb-tint, rgba(201,168,76,0.06)); transform: translateY(-2px); }

.ft-copy { font-family: 'DM Mono', monospace; font-size: 0.58rem; color: #3a3834; }

/* ── Hero entrance — time-based, above the fold ───────────────────── */
.hv { opacity: 0; transform: translateY(24px); animation: hv-in .8s ease-out .3s forwards; }
.hv-d1 { animation-delay: .55s; }
@keyframes hv-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hv { opacity: 1; transform: none; animation: none; }
}

/* ══════════════════════════════════════
   REVEAL — scroll-driven, progressive enhancement only.
   The resting state is FULLY VISIBLE and lives outside every guard, so a browser
   with no scroll timeline — or a stylesheet that arrives late — can never strand
   any section behind it. The hidden from-state lives ONLY inside the @keyframes,
   never in the rule. 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%; }

    /* Group 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 — an end anchored to `cover` would leave the LAST section of
       the page permanently part-transparent. */
    :is(.sk-cols, .tl, .ed-grid, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.sk-cols, .tl, .ed-grid, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.sk-cols, .tl, .ed-grid, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.sk-cols, .tl, .ed-grid, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.sk-cols, .tl, .ed-grid, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(n+6) { animation-range: entry 40% entry 78%; }

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

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

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

@media (max-width: 960px) {
  .side-label { display: none; }
  .m-bar { display: flex; }
  .main-offset { margin-left: 0; }
  footer { margin-left: 0; }

  .hero { padding-top: 68px; }
  .hero-row2 { grid-template-columns: 1fr; gap: 20px; }
  .hero-photo { height: 260px; }

  .cs-card { grid-template-columns: 1fr; }
  .cs-card:nth-child(even) { direction: ltr; }
  .cs-vis { min-height: 170px; }

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

@media (max-width: 640px) {
  .seg { padding: 44px 16px; }
  .hero { padding: 64px 16px 40px; }
  .sk-cols, .dt-grid, .fo-grid, .sv-grid, .tm-grid, .ed-grid { grid-template-columns: 1fr; }
  .ft { 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; }

/* 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 {
  --accent2: #9172cb; /* was #8b6cc4 */
}
.dt-cat { color: oklch(from rgba(0, 0, 0, 0.5) calc(l - 0.07) c h / calc(min(1, alpha + 0.21))); }
.ft-copy { color: oklch(from rgb(58, 56, 52) calc(l + 0.25) c h / calc(min(1, alpha + 0.75))); }

/* 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: #8f8b85; /* was #7a7670 */
}

/* 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 {
  --purple-bg: #65499a; /* was #6b4fa0 */
}
.tm-role:where([data-section="testimonials"], [data-section="testimonials"] *) { color: oklch(from rgba(255, 255, 255, 0.45) calc(l + 0.14) c h / calc(min(1, alpha + 0.42))); }

/* Guarded contrast (Skin & Skeleton S2, theme:palette-stress --heal --guarded): text that read in the owner's
   colours but not once a colour was darkened to read on the page. Each bound was proven by rendering the page with no
   palette, with each stress palette as picked, and with its guarded and readable versions: none got worse. */
.ed-when:where([data-section="resume"], [data-section="resume"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--dim) min(l, 0.483) c h / alpha); }
@media not all and (max-width: 960px) { .sl-link:where([data-section="header"], [data-section="header"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--dim) min(l, 0.483) c h / alpha); } }
.fo-cat:where([data-section="portfolio"], [data-section="portfolio"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--accent2) min(l, 0.55) c h / alpha); }
.fo-desc:where([data-section="portfolio"], [data-section="portfolio"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--dim) min(l, 0.483) c h / alpha); }
.cs-result-l:where([data-section="case_studies"], [data-section="case_studies"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--dim) min(l, 0.483) c h / alpha); }
.sv-sub:where([data-section="services"], [data-section="services"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--dim) min(l, 0.483) c h / alpha); }
.ft-copy:where([data-section="footer"], [data-section="footer"] *):where([data-wb-scheme="light"] *) { color: oklch(from oklch(from rgb(58, 56, 52) calc(0.25 + l) c h / min(1, 0.75 + alpha)) calc(l - 0.04) c h / calc(min(1, alpha + 0.12))); }
.cs-result-v:where([data-section="case_studies"], [data-section="case_studies"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--accent) min(l, 0.51) c h / alpha); }
.ft-tag:where([data-section="footer"], [data-section="footer"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--dim) min(l, 0.483) c h / alpha); }
@media not all and (max-width: 960px) { .sl-link:hover:where([data-section="header"], [data-section="header"] *):where([data-wb-scheme="light"] *), .sl-link.sl-active:where([data-section="header"], [data-section="header"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--accent) min(l, 0.51) c h / alpha); } }
@media (max-width: 960px) { .m-name:where([data-section="header"], [data-section="header"] *) { color: oklch(from var(--bright) max(l, 0.638) c h / alpha); } }
