/* Artisan — Light Minimal Designer Resume */

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

:root {
  --bg: #fafaf8;
  --bg-alt: #f2f1ed;
  --bg-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-soft: #6b6b6b;
  --text-dim: #a0a0a0;
  --text-inv: #fafaf8;
  --accent: #c8a97e;
  --accent-dark: #b08f60;
  --border: #e4e2dd;
  --border-dark: #333;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --max: 1140px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  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; }

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

/* ── Header ─────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--background, rgba(250, 250, 248, 0.92));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

.nav-burger {
  display: none; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text);
}
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

.nav-links {
  display: flex; list-style: none; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-soft);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 20px;
  background: var(--text);
  color: var(--text-inv) !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ── Hero ────────────────────────────── */
.hero {
  position: relative;
  padding-top: 64px;
  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 portrait
     parallax below would simply never run. `clip` clips identically
     without creating one. */
  overflow: clip;
}

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

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

.overline {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.15rem; color: var(--text-soft); margin-bottom: 12px;
}

.hero-chips {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

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

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}

.meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-soft);
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.meta-pill svg { color: var(--accent-dark); flex-shrink: 0; }

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

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

.btn-dark { background: var(--text); color: var(--text-inv); }
.btn-dark:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }

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

.btn-full { width: 100%; }

/* Portrait */
.hero-portrait { position: relative; }

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

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

.section-label {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

/* ── Skills marquee ──────────────────── */
.skills-marquee {
  display: flex; flex-wrap: wrap; gap: 10px;
}

.skill-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition: all 0.3s var(--ease);
}
.skill-pill:hover { border-color: var(--accent); background: rgba(200,169,126,0.06); }

.skill-name { font-size: 0.9rem; font-weight: 500; }
.skill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.skill-level { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.skill-level::after { content: '%'; }

/* ── Experience / Education ──────────── */
.exp-list { display: flex; flex-direction: column; }

.exp-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.exp-row:last-child { border-bottom: none; }

.exp-dates { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.exp-role { font-size: 1.05rem; font-weight: 600; margin-bottom: 2px; }
.exp-company { font-size: 0.9rem; color: var(--accent-dark); margin-bottom: 6px; }
.exp-desc { font-size: 0.88rem; color: var(--text-soft); line-height: 1.7; }

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

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

.tool-ring {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 12px;
}

.tool-arc { width: 100%; height: 100%; transform: rotate(-90deg); }
.tool-arc circle { transition: stroke-dashoffset 1.2s var(--ease); }

.tool-abbr {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem; font-style: italic;
  color: var(--text);
}

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

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

.work-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.work-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-card:hover .work-thumb img { transform: scale(1.04); }

.work-info { padding: 20px 24px; }
.work-cat {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 6px; display: block;
}
.work-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.work-desc { font-size: 0.85rem; color: var(--text-soft); }

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

.case-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.case-row:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.06); border-color: var(--accent); }

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

.case-body { padding: 32px 32px 32px 0; display: flex; flex-direction: column; justify-content: center; }
.case-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }

.case-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.case-tag {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
}

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

.case-result {
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(200,169,126,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
}
.result-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-dark); display: block; margin-bottom: 2px; }
.result-value { font-size: 0.9rem; color: var(--text); }

.link-arrow {
  font-size: 0.85rem; font-weight: 600; color: var(--accent-dark);
  transition: color 0.25s;
}
.link-arrow:hover { color: var(--text); }

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

.svc-card {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
  overflow: hidden;
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.06); }

.svc-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--serif); font-size: 2.5rem; font-style: italic;
  color: var(--bg-alt); line-height: 1;
  transition: color 0.3s;
}
.svc-card:hover .svc-num { color: rgba(200,169,126,0.15); }

.svc-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.svc-sub { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 10px; }
.svc-body { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.svc-price { font-size: 0.85rem; font-weight: 700; color: var(--accent-dark); }

/* ── Testimonials ────────────────────── */
.testi-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.testi-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}
.testi-card:hover { border-color: var(--accent); }

.testi-quote {
  font-family: var(--serif);
  font-size: 1.05rem; font-style: italic;
  line-height: 1.8; color: var(--text);
  margin-bottom: 24px;
}
.testi-quote::before { content: '\201C'; font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -0.3em; margin-right: 4px; }

.testi-footer { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); }
.testi-name { font-size: 0.9rem; font-weight: 600; font-style: normal; display: block; }
.testi-role { font-size: 0.78rem; color: var(--text-dim); }

/* ── Social ──────────────────────────── */
.social-strip {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 24px 0;
}
.social-label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text-soft); }
.social-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.social-pill {
  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-pill:hover { border-color: var(--accent); color: var(--accent-dark); background: rgba(200,169,126,0.06); }

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

.contact-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic; font-weight: 400;
  margin-bottom: 12px;
}
.contact-sub { font-size: 1rem; color: var(--text-dim); margin-bottom: 32px; line-height: 1.7; }

.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.ci-row { display: flex; gap: 16px; }
.ci-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); min-width: 60px; padding-top: 2px; }
.ci-value { font-size: 0.95rem; color: var(--text-inv); }

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.field input,
.field textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--text-inv);
  font-family: var(--sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.25s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder { color: #555; }

/* ── Footer ──────────────────────────── */
.footer { border-top: 1px solid var(--border); }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); transition: color 0.25s;
}
.footer-links a:hover { color: var(--text); }

/* ============================================================ 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. */
.anim-up, .hero-portrait.anim-scale { 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 .anim-up { animation: wb-artisan-rise .9s cubic-bezier(.19,1,.22,1) both; }
  .hero .overline.anim-up { animation-delay: .15s; }
  .hero .hero-name.anim-up { animation-delay: .22s; }
  .hero .hero-title.anim-up { animation-delay: .29s; }
  .hero .hero-chips.anim-up { animation-delay: .36s; }
  .hero .hero-bio.anim-up { animation-delay: .43s; }
  .hero .hero-meta.anim-up { animation-delay: .5s; }
  .hero .hero-btns.anim-up { animation-delay: .57s; }
  .hero-portrait.anim-scale { animation: wb-artisan-scale-in 1.1s cubic-bezier(.19,1,.22,1) .5s both; }
}
@keyframes wb-artisan-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; } }
@keyframes wb-artisan-scale-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; } }

/* Below-fold sections — CSS scroll-driven replacement for the old
   per-element fade/rise-up tween, once per element (top 88%). 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) {
    :is(.section-label,.skill-pill,.exp-row,.tool-node,.work-card,.case-row,.svc-card,.testi-card,.contact-left).anim-up {
      animation: wb-artisan-up-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    :is(.skills-marquee,.exp-list,.tools-orbit,.work-grid,.cases-stack,.svc-grid,.testi-slider) > .anim-up:nth-child(2) { animation-range: entry 8% entry 48%; }
    :is(.skills-marquee,.exp-list,.tools-orbit,.work-grid,.cases-stack,.svc-grid,.testi-slider) > .anim-up:nth-child(3) { animation-range: entry 16% entry 56%; }
    :is(.skills-marquee,.exp-list,.tools-orbit,.work-grid,.cases-stack,.svc-grid,.testi-slider) > .anim-up:nth-child(4) { animation-range: entry 24% entry 64%; }
    :is(.skills-marquee,.exp-list,.tools-orbit,.work-grid,.cases-stack,.svc-grid,.testi-slider) > .anim-up:nth-child(5) { animation-range: entry 32% entry 72%; }
    :is(.skills-marquee,.exp-list,.tools-orbit,.work-grid,.cases-stack,.svc-grid,.testi-slider) > .anim-up:nth-child(n+6) { animation-range: entry 40% entry 80%; }

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

/* Hero portrait parallax — the CSS scroll-driven replacement for this
   theme's only scroll-scrub tween (trigger '.hero', start 'top top',
   end 'bottom top', moving the frame by `y: 30`). `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
   hover/preset transform on the frame. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portrait-frame {
      animation: wb-artisan-portrait-parallax linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}
@keyframes wb-artisan-portrait-parallax { from { translate: 0 0; } to { translate: 0 30px; } }

/* ── Responsive ──────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { max-width: 320px; margin: 0 auto; }
  .case-row { grid-template-columns: 1fr; }
  .case-body { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

  .hero-grid { padding: 40px 0; }
  .hero-name { font-size: 2.5rem; }
  .hero-meta { flex-direction: column; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .exp-row { grid-template-columns: 1fr; gap: 8px; }
  .work-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .testi-slider { grid-template-columns: 1fr; }
  .tools-orbit { grid-template-columns: repeat(3, 1fr); }

  .social-strip { 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(.section-dark) .ci-label { color: oklch(from var(--accent) max(l, 0.75) c h); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --accent-dark: #856537; /* was #b08f60 */
  --bg-alt: #8c8b88; /* was #f2f1ed */
}

/* 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. */
.exp-dates { color: oklch(from var(--text-dim) min(l, 0.516) c h / alpha); }
.skill-level { color: oklch(from var(--text-dim) min(l, 0.566) c h / alpha); }
.svc-body { color: oklch(from var(--text-dim) min(l, 0.566) c h / alpha); }
.footer-links a { color: oklch(from var(--text-dim) min(l, 0.516) c h / alpha); }
.footer-copy { color: oklch(from var(--text-dim) min(l, 0.516) c h / alpha); }
