/* ============================================
   DRIFT — Designer Resume (Growth Tier)
   Copper + Forest Green / Warm parchment
   Fonts: Manrope (display+body) + Inconsolata (meta)
   Structure: Shrinking top nav, floating card sections, masonry portfolio
   ============================================ */

:root {
  --bg: #f5f2ec;
  --bg2: #ebe7df;
  --surface: #ffffff;
  --border: #ddd7cb;
  --border2: #cfc8ba;
  --text: #2a2820;
  --bright: #1a2418;
  --dim: #7c7868;
  --accent: #c8875a;
  --accent2: #3a6b4a;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(200, 135, 90, 0.18);
  --glow2: rgba(58, 107, 74, 0.15);
  --dark: #1a2418;
  --dark2: #222e20;
  --dark-s: #2a3828;
  --copper: var(--accent);
  --forest: var(--accent2);
  --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, 'Manrope', 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 — shrinks on scroll via JS class ──── */

.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, 52px);
  height: 62px;
  background: var(--background, rgba(245, 242, 236, 0.9));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: height 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.shrunk { height: 48px; }

.nav-brand { display: flex; align-items: center; gap: 9px; }
.nav-logo { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; transition: width 0.3s var(--ease), height 0.3s var(--ease); }
.nav.shrunk .nav-logo { width: 26px; height: 26px; }
.nav-name { font-weight: 800; font-size: 0.92rem; color: var(--bright); letter-spacing: -0.01em; }

.nav-mid { display: flex; gap: 2px; }

.nl {
  font-size: 0.78rem; font-weight: 600; color: var(--dim);
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nl:hover { color: var(--accent); background: rgba(200, 135, 90, 0.06); }

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

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

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

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

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

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

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

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

.mdl:hover { background: rgba(200, 135, 90, 0.07); color: var(--accent); }

/* ── HERO — floating card cluster ──────────── */

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

.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200, 135, 90, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(58, 107, 74, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

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

.hc-photo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(26, 36, 24, 0.08);
  transform: rotate(-1.5deg);
}

.hc-img {
  width: 100%; height: 400px;
  object-fit: cover; border-radius: 20px;
}

.hc-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 40px rgba(26, 36, 24, 0.06);
  transform: rotate(0.5deg);
}

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

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

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

.hc-chips {
  font-family: 'Inconsolata', monospace;
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--dim);
}

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

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

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

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

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

.hc-metas {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
  animation: fadeUp 0.7s 0.26s var(--ease) both;
}

.hm {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inconsolata', 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);
}

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

.btn-cv {
  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.34s var(--ease) both;
}

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

/* ── CARD SECTIONS — floating card containers ── */

.card-section {
  max-width: 1060px;
  margin: -8px auto 0;
  padding: 0 clamp(16px, 3vw, 40px);
}

.cs-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px clamp(20px, 4vw, 44px);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(26, 36, 24, 0.03);
}

.cs-alt .cs-inner { background: var(--bg2); border-color: var(--border2); }

.cs-dark .cs-inner {
  background: var(--dark); border-color: rgba(255,255,255,0.04);
  color: #d0ccbe;
}

.cs-dark .sn { color: var(--accent); opacity: 0.45; }
.cs-dark .st { color: #eeeae2; }

.cs-copper .cs-inner {
  background: var(--copper); border-color: rgba(255,255,255,0.12);
  color: #fff;
}

.cs-copper .sn { color: rgba(255,255,255,0.3); }
.cs-copper .st { color: #fff; }

.cs-forest .cs-inner {
  background: var(--forest); border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.cs-forest .sn { color: rgba(255,255,255,0.3); }
.cs-forest .st { color: #fff; }

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

.sn {
  font-family: 'Inconsolata', monospace; font-size: 1rem;
  color: var(--accent); opacity: 0.4; font-weight: 600;
}

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

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

.sk-grid { display: grid; gap: 8px; }

.sk-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; background: var(--bg);
  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-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 36, 24, 0.04);
  border-color: var(--accent2);
}

.sk-info { min-width: 180px; }

.sk-grp {
  display: block; font-family: 'Inconsolata', monospace;
  font-size: 0.58rem; 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); }
.sk-track { flex: 1; height: 5px; background: var(--border); border-radius: 5px; overflow: clip; }

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

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

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

.tl::before {
  content: ''; position: absolute; left: 7px; 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: -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);
}

.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(26, 36, 24, 0.05);
  border-color: var(--accent2);
}

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

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

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

.ed-card {
  padding: 18px; background: var(--bg);
  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(26, 36, 24, 0.05); border-color: var(--accent2); }

.ed-school { font-size: 0.92rem; font-weight: 700; color: var(--bright); margin-bottom: 2px; }
.ed-deg { font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.ed-when { display: block; font-family: 'Inconsolata', monospace; font-size: 0.65rem; color: var(--dim); margin-bottom: 6px; }
.ed-note { font-size: 0.78rem; color: var(--text); line-height: 1.6; }

/* ── DESIGN TOOLS (copper card) ────────────── */

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

.dt-cell {
  padding: 16px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  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-cell:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.dt-name { display: block; font-weight: 700; font-size: 0.88rem; color: #fff; margin-bottom: 2px; }
.dt-cat { display: block; font-family: 'Inconsolata', monospace; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.dt-meter { height: 4px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: clip; }
.dt-fill { height: 100%; background: #fff; border-radius: 4px; font-size: 0; color: transparent; transform-origin: left; }

/* ── CASE STUDIES (dark card) ──────────────── */

.case-stack { display: grid; gap: 20px; }

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

.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(0,0,0,0.2); border-color: rgba(200, 135, 90, 0.2); }

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

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

.case-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);
}

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

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

.case-tag {
  font-family: 'Inconsolata', monospace; font-size: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent);
  padding: 3px 8px; border: 1px solid rgba(200, 135, 90, 0.25); border-radius: 5px;
}

.case-title { font-size: 1.1rem; font-weight: 800; color: #eeeae2; margin-bottom: 6px; transition: color 0.2s var(--ease); }
.case-card:hover .case-title { color: var(--accent); }
.case-desc { font-size: 0.8rem; color: #a8a498; line-height: 1.6; margin-bottom: 10px; }

.case-result {
  display: flex; align-items: baseline; gap: 5px;
  padding: 6px 10px; background: rgba(200, 135, 90, 0.08);
  border-radius: 6px; align-self: flex-start;
}

.case-result-l { font-family: 'Inconsolata', monospace; font-size: 0.56rem; text-transform: uppercase; color: #7c7868; font-weight: 600; }
.case-result-v { font-size: 0.78rem; font-weight: 700; color: var(--accent); }

/* ── PORTFOLIO — masonry-ish staggered grid ── */

.fo-masonry {
  columns: 2;
  column-gap: 16px;
}

.fo-card {
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--bg);
  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 30px rgba(26, 36, 24, 0.07); border-color: var(--accent2); }

.fo-thumb { position: relative; overflow: hidden; }
.fo-img { width: 100%; display: block; transition: transform 0.5s var(--ease); }
.fo-card:hover .fo-img { transform: scale(1.05); }

.fo-ov {
  position: absolute; inset: 0;
  background: rgba(26, 36, 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: 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-btn { transform: translateY(0); }

.fo-info { padding: 14px 16px; }
.fo-cat { font-family: 'Inconsolata', monospace; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent2); }
.fo-title { font-size: 0.92rem; 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, 36, 24, 0.06); border-color: var(--accent2); }

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

.sv-card:hover .sv-stripe { transform: scaleY(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: 'Inconsolata', monospace; font-size: 0.65rem; 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 (forest card) ────────────── */

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

.tm-card {
  padding: 22px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px; 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.1); }

.tm-q { color: rgba(255,255,255,0.2); margin-bottom: 8px; }
.tm-text { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.88); 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 rgba(255,255,255,0.15); }
.tm-name { display: block; font-weight: 700; font-size: 0.82rem; color: #fff; }
.tm-role { display: block; font-family: 'Inconsolata', monospace; font-size: 0.6rem; color: rgba(255,255,255,0.5); }

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

.soc-center .cs-inner { background: transparent; border: none; box-shadow: none; text-align: center; padding: 36px 0; }
.soc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

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

/* ── CONTACT (dark card) ───────────────────── */

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

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

.ct-detail {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem; color: #d0ccbe; margin-bottom: 8px;
  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.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: #ddd8ce;
  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: #5a5850; }
.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: 28px clamp(20px, 5vw, 52px);
  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: 20px; height: 20px; border-radius: 5px; }
.ft-tag { font-size: 0.75rem; color: #5a5850; }

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

.ft-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius, 7px);
  background: var(--wb-tint, rgba(255,255,255,0.04)); color: var(--text, #5a5850);
  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(200, 135, 90, 0.08)); transform: translateY(-2px); }

.ft-copy { font-family: 'Inconsolata', monospace; font-size: 0.62rem; color: #3a3830; }

/* ── 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(.sk-grid,.tl,.ed-grid,.dt-hex,.case-stack,.fo-masonry,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-hex,.case-stack,.fo-masonry,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-hex,.case-stack,.fo-masonry,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-hex,.case-stack,.fo-masonry,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-hex,.case-stack,.fo-masonry,.sv-grid,.tm-grid,.soc-row)>.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. */
    .sk-fill { animation: rv-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }
    .dt-fill { animation: rv-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 rv-fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-dot,
  .hc-name, .hc-title, .hc-rule, .hc-bio, .hc-metas, .btn-cv {
    animation: none;
  }
}

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

@media (max-width: 900px) {
  .nav-mid { display: none; }
  .nav-mob { display: flex; }
  .nav-cta { display: none; }

  .hero-cluster { grid-template-columns: 1fr; gap: 20px; }
  .hc-photo, .hc-info { transform: none; }
  .hc-img { height: 280px; }
  .hc-info { text-align: center; }
  .hc-metas { justify-content: center; }
  .btn-cv { margin: 0 auto; }

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

  .fo-masonry { columns: 1; }

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

@media (max-width: 640px) {
  .card-section { padding: 0 12px; }
  .cs-inner { padding: 36px 16px; }
  .hero { padding: 80px 16px 48px; }
  .sk-row { flex-direction: column; align-items: flex-start; }
  .sk-info { min-width: auto; }
  .sk-track { width: 100%; }
  .sv-grid, .tm-grid, .ed-grid, .dt-hex { 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(.case-card) .case-tag { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.case-card) .case-result-v { color: oklch(from var(--accent) max(l, 0.75) c h); }
:where(.cs-dark .cs-inner) .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: #8b4f21; /* was #c8875a */
}
.dt-cat { color: oklch(from rgba(255, 255, 255, 0.55) calc(l + 0.14) c h / calc(min(1, alpha + 0.42))); }
.case-result-l { color: oklch(from rgb(124, 120, 104) calc(l + 0.14) c h / calc(min(1, alpha + 0.42))); }

/* 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: #706c5d; /* was #7c7868 */
}
