/* ============================================
   VELLUM — Designer Resume (Growth Tier)
   Terracotta + Deep Teal / Warm parchment
   Fonts: Syne (display) + IBM Plex Mono (meta)
   Structure: Centered type-forward hero, overlay menu, stacked case studies
   ============================================ */

:root {
  --bg: #f9f6f1;
  --bg2: #f0ebe3;
  --surface: #ffffff;
  --border: #e0d9ce;
  --border2: #d2c9bc;
  --text: #2c2a26;
  --bright: #1a1a1a;
  --dim: #847e72;
  --accent: #c0654a;
  --accent2: #2a7a72;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(192, 101, 74, 0.18);
  --glow2: rgba(42, 122, 114, 0.16);
  --dark: #1a1a1a;
  --dark2: #222220;
  --dark-s: #2c2c28;
  --terra: var(--accent);
  --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, 'Syne', 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; }

/* ── TOP NAV ───────────────────────────────── */

.tn {
  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, 56px);
  height: 58px;
  background: rgba(249, 246, 241, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.tn-brand { display: flex; align-items: center; gap: 9px; }
.tn-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.tn-name { font-weight: 700; font-size: 0.95rem; color: var(--bright); letter-spacing: -0.01em; }

.tn-right { display: flex; align-items: center; gap: 12px; }

.tn-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--dark);
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tn-cta:hover { background: var(--accent); }

.tn-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.tn-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bright);
  border-radius: 2px;
}

/* ── OVERLAY MENU ──────────────────────────── */

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 26, 26, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.overlay-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.om-close {
  position: absolute;
  top: 18px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.om-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.om-link {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.02em;
  padding: 6px 20px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.om-link:hover {
  color: #fff;
  background: rgba(192, 101, 74, 0.15);
}

/* ── HERO — CENTERED TYPE-FORWARD ──────────── */

.hero {
  position: relative;
  padding: 100px clamp(20px, 5vw, 72px) 72px;
  text-align: center;
  /* clip, not hidden: hidden makes this a scroll container and strands the view()-timeline .rv reveal at progress 1 */
  overflow: clip;
}

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

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

.hero-avatar-wrap {
  margin-bottom: 20px;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent), 0 12px 36px rgba(26, 26, 26, 0.1);
  margin: 0 auto;
}

.hero-chips-row {
  margin-bottom: 14px;
}

.hero-chips {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--bright);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.08s var(--ease) both;
}

.hero-bar {
  width: 48px; height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin: 0 auto 18px;
  animation: barGrow 0.5s 0.18s var(--ease) both;
}

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

.hero-bio {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 20px;
  animation: fadeUp 0.7s 0.18s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.28s var(--ease) both;
}

.hm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  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);
}

.hm:hover { border-color: var(--accent); color: var(--accent); }
.hm 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: 700;
  font-size: 0.82rem;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: fadeUp 0.7s 0.38s var(--ease) both;
}

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

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

.blk {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 72px);
}

.blk-tinted { background: var(--bg2); max-width: none; }
.blk-tinted .blk { max-width: 1060px; }

.blk-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.blk-n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.4;
  font-weight: 600;
}

.blk-t {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--bright);
  letter-spacing: -0.01em;
}

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

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

.sk-item {
  padding: 14px 16px;
  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);
}

.sk-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(26, 26, 26, 0.04);
  border-color: var(--accent2);
}

.sk-g {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 600;
}

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

.sk-bar-bg { height: 5px; background: var(--bg2); border-radius: 5px; overflow: clip; }

.sk-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 5px;
  font-size: 0; color: transparent;
  transition: width 1s var(--ease);
  transform-origin: left;
}

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

.xp { position: relative; padding-left: 28px; }

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

.xp-entry { position: relative; margin-bottom: 18px; }
.xp-entry:last-child { margin-bottom: 0; }

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

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

.xp-card {
  padding: 18px 20px;
  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-entry:hover .xp-card {
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.05);
  border-color: var(--accent2);
}

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

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

.xp-when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--dim);
}

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

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

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

.edu-card {
  padding: 20px;
  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 6px 18px rgba(26, 26, 26, 0.05);
  border-color: var(--accent2);
}

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

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

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

/* ── TERRACOTTA ACCENT SECTION ─────────────── */

.sec-terra {
  background: var(--accent);
  color: #fff;
}

.sec-terra .blk-n { color: rgba(255, 255, 255, 0.3); }
.sec-terra .blk-t { color: #fff; }

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

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

.dt-chip {
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease), box-shadow 0.25s var(--ease);
}

.dt-chip:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.dt-name {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 2px;
}

.dt-cat {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.dt-bar-bg { height: 4px; background: rgba(255, 255, 255, 0.15); border-radius: 4px; overflow: clip; }

.dt-bar {
  height: 100%;
  background: #fff;
  border-radius: 4px;
  font-size: 0; color: transparent;
  transition: width 1s var(--ease);
  transform-origin: left;
}

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

.sec-dark { background: var(--dark); color: #d8d4cc; }
.sec-dark .blk-n { color: var(--accent); opacity: 0.45; }
.sec-dark .blk-t { color: #f0ede6; }

/* ── CASE STUDIES — stacked cards ──────────── */

.cs-stack { display: grid; gap: 24px; }

.cs-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  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 14px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(192, 101, 74, 0.2);
}

.cs-visual { position: relative; overflow: hidden; min-height: 230px; }

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

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

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

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

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

.cs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.cs-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid rgba(192, 101, 74, 0.25);
  border-radius: 5px;
}

.cs-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f0ede6;
  margin-bottom: 6px;
  transition: color 0.2s var(--ease);
}

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

.cs-desc { font-size: 0.8rem; color: #a8a498; line-height: 1.6; margin-bottom: 10px; }

.cs-result {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(192, 101, 74, 0.08);
  border-radius: 6px;
  align-self: flex-start;
}

.cs-result-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  color: #847e72;
  font-weight: 600;
}

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

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

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

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

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

.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(26, 26, 26, 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-link {
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease);
}

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

.fo-body { padding: 16px 18px; }

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

.fo-title {
  font-size: 0.95rem; font-weight: 700; color: var(--bright);
  margin: 3px 0 4px;
  transition: color 0.2s var(--ease);
}

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

.fo-desc { font-size: 0.78rem; color: var(--dim); line-height: 1.5; }

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

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

.sv-card {
  position: relative;
  padding: 24px 20px;
  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);
}

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

.sv-accent {
  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);
}

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

.sv-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 10px;
}

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

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

.sv-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--dim);
  margin-bottom: 8px;
}

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

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

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

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

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

.tm-card {
  padding: 22px;
  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.35s var(--ease);
}

.tm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  border-color: var(--accent);
}

.tm-q { color: rgba(192, 101, 74, 0.2); margin-bottom: 8px; }
.tm-text { font-size: 0.88rem; line-height: 1.7; color: var(--text); margin-bottom: 14px; }

.tm-who { display: flex; align-items: center; gap: 9px; }

.tm-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.tm-name { display: block; font-weight: 700; font-size: 0.82rem; color: var(--bright); }

.tm-role {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--dim);
}

/* ── SOCIAL (on terracotta) ────────────────── */

.soc-center { text-align: center; padding-top: 36px; padding-bottom: 36px; }

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

.soc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.soc-pill:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.soc-pill svg { color: #fff; }

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

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

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

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

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

.ct-map {
  font-size: 0.72rem; 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: 10px; }

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

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

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

.ct-send {
  align-self: flex-start;
  padding: 11px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  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);
}

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

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

.ft {
  max-width: 1060px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-left { display: flex; align-items: center; gap: 8px; }
.ft-logo { width: 22px; height: 22px; border-radius: 6px; }
.ft-tag { font-size: 0.78rem; color: #6a665e; }

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

.ft-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius, 8px);
  background: var(--wb-tint, rgba(255, 255, 255, 0.04));
  color: var(--text, #6a665e);
  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(192, 101, 74, 0.08));
  transform: translateY(-2px);
}

.ft-copy {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: #4a4840;
}

/* ── REVEAL ────────────────────────────────── */

/* Resting state is fully visible outside every guard below — a browser without
   scroll timelines, or a same-origin preview iframe where the timeline resolves
   to null, must never strand any of this content. */
.rv { opacity: 1; }

/* Hero avatar + chips row are above the fold and already on screen at load, so
   their entrance is a normal time-based animation, never a view() timeline
   (which would never advance since the elements never "enter" the viewport). */
@media (prefers-reduced-motion: no-preference) {
  .hero-avatar-wrap.rv { opacity: 0; transform: translateY(20px) scale(0.96); animation: hero-in .7s var(--ease, ease-out) .1s both; }
  .hero-chips-row.rv { opacity: 0; transform: translateY(20px) scale(0.96); animation: hero-in .7s var(--ease, ease-out) .25s both; }
}
@keyframes hero-in { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================ ANIMATIONS
   Scroll-driven reveal, progressive enhancement only. The hidden from-state
   lives ONLY inside @keyframes, the resting `.rv{opacity:1}` above always wins
   first. Only opacity and transform animate: nothing reflows. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv:not(.hero-avatar-wrap):not(.hero-chips-row) { 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. */
    :is(.sk-wrap, .xp, .edu-list, .dt-wrap, .cs-stack, .fo-grid, .sv-grid, .tm-grid, .soc-pills) > .rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.sk-wrap, .xp, .edu-list, .dt-wrap, .cs-stack, .fo-grid, .sv-grid, .tm-grid, .soc-pills) > .rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.sk-wrap, .xp, .edu-list, .dt-wrap, .cs-stack, .fo-grid, .sv-grid, .tm-grid, .soc-pills) > .rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.sk-wrap, .xp, .edu-list, .dt-wrap, .cs-stack, .fo-grid, .sv-grid, .tm-grid, .soc-pills) > .rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.sk-wrap, .xp, .edu-list, .dt-wrap, .cs-stack, .fo-grid, .sv-grid, .tm-grid, .soc-pills) > .rv:nth-child(n+6) { animation-range: entry 40% entry 78%; }

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

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

@media (prefers-reduced-motion: reduce) {
  .hero-avatar-wrap.rv, .hero-chips-row.rv { opacity: 1; transform: none; animation: none; }
}

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

@media (max-width: 900px) {
  .cs-card { grid-template-columns: 1fr; }
  .cs-card:nth-child(even) { direction: ltr; }
  .cs-visual { min-height: 180px; }
  .ct-grid { grid-template-columns: 1fr; gap: 24px; }
  .ct-pair { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blk, .seg { padding: 48px 16px; }
  .hero { padding: 80px 16px 56px; }
  .sk-wrap, .dt-wrap, .fo-grid, .sv-grid, .tm-grid, .edu-list { 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; }

/* 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. */
:where(.sec-dark) .ct-map { 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. */
:root {
  --accent: #580000; /* was #c0654a */
}

/* 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: #6f6a5e; /* was #847e72 */
}
