/* ============================================
   EPOCH — Designer Resume (Growth Tier)
   Warm Rose + Slate / Dark-first theme
   Fonts: Instrument Sans (display+body) + Geist Mono (meta)
   Structure: Dark body, right-side dot nav, editorial case studies
   ============================================ */

:root {
  --bg: #111113;
  --bg2: #1a1a1e;
  --surface: #1e1e22;
  --surface2: #242428;
  --border: #2c2c32;
  --border2: #38383f;
  --text: #c8c5be;
  --bright: #f0ede6;
  --dim: #7a786e;
  --accent: #d4727a;
  --accent2: #8a9ab5;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(212, 114, 122, 0.16);
  --glow2: rgba(138, 154, 181, 0.14);
  --rose-bg: #d4727a;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

.dark-body {
  font-family: 'Instrument Sans', 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 STRIP ─────────────────────────────── */

.top-strip {
  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, 48px);
  height: 54px;
  background: rgba(17, 17, 19, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.ts-cta {
  font-size: 0.72rem; font-weight: 700; color: #fff;
  background: var(--accent); padding: 5px 16px; border-radius: 8px;
  transition: background 0.2s var(--ease);
}

.ts-cta:hover { background: var(--accent2); }

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

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

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

/* ── RIGHT-SIDE DOT NAV ────────────────────── */

.dot-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dn-dot {
  width: 8px; height: 8px;
  background: var(--border2);
  border-radius: 50%;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.dn-dot:hover, .dn-dot.dn-active {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--glow);
  transform: scale(1.3);
}

/* ── MOBILE DRAWER ─────────────────────────── */

.mob-drawer {
  display: none;
  position: fixed;
  top: 54px; left: 0; right: 0;
  z-index: 99;
  background: rgba(17, 17, 19, 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; }

.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(212, 114, 122, 0.08); color: var(--accent); }

/* ── HERO — DARK, FULL-WIDTH, LARGE TYPE ───── */

.hero {
  position: relative;
  padding: 100px clamp(20px, 5vw, 64px) 72px;
  /* 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: 1060px;
  margin: 0 auto;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-photo-wrap { flex-shrink: 0; }

.hero-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(0,0,0,0.3);
}

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

.badge-pip {
  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; }
}

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

.hero-name {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--bright);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.08s var(--ease) both;
}

.hero-divider {
  width: 56px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  margin-bottom: 28px;
  animation: divGrow 0.5s 0.16s var(--ease) both;
}

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

.hero-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.hero-bio {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-metas {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist 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-dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 10px;
  align-self: flex-start;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

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

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

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

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

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

.seg-n {
  font-family: 'Geist Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

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

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

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

.sk-card {
  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-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.2);
  border-color: var(--accent);
}

.sk-grp {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.55rem;
  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-track { 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: 18px; }
.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: 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);
}

.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.95rem; font-weight: 700; color: var(--bright); }
.tl-when { font-family: 'Geist Mono', monospace; font-size: 0.68rem; 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: 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);
}

.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.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: 'Geist Mono', monospace; font-size: 0.62rem; color: var(--dim); margin-bottom: 6px; }
.ed-note { font-size: 0.78rem; color: var(--text); line-height: 1.6; }

/* ── ROSE ACCENT SECTION ───────────────────── */

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

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

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

.dt-chip {
  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-chip: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.1);
}

.dt-name { display: block; font-weight: 700; font-size: 0.88rem; color: #fff; margin-bottom: 2px; }
.dt-cat { display: block; font-family: 'Geist Mono', monospace; font-size: 0.55rem; 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 — EDITORIAL TWO-COLUMN ───── */

.cs-editorial { display: grid; gap: 28px; }

.cs-row {
  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);
}

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

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

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

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

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

.cs-link {
  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-row:hover .cs-link { transform: translateY(0); }

.cs-text-col { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.cs-tag {
  font-family: 'Geist Mono', monospace; font-size: 0.58rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent);
  padding: 3px 8px; border: 1px solid rgba(212,114,122,0.2); border-radius: 5px;
}

.cs-title { font-size: 1.12rem; font-weight: 700; color: var(--bright); margin-bottom: 6px; transition: color 0.2s var(--ease); }
.cs-row:hover .cs-title { color: var(--accent); }
.cs-desc { font-size: 0.82rem; color: var(--text); line-height: 1.6; margin-bottom: 10px; }

.cs-outcome-box {
  display: flex; align-items: baseline; gap: 5px;
  padding: 6px 10px; background: rgba(212,114,122,0.06);
  border-radius: 6px; align-self: flex-start;
}

.cs-outcome-lbl { font-family: 'Geist Mono', monospace; font-size: 0.55rem; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.cs-outcome-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 30px 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,17,19,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: 16px 18px; }
.fo-cat { font-family: 'Geist 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(0,0,0,0.18); border-color: var(--accent); }

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

.sv-card:hover .sv-bar { 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: 'Geist 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: 700; 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 (rose band) ──────────────── */

.sec-rose .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.12);
  border: 1px solid rgba(255,255,255,0.16);
  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.4); 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: 'Geist Mono', monospace; font-size: 0.6rem; color: rgba(255,255,255,0.5); }

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

.soc-center { text-align: center; padding-top: 36px; padding-bottom: 36px; }
.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 ───────────────────────────────── */

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

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

.ct-detail {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem; color: var(--text); 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(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  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: 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: 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(--bg); border-top: 1px solid var(--border); }

.ft {
  max-width: 1060px; margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 64px);
  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: var(--dim); }

.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(--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(212,114,122,0.08)); transform: translateY(-2px); }

.ft-copy { font-family: 'Geist Mono', monospace; font-size: 0.6rem; color: #3a3a36; }

/* ── 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-grid,.cs-editorial,.fo-grid,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-editorial,.fo-grid,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-editorial,.fo-grid,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-editorial,.fo-grid,.sv-grid,.tm-grid,.soc-row)>.rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.sk-grid,.tl,.ed-grid,.dt-grid,.cs-editorial,.fo-grid,.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) {
  .badge-pip,
  .hero-name, .hero-role, .hero-divider, .hero-cols {
    animation: none;
  }
}

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

@media (max-width: 900px) {
  .dot-nav { display: none; }
  .ts-menu { display: flex; }
  .ts-cta { display: none; }

  .hero-cols { grid-template-columns: 1fr; gap: 24px; }
  .hero-aside { order: -1; }

  .cs-row { grid-template-columns: 1fr; }
  .cs-row:nth-child(even) { direction: ltr; }
  .cs-img-col { min-height: 180px; }

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

@media (max-width: 640px) {
  .seg { padding: 48px 16px; }
  .hero { padding: 80px 16px 52px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sk-grid, .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 {
  --rose-bg: #a54852; /* was #d4727a */
}
.dt-cat { color: oklch(from rgba(255, 255, 255, 0.55) calc(l + 0.19) c h / calc(min(1, alpha + 0.57))); }
.ft-copy { color: oklch(from rgb(58, 58, 54) 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: #8f8d83; /* was #7a786e */
}

/* 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. */
.btn-dl { background-color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }
.ct-send { background-color: oklch(from var(--accent) min(l, 0.565) c h / alpha); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
.tm-text:where([data-section="testimonials"], [data-section="testimonials"] *) { color: oklch(from rgba(255, 255, 255, 0.88) calc(l + 0.04) c h / calc(min(1, alpha + 0.12))); }
.tm-role:where([data-section="testimonials"], [data-section="testimonials"] *) { color: oklch(from rgba(255, 255, 255, 0.5) calc(l + 0.19) c h / calc(min(1, alpha + 0.57))); }
@media not all and (max-width: 900px) { .ts-cta { background-color: oklch(from var(--accent) min(l, 0.565) c h / alpha); } }

/* 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); }
.fo-cat:where([data-section="portfolio"], [data-section="portfolio"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--accent2) min(l, 0.493) 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-outcome-lbl: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); }
.cs-outcome-val:where([data-section="case_studies"], [data-section="case_studies"] *):where([data-wb-scheme="light"] *) { color: oklch(from var(--accent) min(l, 0.507) 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, 58, 54) calc(0.25 + l) c h / min(1, 0.75 + alpha)) calc(l - 0.04) c h / calc(min(1, alpha + 0.12))); }
.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); }
.ts-name:where([data-section="header"], [data-section="header"] *) { color: oklch(from var(--bright) max(l, 0.687) c h / alpha); }
