/* ══════════════════════════════════════════════════════════════
   RESUME V3 — DEEP TEAL / FOREST DARK EDITORIAL
   Typography: Cormorant Garamond (display serif) + Space Mono (technical)
               + Outfit (UI body)
   ══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Core palette */
  --bg:          #0d1410;
  --surface:     #131a16;
  --surface-2:   #182019;
  --surface-3:   #1e2820;
  --text:        #e4ede6;
  --muted:       #6b7e70;
  --line:        #243028;
  --accent:      #5ecea0;
  --accent-dim:  rgba(94, 206, 160, 0.15);
  --accent-glow: rgba(94, 206, 160, 0.08);
  --warm:        #d4a96a;
  --white:       #f0f5f1;

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-mono:    'Space Mono', 'Courier New', monospace;
  --f-ui:      'Outfit', system-ui, sans-serif;

  /* Spacing / layout */
  --nav-h:   68px;
  --pad-x:   60px;
  --r:       5px;
  --r-lg:    12px;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t:       0.32s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── Scroll indicator line ──────────────────────────────────── */
.scroll-line {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  z-index: 300;
  transition: width 0.1s linear;
}

/* ── Container ──────────────────────────────────────────────── */
.sec-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

@media (max-width: 900px)  { :root { --pad-x: 32px; } }
@media (max-width: 600px)  { :root { --pad-x: 20px; } }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--wb-dark-surface, rgba(13, 20, 16, 0.94));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  gap: 40px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  flex-shrink: 0;
}

.logo-initials {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(94,206,160,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* Nav links */
.header-nav {
  display: flex;
  gap: 28px;
}

.hn-link {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 1px;
  transition: color var(--t);
}

.hn-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t);
}

.hn-link:hover, .hn-link.active { color: var(--text); }
.hn-link:hover::after, .hn-link.active::after { width: 100%; }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hdr-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(94,206,160,0.35);
  background: var(--accent-glow);
  padding: 8px 18px;
  border-radius: var(--r);
  transition: background var(--t), border-color var(--t), color var(--t);
}

.hdr-cv-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Burger */
.hdr-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 30px; height: 30px;
  align-items: center;
  justify-content: center;
}

.hdr-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* Mobile menu */
.header-mobile {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--wb-dark-surface, rgba(13,20,16,0.98));
  backdrop-filter: blur(20px);
  padding: 32px var(--pad-x) 40px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.header-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  display: block;
}

.hm-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.hm-link {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--t);
}

.hm-link:hover { color: var(--accent); }
.hdr-cv-btn--mobile { align-self: flex-start; }

@media (max-width: 960px) {
  .header-nav, .hdr-cv-btn:not(.hdr-cv-btn--mobile) { display: none; }
  .hdr-burger { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   SECTION SHARED COMPONENTS
   ══════════════════════════════════════════════════════════════ */
.sec-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px 24px;
  align-items: start;
  padding: 100px 0 56px;
}

.sec-num {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 10px;
}

.sec-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
  grid-column: 2;
  grid-row: 1;
}

.sec-sub {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  grid-column: 2;
  grid-row: 2;
  margin-top: -6px;
}

.mono-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(94,206,160,0.25);
  background: var(--accent-glow);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ══════════════════════════════════════════════════════════════
   RESUME — HERO BAND
   ══════════════════════════════════════════════════════════════ */
.section-resume {
  padding-top: var(--nav-h);
}

.hero-band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-cover-wrap {
  position: absolute;
  inset: 0;
}

.hero-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.3) brightness(0.7);
}

/* Geometric grid overlay */
.hero-cover-noise {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, transparent 50%, var(--bg) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(94,206,160,0.04) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(94,206,160,0.04) 60px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px var(--pad-x) 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-end;
}

.hero-eyebrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-role {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hchip {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: rgba(228,237,230,0.5);
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 2px;
}

/* Avatar */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-bottom: 8px;
}

.hero-avatar-ring {
  position: relative;
  width: 180px; height: 180px;
  flex-shrink: 0;
}

.hero-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(94,206,160,0.4);
  position: absolute;
  top: 10px; left: 10px;
  background: var(--surface-2);
}

/* Avatar placeholder via CSS */
.hero-avatar[src="assets/img/profile.jpg"] {
  background: var(--surface-2);
}

.avatar-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: rgba(94,206,160,0.2);
  animation: spin-slow 30s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Contact strip */
.hero-contact-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hcs-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color var(--t);
}

.hcs-item:hover { color: var(--accent); }
.hcs-item svg { flex-shrink: 0; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 11px 22px;
  border-radius: var(--r);
  margin-top: 4px;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.btn-hero:hover {
  background: #7ddbb5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94,206,160,0.2);
}

/* ── Summary Row ── */
.summary-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-top: 1px solid var(--line);
  padding-top: 36px;
  padding-bottom: 36px;
}

.summary-text {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 860px;
}

/* ── Skills + Experience Grid ── */
.re-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 80px;
}

.re-sidebar {
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.re-main {
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

.re-block {}

.re-block-title {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Skills */
.skills-ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-li {}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}

.skill-group {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-title {
  font-family: var(--f-ui);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text);
}

.skill-bar-wrap {
  height: 2px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(94,206,160,0.4), var(--accent));
  border-radius: 100px;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-bar-fill.animated { width: var(--lvl); }

/* Education */
.edu-ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edu-li {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.edu-li:last-child { border-bottom: none; padding-bottom: 0; }

.edu-degree {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 3px;
}

.edu-school {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.edu-dates {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.date-sep { color: var(--line); }

.edu-content {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Experience */
.exp-ol {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-li {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--t);
}

.exp-li:first-child { padding-top: 0; }
.exp-li:last-child { border-bottom: none; }

.exp-li::before {
  content: '';
  position: absolute;
  left: -49px;
  top: 32px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transition: border-color var(--t), background var(--t);
}

.exp-li:first-child::before { top: 0; }
.exp-li:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.exp-company {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.exp-role {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.exp-dates {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 4px;
}

.exp-content {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
  font-family: var(--f-ui);
}

/* ══════════════════════════════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════════════════════════════ */
.section-portfolio {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.port-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 100px;
}

/* First card spans full width */
.port-card--featured {
  grid-column: 1 / -1;
}

.port-card {
  background: var(--surface);
  transition: background var(--t);
}

.port-card:hover { background: var(--surface-2); }

.pc-link { display: block; }

.pc-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--surface-2);
}

.port-card--featured .pc-media { height: 340px; }

.pc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.4s;
  opacity: 0.6;
}

.port-card:hover .pc-media img {
  transform: scale(1.04);
  opacity: 0.85;
}

.pc-media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pc-media-fallback svg { width: 100%; height: 100%; }

.pc-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(13,20,16,0.5);
  transition: opacity var(--t);
}

.port-card:hover .pc-overlay { opacity: 1; }

.pc-cta {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(94,206,160,0.4);
  padding: 10px 22px;
  border-radius: var(--r);
  background: rgba(13,20,16,0.7);
  backdrop-filter: blur(4px);
}

.pc-body {
  padding: 24px 28px 28px;
}

.pc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pc-cat {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.pc-divider { color: var(--line); font-size: 0.7rem; }

.pc-tag {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pc-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.port-card--featured .pc-title {
  font-size: 2rem;
}

.pc-content {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  font-family: var(--f-ui);
}

/* ══════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════ */
.section-services {
  border-bottom: 1px solid var(--line);
}

.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 100px;
}

.svc-row {
  display: grid;
  grid-template-columns: 40px 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
  position: relative;
}

.svc-row:last-child { border-bottom: none; }

.svc-row:hover {
  background: var(--surface);
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 -20px;
}

.svc-index {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--line);
  flex-shrink: 0;
}

.svc-img-wrap {
  width: 72px; height: 72px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  position: relative;
}

.svc-img-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.svc-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.svc-body {}

.svc-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}

.svc-subtitle {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.svc-content {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  font-family: var(--f-ui);
  max-width: 480px;
}

.svc-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.svc-price {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.svc-cta {
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: letter-spacing var(--t), color var(--t);
}

.svc-cta:hover {
  letter-spacing: 0.16em;
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════ */
.section-testimonials {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-header--light .sec-title { color: var(--white); }

.testi-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 100px;
}

.testi-fig {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}

.testi-fig::before {
  content: '\201C';
  position: absolute;
  top: 8px; right: 20px;
  font-family: var(--f-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
}

.testi-fig:hover {
  border-color: rgba(94,206,160,0.25);
  transform: translateY(-4px);
}

.testi-avatar-wrap {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.testi-avatar {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.testi-avatar-ph {
  position: absolute;
  inset: 0;
  background: var(--surface-3);
}

.testi-bq {
  flex-grow: 1;
}

.testi-bq p {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

.testi-cap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testi-cap strong {
  font-family: var(--f-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
}

.testi-cap span {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   SOCIAL
   ══════════════════════════════════════════════════════════════ */
.section-social {
  border-bottom: 1px solid var(--line);
}

.social-inner {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.social-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  flex-wrap: wrap;
}

.sl-item {}

.sl-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 12px 20px;
  transition: background var(--t), color var(--t);
}

.sl-link:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.sl-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.sl-arrow {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
  transform: translateX(-4px);
}

.sl-link:hover .sl-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.section-contact {
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: flex-start;
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-left > .sec-num {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.contact-heading {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
}

.contact-heading em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.contact-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 380px;
  font-family: var(--f-ui);
}

.contact-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

.contact-addr svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }

.contact-map-wrap {
  height: 220px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact-map-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  filter: invert(0.88) hue-rotate(180deg) saturate(0.25) brightness(0.9);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cf-field input,
.cf-field textarea,
.cf-field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 0.88rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  resize: none;
  appearance: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: rgba(94,206,160,0.5);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(94,206,160,0.06);
}

.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 15px 32px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  align-self: flex-start;
  width: 100%;
}

.cf-submit:hover {
  background: #7ddbb5;
  border-color: #7ddbb5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94,206,160,0.15);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.footer-legal {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--t);
}

.footer-top:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS — REVEAL ON SCROLL
   ══════════════════════════════════════════════════════════════ */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers */
.sr-d1 { transition-delay: 0.08s; }
.sr-d2 { transition-delay: 0.16s; }
.sr-d3 { transition-delay: 0.24s; }
.sr-d4 { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
   ══════════════════════════════════════════════════════════════ */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: rgba(94,206,160,0.22);
  color: var(--white);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .re-grid { grid-template-columns: 260px 1fr; }
  .svc-row { grid-template-columns: 40px 60px 1fr auto; gap: 24px; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-right { flex-direction: row; justify-content: flex-start; align-items: center; }
  .hero-avatar-ring { width: 120px; height: 120px; }
  .hero-avatar { width: 104px; height: 104px; }

  .re-grid { grid-template-columns: 1fr; }
  .re-sidebar { padding-right: 0; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
  .re-main { padding-left: 0; padding-top: 48px; border-left: none; }
  .exp-li::before { display: none; }

  .port-grid { grid-template-columns: 1fr; }
  .port-card--featured { grid-column: 1; }

  .svc-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .svc-index { display: none; }
  .svc-aside { flex-direction: row; align-items: center; justify-content: space-between; }

  .testi-mosaic { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .cf-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .sec-header { grid-template-columns: 36px 1fr; }
  .hero-name { line-height: 0.92; }
  .social-links { flex-direction: column; width: 100%; }
  .sl-link { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
}

/* Hide wire:loading elements before Livewire mounts (mirrors Livewire's runtime CSS) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

/* WoBooks empty-image guard (theme:editor-compliance --fix --scope=img-empty-guard):
   image_url('') renders <img src=""> until the owner uploads a photo — hide it
   instead of leaking the browser's broken-image icon + alt text onto the page. */
img[src=""], img:not([src]) { display: none !important; }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --muted: #718476; /* was #6b7e70 */
}

/* 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. */
@media not all and (max-width: 900px) { :where([data-section="services"]) .svc-index { color: oklch(from var(--line) max(l, 0.615) 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. */
:root {
  --muted: #778a7c; /* was #718476 */
}
