/* ============================================
   PRESTO — Designer Resume (Growth Tier)
   Indigo + Peach / Cream white
   Fonts: Plus Jakarta Sans (display+body) + JetBrains Mono (meta)
   Structure: Floating bottom pill nav + diagonal hero
   ============================================ */

:root {
  --bg: #faf9f6;
  --bg2: #f1efe9;
  --surface: #ffffff;
  --border: #e3ded5;
  --border2: #d5cfc4;
  --text: #2a2a2e;
  --bright: #12122a;
  --dim: #78786e;
  --accent: #5c52b5;
  --accent2: #e8a87c;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --glow: rgba(92, 82, 181, 0.16);
  --glow2: rgba(232, 168, 124, 0.18);
  --dark: #12122a;
  --dark2: #1c1c34;
  --dark-s: #26263e;
  --peach-bg: #e8a87c;
  --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, 'Plus Jakarta Sans', system-ui, sans-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── FLOATING BOTTOM PILL NAV ──────────────── */

.pill-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--wb-dark-surface, rgba(18, 18, 42, 0.92));
  backdrop-filter: blur(14px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(18, 18, 42, 0.25);
}

.pn-brand { display: flex; align-items: center; padding: 0 8px 0 4px; }
.pn-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.pn-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 13px;
  border-radius: 100px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.pn-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pn-cta {
  background: var(--accent);
  color: #fff;
}

.pn-cta:hover {
  background: var(--accent2);
  color: var(--bright);
}

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

.m-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  background: rgba(250, 249, 246, 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: 8px; }
.m-logo { width: 26px; height: 26px; border-radius: 8px; }
.m-name { font-weight: 700; font-size: 0.88rem; color: var(--bright); }

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

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

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

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

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

.m-link:hover { background: rgba(92, 82, 181, 0.06); color: var(--accent); }

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

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

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

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.hero-text { z-index: 1; }

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

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

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

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

.badge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}

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

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

.hero-line {
  width: 52px; height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin-bottom: 16px;
  animation: lineW 0.5s 0.18s var(--ease) both;
}

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

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

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

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

.h-chip:hover { border-color: var(--accent); color: var(--accent); }
.h-chip 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.38s var(--ease) both;
}

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

.hero-photo-col { z-index: 1; }

.hero-frame {
  position: relative;
  width: 280px;
  height: 350px;
  border-radius: 20px;
  overflow: visible;
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 56px rgba(18, 18, 42, 0.12);
}

.hero-glow {
  position: absolute;
  inset: -14px;
  background: var(--gradient);
  border-radius: 30px;
  opacity: 0.12;
  z-index: 0;
  filter: blur(18px);
  animation: glowP 3.5s ease-in-out alternate infinite;
}

@keyframes glowP {
  from { opacity: 0.08; }
  to { opacity: 0.16; }
}

.hero-diagonal {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

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

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

.seg-alt { background: var(--bg2); max-width: none; }
.seg-alt .seg { padding-left: 0; padding-right: 0; }
.seg-alt > .seg-h,
.seg-alt > .tl { max-width: 1100px; margin: 0 auto; padding-left: clamp(20px, 5vw, 72px); padding-right: clamp(20px, 5vw, 72px); }

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

.seg-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.4;
  font-weight: 600;
}

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

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

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

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

.sk-grp {
  display: block;
  font-family: 'JetBrains Mono', 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);
  margin-bottom: 8px;
}

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

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

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

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

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

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

.tl-dot {
  position: absolute;
  left: -26px; 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(18, 18, 42, 0.05);
  border-color: var(--accent2);
}

.tl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

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

.tl-when {
  font-family: 'JetBrains Mono', 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-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.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 20px rgba(18, 18, 42, 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: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  margin-bottom: 6px;
}

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

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

.s-dark { background: var(--dark); color: #dddad2; }
.s-dark .seg-n { color: var(--accent2); opacity: 0.45; }
.s-dark .seg-t { color: #f0efe8; }
.s-dark .seg { max-width: none; }

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

.dt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.dt-card {
  padding: 16px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.3s var(--ease), box-shadow 0.25s var(--ease);
}

.dt-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(232, 168, 124, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.dt-name {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #f0efe8;
  margin-bottom: 2px;
  transition: color 0.2s var(--ease);
}

.dt-card:hover .dt-name { color: var(--accent2); }

.dt-cat {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent2);
  margin-bottom: 10px;
}

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

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

/* ── CASE STUDIES — zigzag ─────────────────── */

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

.cs-row {
  display: grid;
  grid-template-columns: 1.15fr 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(18, 18, 42, 0.07);
  border-color: var(--accent2);
}

.cs-media { position: relative; overflow: hidden; min-height: 240px; }

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

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

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

.cs-row:hover .cs-btn { transform: translateY(0); }

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

.cs-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }

.cs-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding: 3px 9px;
  border: 1px solid rgba(92, 82, 181, 0.18);
  border-radius: 6px;
}

.cs-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bright);
  margin-bottom: 8px;
  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: 12px; }

.cs-outcome {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 11px;
  background: rgba(92, 82, 181, 0.06);
  border-radius: 8px;
  align-self: flex-start;
}

.cs-outcome-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

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

/* ── PORTFOLIO — peach accent band ─────────── */

.s-peach { background: var(--peach-bg); color: var(--bright); }
.s-peach .seg-n { color: rgba(18, 18, 42, 0.25); }
.s-peach .seg-t { color: var(--bright); }

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

.fo-card {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.fo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 36px rgba(18, 18, 42, 0.12);
}

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

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

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

.fo-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(18, 18, 42, 0.5);
}

.fo-title {
  font-size: 0.98rem; font-weight: 700; color: var(--bright);
  margin: 3px 0 5px;
}

.fo-desc { font-size: 0.78rem; color: rgba(18, 18, 42, 0.7); line-height: 1.5; }

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

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

.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 28px rgba(18, 18, 42, 0.06);
  border-color: var(--accent2);
}

.sv-bar {
  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-bar { transform: scaleY(1); }

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

.sv-name {
  font-size: 1.02rem; 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: 'JetBrains Mono', 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.08rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }

.sv-more {
  font-size: 0.75rem; 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: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.tm-card {
  padding: 22px;
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  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(232, 168, 124, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.tm-q { color: rgba(232, 168, 124, 0.25); margin-bottom: 8px; }
.tm-text { font-size: 0.88rem; line-height: 1.7; color: #ccc8c0; margin-bottom: 16px; }

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

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

.tm-name { display: block; font-weight: 700; font-size: 0.82rem; color: #f0efe8; }

.tm-role {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── 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-chip {
  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-chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 14px var(--glow);
  border-color: var(--accent);
}

.soc-chip 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: 20px; }

.ct-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  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.75rem; 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 15px;
  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(--surface);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

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

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

.ft-soc 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, #6a6a5e);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ft-soc a:hover {
  color: var(--accent2);
  background: var(--wb-tint, rgba(232, 168, 124, 0.08));
  transform: translateY(-2px);
}

.ft-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #4a4a42;
}

/* ── 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 badge is above the fold and already on screen at load, so its entrance is
   a normal time-based animation, never a view() timeline (which would never
   advance since the element never "enters" the viewport). */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge.rv { opacity: 0; transform: translateY(20px); animation: hero-badge-in .7s var(--ease, ease-out) .15s both; }
}
@keyframes hero-badge-in { to { opacity: 1; transform: translateY(0); } }

/* ============================================================ ANIMATIONS
   Scroll-driven reveal, progressive enhancement only. See the doctrine note in
   programmer-resume/arctic's stylesheet: 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-badge) { 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-grid, .tl, .ed-list, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.sk-grid, .tl, .ed-list, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.sk-grid, .tl, .ed-list, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.sk-grid, .tl, .ed-list, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .rv:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.sk-grid, .tl, .ed-list, .dt-grid, .cs-list, .fo-grid, .sv-grid, .tm-grid, .soc-row) > .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-fill, .dt-fill { animation: fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }

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

@media (prefers-reduced-motion: reduce) {
  .hero-badge.rv { opacity: 1; transform: none; animation: none; }
}

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

@media (max-width: 900px) {
  .pill-nav { display: none; }
  .m-bar { display: flex; }
  body { padding-bottom: 0; padding-top: 0; }

  .hero { padding-top: 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { text-align: center; }
  .hero-chips { justify-content: center; }
  .hero-sum { margin: 0 auto 18px; }
  .btn-cv { margin: 0 auto; }
  .hero-photo-col { display: flex; justify-content: center; order: -1; }
  .hero-frame { width: 220px; height: 270px; }

  .cs-row { grid-template-columns: 1fr; }
  .cs-row:nth-child(even) { direction: ltr; }
  .cs-media { 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: 64px 16px 60px; }
  .sk-grid, .dt-grid, .fo-grid, .sv-grid, .tm-grid, .ed-list { grid-template-columns: 1fr; }
  .ft-inner { 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. */
.fo-cat { color: oklch(from rgba(18, 18, 42, 0.5) calc(l - 0.04) c h / calc(min(1, alpha + 0.12))); }

/* 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: #6c6c63; /* was #78786e */
}
