/* ══════════════════════════════════════
   PRISM — Dark Brutalist Designer Portfolio
   Palette : #0E0E0E bg · #DAFF00 neon · #FFFFFF
   Fonts   : Space Grotesk (display) + JetBrains Mono (mono)
   ══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

:root {
  --bg:       #0E0E0E;
  --bg-2:     #161616;
  --bg-3:     #1E1E1E;
  --ink:       #FFFFFF;
  --ink-2:     #A0A0A0;
  --ink-3:     #5A5A5A;
  --yellow:    #DAFF00;
  --yellow-d:  #B8D800;
  --border:    #2A2A2A;
  --border-2:  #383838;
  --font-d:   'Space Grotesk', sans-serif;
  --font-m:   'JetBrains Mono', monospace;
  --nav-h:    60px;
  --wrap:     1200px;
}

body {
  font-family: var(--font-d);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.ao  { opacity: 1; }


/* ── Topbar ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: var(--wb-dark-surface, rgba(14,14,14,0.95));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.topbar.scrolled { border-color: var(--border-2); }
.topbar-row {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-logo {
  font-family: var(--font-d);
  font-size: 16px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 14px; height: 14px; fill: var(--bg); }
.topbar-nav { display: flex; align-items: center; gap: 0; }
.topbar-nav a {
  font-family: var(--font-m);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-2); padding: 7px 13px;
  transition: color 0.2s;
}
.topbar-nav a:hover { color: var(--yellow); }
.nav-cta {
  background: var(--yellow) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  margin-left: 10px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--yellow-d) !important; transform: translateY(-1px) !important; }

.topbar-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.topbar-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 0; transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 840px) {
  .topbar-toggle { display: flex; }
  .topbar-nav {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-2); padding: 1.5rem; gap: 4px;
    transform: translateX(100%); transition: transform 0.3s;
    border-top: 1px solid var(--border); overflow-y: auto;
  }
  .topbar-nav.open { transform: translateX(0); }
  .topbar-nav a { padding: 13px 16px; font-size: 13px; }
  .nav-cta { text-align: center; margin: 6px 0 0 !important; }
}


/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-d); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform 0.15s, background 0.2s, color 0.2s;
  white-space: nowrap; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow  { background: var(--yellow); color: var(--bg); }
.btn-yellow:hover { background: var(--yellow-d); }
.btn-stroke  { background: transparent; color: var(--ink); border: 2px solid var(--border-2); }
.btn-stroke:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-full { width: 100%; justify-content: center; }


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
}

/* Top: large name + photo row */
.hero-top {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  border-bottom: 1px solid var(--border);
}

/* Name block */
.hero-name-block {
  padding: clamp(3rem,6vw,5rem) clamp(2rem,4vw,3.5rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-right: 1px solid var(--border);
  position: relative;
}
/* Yellow corner accent */
.hero-name-block::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 80px; height: 4px;
  background: var(--yellow);
}

.hero-eyebrow {
  font-family: var(--font-m);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '//'; color: var(--ink-3); margin-right: 2px;
}

.hero-name {
  font-family: var(--font-d);
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 32px;
}
/* Outlined / stroke second word */
.hero-name .stroke {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  display: block;
}

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.hero-role-tag {
  font-family: var(--font-m);
  font-size: 12px; color: var(--ink-2);
  letter-spacing: 0.04em;
  border: 1px solid var(--border-2);
  padding: 6px 14px;
}
.hero-chips {
  font-family: var(--font-m);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.05em;
}

/* Photo block */
.hero-photo-block {
  position: relative; overflow: hidden;
  background: var(--bg-3);
}
.hero-photo-block img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.85;
  display: block;
}
.hero-photo-block::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(218,255,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-avail {
  position: absolute; top: 20px; right: 20px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(14,14,14,0.85);
  border: 1px solid var(--border-2);
  padding: 8px 14px;
  font-family: var(--font-m); font-size: 11px;
  color: var(--ink-2); letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.avail-dot {
  width: 7px; height: 7px;
  background: #22C55E;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Bottom row: bio + contact + buttons */
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.hb-cell {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}
.hb-cell:last-child { border-right: none; }
.hb-label {
  font-family: var(--font-m);
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px; display: block;
}
.hb-bio {
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.hb-contact { display: flex; flex-direction: column; gap: 12px; }
.hc-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2);
}
.hc-row svg { color: var(--yellow); flex-shrink: 0; }
.hb-btns { display: flex; flex-direction: column; gap: 10px; justify-content: center; }

/* Stats strip */
.hero-stats {
  display: flex;
  border-top: 1px solid var(--border);
}
.hs-cell {
  flex: 1; padding: 20px 32px;
  border-right: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 6px;
}
.hs-cell:last-child { border-right: none; }
.hs-num {
  font-family: var(--font-d);
  font-size: 32px; font-weight: 700;
  color: var(--yellow); line-height: 1;
}
.hs-label {
  font-family: var(--font-m);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-photo-block { height: 380px; border-right: none; }
  .hero-name-block { border-right: none; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hb-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .hb-cell:last-child { border-bottom: none; }
  .hero-stats { flex-wrap: wrap; }
  .hs-cell { flex: 1 1 33%; }
}
@media (max-width: 520px) {
  .hs-cell { flex: 1 1 50%; }
  .hero-name { font-size: clamp(52px, 16vw, 80px); }
}


/* ══════════════════════════════════════
   SECTIONS SHARED
   ══════════════════════════════════════ */
.seg { padding: 80px 0; border-bottom: 1px solid var(--border); }
.seg-alt { background: var(--bg-2); }

.seg-head { margin-bottom: 48px; }
.seg-num {
  font-family: var(--font-m);
  font-size: 11px; color: var(--yellow);
  letter-spacing: 0.1em; margin-bottom: 6px; display: block;
}
.seg-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; line-height: 1.05;
  color: var(--ink); letter-spacing: -0.03em;
}
.seg-title em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}


/* ══════════════════════════════════════
   SKILLS
   ══════════════════════════════════════ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.skill-card {
  background: var(--bg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s;
}
.skill-card:hover { background: var(--bg-2); }
.sk-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.sk-cat {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--yellow);
}
.sk-pct {
  font-family: var(--font-d); font-size: 28px; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.sk-name { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sk-bar  { height: 2px; background: var(--border-2); overflow:clip; }
.sk-fill {
  height: 100%;
  background: var(--yellow);
  transform-origin: left;
  font-size: 0; color: transparent;
}


/* ══════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════ */
.xp-list { display: flex; flex-direction: column; }
.xp-row {
  display: grid; grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.xp-row:hover { background: var(--bg-2); }
.xp-left {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}
.xp-period {
  font-family: var(--font-m); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.04em;
  line-height: 1.7;
}
.xp-right { padding: 28px 32px; }
.xp-role {
  font-family: var(--font-d); font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.xp-co {
  font-family: var(--font-m); font-size: 12px;
  color: var(--yellow); letter-spacing: 0.04em; margin-bottom: 12px;
}
.xp-desc { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

@media (max-width: 580px) {
  .xp-row { grid-template-columns: 1fr; }
  .xp-left { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .xp-right { padding: 20px; }
}


/* ══════════════════════════════════════
   EDUCATION
   ══════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.edu-card {
  background: var(--bg); padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  transition: background 0.2s;
}
.edu-card:hover { background: var(--bg-2); }
.edu-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 40px; height: 2px;
  background: var(--yellow);
}
.edu-yr {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--yellow); display: block;
}
.edu-deg {
  font-family: var(--font-d); font-size: 17px; font-weight: 700;
  color: var(--ink);
}
.edu-inst {
  font-family: var(--font-m); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.03em;
}
.edu-note { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin-top: 4px; }


/* ══════════════════════════════════════
   DESIGN TOOLS
   ══════════════════════════════════════ */
.tool-list { display: flex; flex-direction: column; }
.tool-row {
  display: grid; grid-template-columns: 52px 1fr 80px 100px;
  align-items: center; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  transition: background 0.15s;
}
.tool-row:first-child { border-top: 1px solid var(--border); }
.tool-row:hover { background: var(--bg-2); }
.tc-idx {
  font-family: var(--font-m); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.06em;
  text-align: center;
}
.tc-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.tc-cat  {
  font-family: var(--font-m); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.tc-bar-wrap { display: flex; align-items: center; gap: 10px; }
.tc-bar { flex: 1; height: 2px; background: var(--border-2); overflow:clip; }
.tc-fill {
  height: 100%;
  background: var(--yellow);
  transform-origin: left;
  font-size: 0; color: transparent;
}
.tc-pct {
  font-family: var(--font-m); font-size: 11px;
  color: var(--ink-3); min-width: 30px; text-align: right;
}

@media (max-width: 600px) {
  .tool-row { grid-template-columns: 40px 1fr 60px; }
  .tc-cat { display: none; }
}


/* ══════════════════════════════════════
   PORTFOLIO
   ══════════════════════════════════════ */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.folio-tile {
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: background 0.2s;
  overflow: hidden;
}
.folio-tile:hover { background: var(--bg-2); }
.ft-img {
  position: relative; aspect-ratio: 16/10;
  overflow: hidden; background: var(--bg-3);
}
.ft-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.folio-tile:hover .ft-img img { transform: scale(1.05); }
.ft-over {
  position: absolute; inset: 0;
  background: rgba(14,14,14,0.65);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity 0.3s;
}
.folio-tile:hover .ft-over { opacity: 1; }
.ft-cat {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--yellow);
  padding: 5px 12px;
}
.ft-link {
  font-family: var(--font-m); font-size: 11px;
  letter-spacing: 0.08em; color: var(--ink);
  border: 1px solid var(--ink); padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}
.ft-link:hover { background: var(--ink); color: var(--bg); }
.ft-body { padding: 20px; border-top: 1px solid var(--border); }
.ft-num {
  font-family: var(--font-m); font-size: 10px;
  color: var(--yellow); letter-spacing: 0.08em; margin-bottom: 6px; display: block;
}
.ft-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ft-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; }


/* ══════════════════════════════════════
   CASE STUDIES
   ══════════════════════════════════════ */
.case-list { display: flex; flex-direction: column; }
.case-row {
  display: grid; grid-template-columns: 0.38fr 0.62fr;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.2s;
}
.case-row:hover { background: var(--bg-2); }
.cr-img { overflow: hidden; min-height: 240px; background: var(--bg-3); }
.cr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.case-row:hover .cr-img img { transform: scale(1.04); }
.cr-body {
  padding: clamp(1.5rem,3vw,2.5rem);
  display: flex; flex-direction: column; gap: 12px;
  border-left: 1px solid var(--border);
}
.cr-num {
  font-family: var(--font-m); font-size: 10px;
  color: var(--yellow); letter-spacing: 0.12em;
}
.cr-name {
  font-family: var(--font-d);
  font-size: clamp(18px,2.2vw,26px); font-weight: 700;
  color: var(--ink); line-height: 1.15;
}
.cr-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-tag {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--border-2);
  padding: 4px 12px;
}
.cr-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.cr-impact {
  padding-top: 12px; border-top: 1px solid var(--border);
  font-family: var(--font-m); font-size: 12px; color: var(--ink-2);
}
.cr-impact-label { color: var(--yellow); margin-right: 6px; }
.cr-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-m); font-size: 12px;
  letter-spacing: 0.06em; color: var(--yellow);
  margin-top: 4px; transition: gap 0.2s;
}
.cr-more:hover { gap: 14px; }

@media (max-width: 660px) {
  .case-row { grid-template-columns: 1fr; }
  .cr-img { min-height: 200px; }
  .cr-body { border-left: none; border-top: 1px solid var(--border); }
}


/* ══════════════════════════════════════
   SERVICES
   ══════════════════════════════════════ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.svc-card {
  background: var(--bg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: background 0.2s;
}
.svc-card:hover { background: var(--bg-2); }
/* Yellow top accent on hover */
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-m); font-size: 11px;
  color: var(--yellow); letter-spacing: 0.12em;
}
.svc-ic { width: 44px; height: 44px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--border-2); }
.svc-ic img { width: 100%; height: 100%; object-fit: cover; }
.svc-name { font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--ink); }
.svc-sub  { font-family: var(--font-m); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.svc-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.svc-price {
  display: inline-flex; align-items: center;
  font-family: var(--font-m); font-size: 13px; font-weight: 700;
  color: var(--yellow); border: 1px solid var(--yellow);
  padding: 5px 14px; align-self: flex-start;
}


/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.rev-card {
  background: var(--bg); padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s;
}
.rev-card:hover { background: var(--bg-2); }
.rv-stars { font-size: 13px; color: var(--yellow); letter-spacing: 4px; }
.rv-text { font-size: 14px; color: var(--ink-2); line-height: 1.75; font-style: italic; flex: 1; }
.rv-footer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.rv-avi {
  width: 40px; height: 40px;
  object-fit: cover; border: 1px solid var(--border-2); flex-shrink: 0;
}
.rv-name { font-size: 14px; font-weight: 700; color: var(--ink); display: block; font-style: normal; }
.rv-role { font-family: var(--font-m); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }


/* ══════════════════════════════════════
   SOCIAL
   ══════════════════════════════════════ */
.social-seg {
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.social-row {
  display: flex; align-items: stretch;
}
.social-label-cell {
  padding: 22px 32px;
  border-right: 1px solid var(--border);
  display: flex; align-items: center;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); flex-shrink: 0;
}
.social-pills { display: flex; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center;
  padding: 22px 26px;
  font-family: var(--font-m); font-size: 12px;
  letter-spacing: 0.06em; color: var(--ink-2);
  border-right: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.social-pill:hover { color: var(--yellow); background: var(--bg-2); }


/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  border: 1px solid var(--border);
}
.cg-info {
  padding: clamp(2rem,4vw,3.5rem);
  border-right: 1px solid var(--border);
}
.cg-num {
  font-family: var(--font-m); font-size: 10px;
  color: var(--yellow); letter-spacing: 0.12em; margin-bottom: 10px; display: block;
}
.cg-heading {
  font-family: var(--font-d);
  font-size: clamp(30px,4vw,52px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 14px;
}
.cg-heading em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent; display: block;
}
.cg-sub {
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 36px;
}
.cg-items { display: flex; flex-direction: column; }
.cg-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--ink-2);
}
.cg-item:last-child { border-bottom: 1px solid var(--border); }
.cg-icon { color: var(--yellow); flex-shrink: 0; }
.cg-k {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); display: block; margin-bottom: 2px;
}
.cg-v { font-size: 14px; color: var(--ink); font-weight: 500; }

.cg-form {
  padding: clamp(2rem,4vw,3.5rem);
  display: flex; flex-direction: column; gap: 16px;
}
.cf { display: flex; flex-direction: column; gap: 6px; }
.cf label {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.cf input, .cf textarea {
  width: 100%; background: var(--bg-2);
  border: 1px solid var(--border-2);
  padding: 12px 14px;
  font-family: var(--font-d); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.2s;
  border-radius: 0;
}
.cf input::placeholder, .cf textarea::placeholder { color: var(--ink-3); }
.cf input:focus, .cf textarea:focus { border-color: var(--yellow); }
.cf textarea { resize: vertical; }

@media (max-width: 740px) {
  .contact-grid { grid-template-columns: 1fr; border: none; }
  .cg-info { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid { border: 1px solid var(--border); }
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--wb-dark-surface, #161616);
  border-top: 1px solid var(--border);
  padding: 0;
}
.footer-row {
  display: flex; align-items: stretch; justify-content: space-between;
}
.footer-copy {
  padding: 22px 0;
  font-family: var(--font-m); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-3);
}
.footer-links { display: flex; }
.footer-links a {
  font-family: var(--font-m); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-3);
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.footer-links a:hover { color: var(--yellow); background: var(--bg-3); }

/* 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; }


/* ══════════════════════════════════════
   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 blocked script, or a stylesheet that arrives
   late — can never strand the name, bio, CTAs or any section behind them. The
   hidden from-state lives ONLY inside the @keyframes, never in the rule:
   `@supports` proves the FEATURE exists, it does not prove the ViewTimeline is
   ACTIVE. Inside a same-origin iframe (every owner-facing preview surface) the
   timeline resolves to null, the animation effect is not applied, and a
   rule-level `opacity: 0` / `visibility: hidden` would stay in force with
   nothing left to reveal it. Keyframed, the base visible declaration simply
   wins — `visibility` animates discretely, which is exactly what this needs.
   Only opacity, visibility and transform animate: nothing reflows.
   ══════════════════════════════════════ */
@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, because the visitor runs out of
       page to scroll before the range finishes. */
    :is(.skill-grid, .xp-list, .edu-grid, .tool-list, .folio-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(2) { animation-range: entry 8% entry 46%; }
    :is(.skill-grid, .xp-list, .edu-grid, .tool-list, .folio-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(3) { animation-range: entry 16% entry 54%; }
    :is(.skill-grid, .xp-list, .edu-grid, .tool-list, .folio-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(4) { animation-range: entry 24% entry 62%; }
    :is(.skill-grid, .xp-list, .edu-grid, .tool-list, .folio-grid, .case-list, .svc-grid, .rev-grid) > .ao:nth-child(5) { animation-range: entry 32% entry 70%; }
    :is(.skill-grid, .xp-list, .edu-grid, .tool-list, .folio-grid, .case-list, .svc-grid, .rev-grid) > .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. */
    .sk-fill, .tc-fill { animation: bar-fill-in linear both; animation-timeline: view(); animation-range: entry 20% entry 90%; }

    /* The `to` keyframe deliberately omits `transform`, so the end state is the
       element's OWN underlying transform rather than a hard `none`. A filling
       scroll-driven animation outranks both author rules and inline styles, so a
       `to{}` permanently overrides every `:hover` lift and every
       JS-written transform on the same element for the rest of the page's life.
       Measured in Chrome 152: with `transform:none` a hovered card reports the
       identity matrix; with the implicit `to` it reports its real hover translate
       and its JS tilt matrix, while the reveal still runs on a ViewTimeline. */
    @keyframes ao-in { from { opacity: 0; visibility: hidden; transform: translateY(20px); } to{opacity: 1; visibility: visible} }
    @keyframes bar-fill-in { from { transform: scaleX(0); } to{transform: scaleX(1)} }
  }
}

/* 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 {
  --ink-3: #828282; /* was #5A5A5A */
}
