/* Mosaic — Bento Grid Designer Resume */

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

:root {
  --bg: #f5f5f0;
  --bg-alt: #edeee8;
  --bg-dark: #1c1c1c;
  --mint: #10b981;
  --mint-soft: rgba(16,185,129,0.1);
  --mint-border: rgba(16,185,129,0.25);
  --mint-glow: rgba(16,185,129,0.2);
  --text: #1a1a1a;
  --text-soft: #5a5a5a;
  --text-dim: #999;
  --text-inv: #f5f5f0;
  --border: #ddd;
  --card: #fff;
  --heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }

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

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 ──────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--background, rgba(245,245,240,0.92));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.topbar-logo {
  font-family: var(--mono); font-size: 1.1rem; font-weight: 500;
  color: var(--mint); letter-spacing: -0.02em;
}

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

.topbar-nav { display: flex; list-style: none; gap: 24px; align-items: center; }
.topbar-nav a {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.25s;
}
.topbar-nav a:hover { color: var(--text); }

.topbar-cta {
  padding: 7px 20px !important; border-radius: var(--r);
  background: var(--text) !important; color: var(--text-inv) !important;
  font-weight: 500 !important;
}
.topbar-cta:hover { background: var(--mint) !important; }

/* ── Mono tag ─────────────────────── */
.mono-tag {
  display: block; font-family: var(--mono);
  font-size: 0.7rem; font-weight: 500;
  color: var(--mint); margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* ── Buttons ──────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 28px; border-radius: var(--r);
  font-size: 0.82rem; font-weight: 600; font-family: var(--heading);
  cursor: pointer; border: none; transition: all 0.3s var(--ease);
}

.btn-mint { background: var(--mint); color: #fff; }
.btn-mint:hover { background: #059669; transform: translateY(-2px); box-shadow: 0 6px 24px var(--mint-glow); }

.btn-border { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-border:hover { border-color: var(--mint); color: var(--mint); }

.btn-full { width: 100%; }

/* ── Hero Bento ───────────────────── */
.hero {
  position: relative; padding-top: 64px;
  min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}

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

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

/* Photo tile */
.bento-photo {
  position: relative; grid-row: 1 / 2;
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 3/4; background: var(--bg-alt);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }

.bento-photo-border {
  position: absolute; inset: 0; border-radius: var(--r-xl);
  border: 2px solid var(--mint-border); pointer-events: none;
}

.bento-badge {
  position: absolute; bottom: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(10px);
  font-size: 0.72rem; font-weight: 600; color: var(--text);
}

.badge-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; animation: bpulse 2s infinite;
}
@keyframes bpulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* Info tile */
.bento-info { grid-row: 1 / 2; padding: 20px 0; }

.bento-name {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.04em; margin-bottom: 6px;
}

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

.bento-chips {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mint); margin-bottom: 18px;
}

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

/* Contact row inside hero */
.hero-contact-row {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}

.hcr-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-soft);
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.hcr-item:hover { border-color: var(--mint); }
.hcr-item svg { color: var(--mint); flex-shrink: 0; }

/* Hero buttons */
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Segments ─────────────────────── */
.seg { padding: 80px 0; }
.seg-alt { background: var(--bg-alt); }
.seg-mint { background: var(--bg-dark); color: var(--text-inv); }

.seg-head { margin-bottom: 36px; }

.seg-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
}

/* ── Skills ───────────────────────── */
.skill-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.skill-tile {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 16px 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.skill-tile:hover { border-color: var(--mint); }

.st-group {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--mint); writing-mode: vertical-lr; transform: rotate(180deg);
}

.st-name { font-size: 0.92rem; font-weight: 600; margin-bottom: 6px; }

.st-meter { height: 5px; background: var(--bg-alt); border-radius: 999px; overflow: clip; margin-top: 4px; }
.st-fill { height: 100%; background: var(--mint); border-radius: 999px; transform-origin: left; font-size: 0; color: transparent; }

.st-pct { font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); font-weight: 500; }
.st-pct::after { content: '%'; }

/* ── Experience ───────────────────── */
.xp-stack { display: flex; flex-direction: column; gap: 12px; }

.xp-card {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 20px; padding: 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.3s;
}
.xp-card:hover { border-color: var(--mint); }

.xp-period {
  font-family: var(--mono); font-size: 0.75rem; color: var(--mint);
  font-weight: 500; white-space: nowrap;
}

.xp-role { font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; }
.xp-co { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 6px; }
.xp-desc { font-size: 0.84rem; color: var(--text-dim); line-height: 1.7; }

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

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

.edu-yr { font-family: var(--mono); font-size: 0.75rem; color: var(--mint); font-weight: 500; display: block; margin-bottom: 6px; }
.edu-deg { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.edu-inst { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 6px; }
.edu-note { font-size: 0.82rem; color: var(--text-dim); }

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

.tool-block {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.tool-block:hover { border-color: var(--mint); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }

.tb-icon {
  width: 48px; height: 48px; border-radius: var(--r);
  background: var(--mint-soft); border: 1px solid var(--mint-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  color: var(--mint); flex-shrink: 0;
}

.tb-info { flex: 1; min-width: 0; }
.tb-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 1px; }
.tb-cat { font-family: var(--mono); font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.tb-bar { width: 60px; height: 4px; background: var(--bg-alt); border-radius: 999px; overflow: clip; flex-shrink: 0; }
.tb-fill { height: 100%; background: var(--mint); border-radius: 999px; transform-origin: left; font-size: 0; color: transparent; }

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

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

.ft-img {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 16/10; background: var(--bg-alt); margin-bottom: 14px;
  border: 1px solid var(--border);
}
.ft-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.folio-tile:hover .ft-img img { transform: scale(1.04); }

.ft-over {
  position: absolute; inset: 0; background: rgba(26,26,26,0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transition: opacity 0.3s;
}
.folio-tile:hover .ft-over { opacity: 1; }

.ft-cat { font-family: var(--mono); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mint); }
.ft-link {
  padding: 8px 22px; border: 1.5px solid var(--mint); border-radius: var(--r);
  font-size: 0.78rem; font-weight: 600; color: var(--mint); transition: 0.25s;
}
.ft-link:hover { background: var(--mint); color: #fff; }

.ft-name { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.ft-desc { font-size: 0.84rem; color: var(--text-soft); }

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

.case-row {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all 0.35s var(--ease);
}
.case-row:hover { border-color: var(--mint); box-shadow: 0 12px 36px rgba(0,0,0,0.04); }

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

.cr-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.cr-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }

.cr-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cr-tag {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-soft);
}

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

.cr-impact {
  padding: 10px 14px; border-left: 3px solid var(--mint);
  background: var(--mint-soft); border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 14px; font-size: 0.85rem;
}
.cr-il { font-family: var(--mono); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mint); }
.cr-iv { color: var(--text); display: block; margin-top: 2px; }

.cr-more { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--mint); transition: color 0.25s; }
.cr-more:hover { color: var(--text); }

/* ── Services ─────────────────────── */
.svc-bento {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.svc-tile {
  position: relative; padding: 28px 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all 0.3s var(--ease);
}
.svc-tile:hover { border-color: var(--mint); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.04); }

.svc-idx {
  position: absolute; top: 14px; right: 18px;
  font-size: 2.4rem; font-weight: 800; color: var(--bg-alt);
  line-height: 1; pointer-events: none; transition: color 0.3s;
}
.svc-tile:hover .svc-idx { color: var(--mint-soft); }

.svc-ic { width: 42px; height: 42px; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; background: var(--mint-soft); }
.svc-ic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.svc-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.svc-sub { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 10px; }
.svc-body { font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.svc-price { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--mint); }

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

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

.rv-stars { color: #f59e0b; font-size: 0.88rem; letter-spacing: 3px; margin-bottom: 14px; }

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

.rv-footer { display: flex; align-items: center; gap: 12px; }
.rv-avi { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); border: 1px solid var(--border); }
.rv-name { font-size: 0.88rem; font-style: normal; font-weight: 600; display: block; }
.rv-role { font-size: 0.72rem; color: var(--text-dim); }

/* ── Social ───────────────────────── */
.social-row { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px 0; }
.social-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.social-pill {
  padding: 8px 20px; border: 1.5px solid var(--border); border-radius: var(--r);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  color: var(--text-soft); transition: all 0.25s;
}
.social-pill:hover { border-color: var(--mint); color: var(--mint); background: var(--mint-soft); }

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

.cb-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 10px; color: var(--mint);
}
.cb-sub { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 28px; line-height: 1.8; }

.cb-details { display: flex; flex-direction: column; gap: 12px; }
.cb-row { display: flex; gap: 14px; }
.cb-k { font-family: var(--mono); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mint); min-width: 60px; padding-top: 2px; }
.cb-v { font-size: 0.9rem; }

.cb-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--r-xl);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
}

.cf { display: flex; flex-direction: column; gap: 5px; }
.cf label { font-family: var(--mono); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.cf input,
.cf textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r); color: var(--text-inv);
  font-family: var(--heading); font-size: 0.88rem;
  outline: none; transition: border-color 0.25s; resize: vertical;
}
.cf input:focus,
.cf textarea:focus { border-color: var(--mint); }
.cf input::placeholder,
.cf textarea::placeholder { color: #666; }

/* ── 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-family: var(--mono); font-size: 0.7rem; font-weight: 500; color: var(--text-dim); transition: color 0.25s; }
.ft-links a:hover { color: var(--mint); }

/* ── Hero entrance — time-based, above the fold ───────────────────── */
.hv { opacity: 0; transform: translateY(24px); animation: hv-in .8s ease-out .3s forwards; }
.hv-d1 { animation-delay: .55s; }
@keyframes hv-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hv { opacity: 1; transform: none; animation: none; }
  .badge-pulse { animation: none; }
}

/* ══════════════════════════════════════
   ANIMATIONS — scroll-driven reveal, progressive enhancement only.
   The resting state is FULLY VISIBLE and lives outside every guard, so a browser
   with no scroll timeline — or a stylesheet that arrives late — can never strand
   any section behind it. The hidden from-state lives ONLY inside the @keyframes,
   never in the rule. Only opacity and transform animate: nothing reflows.
   ══════════════════════════════════════ */
.ao { opacity: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ao { animation: ao-in linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }

    /* Group 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. */
    :is(.skill-tiles, .xp-stack, .edu-cards, .tool-bento, .folio-bento, .case-list, .svc-bento, .rev-bento, .social-pills) > .ao:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.skill-tiles, .xp-stack, .edu-cards, .tool-bento, .folio-bento, .case-list, .svc-bento, .rev-bento, .social-pills) > .ao:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.skill-tiles, .xp-stack, .edu-cards, .tool-bento, .folio-bento, .case-list, .svc-bento, .rev-bento, .social-pills) > .ao:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.skill-tiles, .xp-stack, .edu-cards, .tool-bento, .folio-bento, .case-list, .svc-bento, .rev-bento, .social-pills) > .ao:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.skill-tiles, .xp-stack, .edu-cards, .tool-bento, .folio-bento, .case-list, .svc-bento, .rev-bento, .social-pills) > .ao:nth-child(n+6) { animation-range: entry 40% entry 78%; }

    /* The bar grows along its own axis. The author's inline width stays the
       resting width, so the track never reflows while it fills. */
    .st-fill, .tb-fill { animation: bar-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }

    @keyframes ao-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; } }
    @keyframes bar-fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* ── Responsive ───────────────────── */
@media (max-width: 1024px) {
  .bento-hero { grid-template-columns: 1fr; gap: 32px; }
  .bento-photo { max-width: 300px; margin: 0 auto; aspect-ratio: 1; }
  .case-row { grid-template-columns: 1fr; }
  .cr-body { padding: 22px; }
  .contact-bento { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar-toggle { display: block; }
  .topbar-nav {
    position: fixed; top: 64px; 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);
  }
  .topbar-nav.open { transform: translateX(0); }

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

  .skill-tiles { grid-template-columns: 1fr; }
  .xp-card { grid-template-columns: 1fr; gap: 6px; }
  .folio-bento { grid-template-columns: 1fr; }
  .svc-bento { grid-template-columns: 1fr; }
  .rev-bento { grid-template-columns: 1fr; }
  .edu-cards { grid-template-columns: 1fr; }
  .tool-bento { grid-template-columns: 1fr; }
  .social-row { 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; }

/* 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. */
.st-group { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.st-pct { color: oklch(from var(--text-dim) min(l, 0.543) c h / alpha); }
.tb-icon { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.tb-cat { color: oklch(from var(--text-dim) min(l, 0.543) c h / alpha); }
.cr-il { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.cr-more { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.svc-idx { color: oklch(from var(--bg-alt) min(l, 0.627) c h / alpha); }
.svc-body { color: oklch(from var(--text-dim) min(l, 0.543) c h / alpha); }
.svc-price { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.ft-links a { color: oklch(from var(--text-dim) min(l, 0.543) c h / alpha); }
.ft-copy { color: oklch(from var(--text-dim) min(l, 0.543) c h / alpha); }
.topbar-logo { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.bento-chips { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.xp-period { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.xp-desc { color: oklch(from var(--text-dim) min(l, 0.543) 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. */
:where([data-section="resume"]) .mono-tag { color: oklch(from var(--mint) min(l, 0.446) c h / alpha); }
:where([data-section="design_tools"]) .mono-tag { color: oklch(from var(--mint) min(l, 0.446) c h / alpha); }
:where([data-section="case_studies"]) .mono-tag { color: oklch(from var(--mint) min(l, 0.446) c h / alpha); }
:where([data-section="portfolio"]) .mono-tag { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
:where([data-section="services"]) .mono-tag { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
:where([data-section="social"]) .mono-tag { color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
.btn-mint { background-color: oklch(from var(--mint) min(l, 0.506) c h / alpha); }
