/* Chromatic — Bold Gradient Designer Resume */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111114;
  --bg-tint: #18181c;
  --surface: #1e1e24;
  --border: #2a2a32;
  --text: #eaeaf0;
  --text-soft: #9494a4;
  --text-dim: #5e5e6e;
  --accent: #f97316;
  --accent2: #ec4899;
  --accent3: #8b5cf6;
  --accent-soft: rgba(249,115,22,0.12);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  --gradient-subtle: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(236,72,153,0.08), rgba(139,92,246,0.08));
  --heading: 'Outfit', sans-serif;
  --body: 'Sora', sans-serif;
  --r: 12px;
  --r-lg: 20px;
  --max: 1160px;
  --ease: cubic-bezier(0.33, 0.01, 0, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────── */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17,17,20,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.hdr-row { height: 68px; display: flex; align-items: center; justify-content: space-between; }

.hdr-logo {
  font-family: var(--heading); font-size: 1.3rem; font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hdr-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; padding: 0;
}
.hdr-burger span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: absolute; left: 0; transition: all 0.3s;
}
.hdr-burger span:first-child { top: 0; }
.hdr-burger span:last-child { bottom: 0; }

.hdr-links { display: flex; list-style: none; gap: 24px; align-items: center; }
.hdr-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-soft); transition: color 0.25s; }
.hdr-links a:hover { color: var(--text); }

.hdr-cta {
  padding: 8px 22px; border-radius: 999px;
  background: var(--gradient); color: #fff !important; font-weight: 700;
}
.hdr-cta:hover { opacity: 0.9; }

/* ── Hero ─────────────────────────── */
.hero {
  position: relative; padding-top: 68px;
  min-height: 100vh; display: flex; align-items: center;
  /* `clip`, not `hidden`: `overflow: hidden` makes this section a SCROLL
     CONTAINER, and a scroll container between the viewport and a
     `view()`-timeline element silently kills the timeline — the gradient
     parallax below would simply never run. `clip` clips identically
     without creating one. */
  overflow: clip;
}

.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-gradient {
  position: absolute; top: -40%; right: -20%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, rgba(236,72,153,0.06) 40%, transparent 70%);
  pointer-events: none;
}

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

.hero-layout {
  position: relative;
  display: grid; grid-template-columns: 380px 1fr;
  gap: 56px; align-items: center;
  padding: 80px 0 60px;
}

/* Photo */
.hero-photo { position: relative; }

.photo-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.photo-border {
  position: absolute; inset: -2px; border-radius: var(--r-lg);
  border: 2px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.photo-stat {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  padding: 12px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 2;
}
.ps-1 { top: 15%; right: -28px; }
.ps-2 { bottom: 20%; left: -32px; }
.ps-num { font-family: var(--heading); font-size: 1.3rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ps-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* Info */
.hero-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 5px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-role { font-size: 1.1rem; color: var(--text-soft); margin-bottom: 10px; }

.hero-chips {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-bio { font-size: 0.95rem; color: var(--text-soft); line-height: 1.85; max-width: 520px; margin-bottom: 24px; }

.hero-details { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }

.hd-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--text-soft);
}
.hd-item svg { color: var(--accent); flex-shrink: 0; }

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; font-family: var(--body);
  cursor: pointer; border: none; transition: all 0.3s var(--ease);
}

.btn-accent { background: var(--gradient); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,0.25); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-wide { width: 100%; }

/* ── Sections shared ─────────────── */
.sect { padding: 80px 0; }
.sect-tinted { background: var(--bg-tint); }
.sect-gradient { background: var(--gradient-subtle); }

.sect-top { margin-bottom: 40px; }

.sect-chip {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
  background: var(--accent-soft); color: var(--accent);
}

.sect-title {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
}

/* ── Skills ───────────────────────── */
.skill-bars { display: flex; flex-direction: column; gap: 16px; }

.skill-row {
  display: grid; grid-template-columns: 200px 1fr 40px;
  gap: 16px; align-items: center;
  padding: 16px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color 0.3s;
}
.skill-row:hover { border-color: var(--accent); }

.skill-info { display: flex; flex-direction: column; }
.skill-cat { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.skill-name { font-size: 0.95rem; font-weight: 600; }

.skill-track { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--gradient); border-radius: 999px; transition: width 1.2s var(--ease); }

.skill-pct { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); text-align: right; }
.skill-pct::after { content: '%'; }

/* ── Timeline ─────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}

.tl-item { position: relative; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}

.tl-card {
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color 0.3s;
}
.tl-card:hover { border-color: var(--accent); }

.tl-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.tl-role { font-family: var(--heading); font-size: 1.05rem; font-weight: 700; }
.tl-date { font-size: 0.8rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.tl-company { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 6px; }
.tl-body { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }

/* ── Education ────────────────────── */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.edu-card {
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color 0.3s;
}
.edu-card:hover { border-color: var(--accent); }

.edu-year { font-size: 0.78rem; color: var(--accent); font-weight: 600; display: block; margin-bottom: 6px; }
.edu-degree { font-family: var(--heading); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.edu-school { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 6px; }
.edu-note { font-size: 0.82rem; color: var(--text-dim); }

/* ── Tools hex grid ───────────────── */
.tool-hex-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.tool-hex { text-align: center; }

.hex-inner {
  width: 72px; height: 72px; margin: 0 auto 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease);
}
.hex-inner:hover { border-color: var(--accent); background: var(--accent-soft); }

.hex-letter {
  transform: rotate(-45deg);
  font-family: var(--heading); font-size: 1.1rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hex-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.hex-cat { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 8px; }

.hex-bar { height: 4px; background: var(--border); border-radius: 999px; overflow: hidden; max-width: 100px; margin: 0 auto; }
.hex-fill { height: 100%; background: var(--gradient); border-radius: 999px; transition: width 1.2s var(--ease); }

/* ── Portfolio masonry ────────────── */
.folio-masonry {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.folio-item { transition: transform 0.35s var(--ease); }
.folio-item:hover { transform: translateY(-6px); }

.folio-img {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 16/10; background: var(--surface);
  margin-bottom: 14px;
}
.folio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.folio-item:hover .folio-img img { transform: scale(1.05); }

.folio-hover {
  position: absolute; inset: 0;
  background: rgba(17,17,20,0.75);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity 0.3s;
}
.folio-item:hover .folio-hover { opacity: 1; }

.folio-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }

.folio-link {
  padding: 8px 22px; border: 1px solid var(--accent); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  transition: all 0.25s;
}
.folio-link:hover { background: var(--accent); color: #fff; }

.folio-name { font-family: var(--heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.folio-desc { font-size: 0.85rem; color: var(--text-soft); }

/* ── Case Studies ─────────────────── */
.case-stack { display: flex; flex-direction: column; gap: 28px; }

.case-block {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.35s var(--ease);
}
.case-block:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }

.case-media { aspect-ratio: 4/3; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-block:hover .case-media img { transform: scale(1.03); }

.case-detail { padding: 32px; display: flex; flex-direction: column; justify-content: center; }

.case-heading { font-family: var(--heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }

.case-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.case-pill {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-soft);
}

.case-copy { font-size: 0.88rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 14px; }

.case-impact {
  padding: 12px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 14px;
}
.impact-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 2px; }
.impact-text { font-size: 0.88rem; color: var(--text); }

.case-more { font-size: 0.82rem; font-weight: 700; color: var(--accent); transition: color 0.25s; }
.case-more:hover { color: var(--accent2); }

/* ── Services ─────────────────────── */
.svc-row-list { display: flex; flex-direction: column; gap: 12px; }

.svc-row {
  display: grid; grid-template-columns: 48px 48px 1fr auto;
  gap: 20px; align-items: center;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  transition: all 0.3s var(--ease);
}
.svc-row:hover { border-color: var(--accent); transform: translateX(4px); }

.svc-idx {
  font-family: var(--heading); font-size: 1.5rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.svc-icon { width: 44px; height: 44px; border-radius: var(--r); overflow: hidden; background: var(--accent-soft); flex-shrink: 0; }
.svc-icon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.svc-name { font-family: var(--heading); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.svc-sub { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 4px; }
.svc-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }

.svc-price { font-size: 0.88rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }

/* ── Testimonials ─────────────────── */
.rev-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.rev-card {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color 0.3s;
}
.rev-card:hover { border-color: var(--accent); }

.rev-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 14px; }

.rev-text { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 20px; font-style: italic; }

.rev-author { display: flex; align-items: center; gap: 12px; }
.rev-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--border); }
.rev-name { font-size: 0.88rem; display: block; }
.rev-role { font-size: 0.75rem; color: var(--text-dim); }

/* ── Social ───────────────────────── */
.social-center { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px 0; }
.social-lbl { font-family: var(--heading); font-weight: 700; color: var(--text-soft); }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }

.social-chip {
  padding: 8px 20px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-soft);
  transition: all 0.25s;
}
.social-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ── Contact ──────────────────────── */
.contact-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start; padding: 80px 0;
}

.contact-title {
  font-family: var(--heading); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; margin-bottom: 12px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.contact-desc { font-size: 0.95rem; color: var(--text-soft); margin-bottom: 32px; line-height: 1.8; }

.ci-list { display: flex; flex-direction: column; gap: 16px; }
.ci-item { display: flex; gap: 14px; }
.ci-key { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); min-width: 64px; padding-top: 2px; }
.ci-val { font-size: 0.92rem; color: var(--text); }

.cform {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}

.cf-field { display: flex; flex-direction: column; gap: 5px; }
.cf-field label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.cf-field input,
.cf-field textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--body); font-size: 0.88rem;
  outline: none; transition: border-color 0.25s; resize: vertical;
}
.cf-field input:focus,
.cf-field textarea:focus { border-color: var(--accent); }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--text-dim); }

/* ── Footer ───────────────────────── */
.ft { border-top: 1px solid var(--border); }
.ft-row { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.ft-copy { font-size: 0.8rem; color: var(--text-dim); }
.ft-links { display: flex; gap: 20px; }
.ft-links a { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); transition: color 0.25s; }
.ft-links a:hover { color: var(--accent); }

/* ============================================================ ANIMATIONS
   Scroll-driven reveal, progressive enhancement only. The resting state is
   FULLY VISIBLE at rule level and lives outside every guard, so a browser
   without ViewTimeline support — or a same-origin preview iframe, where the
   timeline resolves to null — shows the complete page with nothing left to
   reveal. The hidden from-state exists only inside @keyframes. */
.an-slide, .an-pop { opacity: 1; }

/* Hero — above the fold, so it runs on a TIME timeline, not a scroll one:
   the hero is already on screen at load and a view() timeline would never
   advance for it. */
@media (prefers-reduced-motion: no-preference) {
  .hero .an-slide { animation: wb-chromatic-slide-in .9s cubic-bezier(.19,1,.22,1) both; }
  .hero .hero-tag.an-slide { animation-delay: .2s; }
  .hero .hero-name.an-slide { animation-delay: .28s; }
  .hero .hero-role.an-slide { animation-delay: .36s; }
  .hero .hero-chips.an-slide { animation-delay: .44s; }
  .hero .hero-bio.an-slide { animation-delay: .52s; }
  .hero .hero-details.an-slide { animation-delay: .6s; }
  .hero .hero-btns.an-slide { animation-delay: .68s; }
  .hero-photo.an-pop { animation: wb-chromatic-pop-in 1.1s cubic-bezier(.19,1,.22,1) .4s both; }

  /* Floating photo stats — always-on ambient float, no entrance tween in
     the original (only a continuous repeat:-1/yoyo:true wall-clock drift). */
  .photo-stat { animation: wb-chromatic-stat-float 2.9s ease-in-out infinite alternate; }
  .ps-2 { animation-duration: 3.3s; }
}
@keyframes wb-chromatic-slide-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; } }
@keyframes wb-chromatic-pop-in { from { opacity: 0; transform: scale(.85) rotate(-2deg); } to { opacity: 1; transform: rotate(0); } }
@keyframes wb-chromatic-stat-float { from { translate: 0 -10px; } to { translate: 0 10px; } }

/* Below-fold sections — CSS scroll-driven replacement for the per-element
   fade/rise-up tween, once per element, top 88 percent. Stagger is an
   animation-RANGE shift, never a delay: a wall-clock delay on a scroll
   timeline finishes long before the visitor arrives. Both ends stay inside
   entry so every reveal completes once the element has entered - an end
   anchored to cover would leave the last section of the page permanently
   part-transparent. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .an-slide:not(.hero *) {
      animation: wb-chromatic-up-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    :is(.skill-bars,.timeline,.edu-grid,.tool-hex-grid,.folio-masonry,.case-stack,.svc-row-list,.rev-grid) > .an-slide:nth-child(2) { animation-range: entry 8% entry 48%; }
    :is(.skill-bars,.timeline,.edu-grid,.tool-hex-grid,.folio-masonry,.case-stack,.svc-row-list,.rev-grid) > .an-slide:nth-child(3) { animation-range: entry 16% entry 56%; }
    :is(.skill-bars,.timeline,.edu-grid,.tool-hex-grid,.folio-masonry,.case-stack,.svc-row-list,.rev-grid) > .an-slide:nth-child(4) { animation-range: entry 24% entry 64%; }
    :is(.skill-bars,.timeline,.edu-grid,.tool-hex-grid,.folio-masonry,.case-stack,.svc-row-list,.rev-grid) > .an-slide:nth-child(5) { animation-range: entry 32% entry 72%; }
    :is(.skill-bars,.timeline,.edu-grid,.tool-hex-grid,.folio-masonry,.case-stack,.svc-row-list,.rev-grid) > .an-slide:nth-child(n+6) { animation-range: entry 40% entry 80%; }

    @keyframes wb-chromatic-up-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; } }
  }
}

/* Hero gradient parallax - the CSS scroll-driven replacement for this
   theme's only scrub tween (moving the gradient by x:-60,y:60 over
   start:'top top' to end:'bottom top'). `exit` is the named range meaning
   exactly that: from the moment the hero's top edge reaches the viewport
   top, to the moment its bottom edge does. `translate` rather than
   `transform` so it composes with, instead of clobbering, any preset
   transform on the gradient. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-gradient {
      animation: wb-chromatic-gradient-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}
@keyframes wb-chromatic-gradient-parallax { from { translate: 0 0; } to { translate: -60px 60px; } }

/* ── Responsive ───────────────────── */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 320px; margin: 0 auto; order: -1; }
  .photo-stat { display: none; }
  .case-block { grid-template-columns: 1fr; }
  .case-detail { padding: 24px; }
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hdr-burger { display: block; }
  .hdr-links {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    flex-direction: column; background: var(--bg);
    padding: 40px 24px; gap: 20px;
    transform: translateX(100%); transition: transform 0.3s var(--ease);
  }
  .hdr-links.open { transform: translateX(0); }

  .hero-layout { padding: 40px 0; }
  .hero-name { font-size: 2.2rem; }
  .hero-details { flex-direction: column; gap: 10px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .skill-row { grid-template-columns: 1fr; gap: 8px; }
  .skill-track { width: 100%; }
  .skill-pct { text-align: left; }
  .folio-masonry { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .tool-hex-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 12px; }
  .svc-idx { display: none; }
  .svc-icon { display: none; }
  .social-center { flex-direction: column; }
}

/* 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(.sect-tinted) .sect-chip { 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 {
  --text-dim: #878798; /* was #5e5e6e */
}

/* Hand contrast (Skin & Skeleton S2 dark-theme re-heal): on a light page the section chip and the impact label sit
   on an accent tint, so their accent reads darker there (a tinted section keeps its own lighter chip). */
.sect-chip:not(.sect-tinted *):where([data-wb-scheme="light"] *),
.impact-label:where([data-wb-scheme="light"] *) { color: oklch(from var(--accent) min(l, 0.42) c h / alpha); }
