/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── TOKENS ── */
:root {
  --bg:      #0B0B0A;
  --surface: #131312;
  --lift:    #1C1C1A;
  --line:    rgba(255,255,255,0.08);
  --line2:   rgba(255,255,255,0.13);
  --text:    #EDEAE3;
  --sub:     #6E6C66;
  --dim:     #4A4845;
  --lime:    #D2F45E;
  --lime-bg: rgba(210,244,94,0.07);
  --lime-bd: rgba(210,244,94,0.18);
}

/* ── BASE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 99;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(11,11,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 400;
  color: var(--sub); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-dot {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500;
  color: var(--lime); letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--lime-bd);
  padding: 6px 16px; border-radius: 999px;
}
.nav-dot::before {
  content: ''; width: 5px; height: 5px;
  background: var(--lime); border-radius: 50%;
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 0 4rem 5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* UXfolio: giant ghost watermark */
.hero-watermark {
  position: absolute;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18rem, 30vw, 32rem);
  color: rgba(255,255,255,0.016);
  white-space: nowrap;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none; user-select: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* UXfolio: top meta labels */
.hero-meta-left {
  position: absolute; top: 104px; left: 4rem;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim);
}
.hero-meta-right {
  position: absolute; top: 104px; right: 4rem;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--dim);
  display: flex; align-items: center; gap: 6px;
}
.hero-meta-right::before {
  content: ''; width: 4px; height: 4px;
  background: var(--lime); border-radius: 50%;
}

/* UXfolio: stacked giant headline */
.hero-head {
  position: relative; z-index: 1;
  margin-bottom: 3.5rem;
}
.hero-head .row {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(5.5rem, 11.5vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  display: flex; align-items: center; gap: 1.6rem;
  flex-wrap: wrap;
}
.hero-head .row-faded {
  font-style: italic;
  color: rgba(237,234,227,0.32);
}
.hero-head .row-lime { color: var(--lime); }

/* UXfolio: circular photo pill embedded in headline */
.photo-orb {
  width: 115px; height: 115px; border-radius: 50%;
  background: var(--lift);
  border: 1px solid var(--line2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 3.2rem; flex-shrink: 0;
  overflow: hidden; vertical-align: middle;
}

/* UXfolio: bottom bar — tagline left, CTAs right */
.hero-foot {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem;
}
.hero-foot-left {}
.hero-socials {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 1.2rem;
}
.soc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 400;
  color: var(--sub); text-decoration: none;
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.soc-pill svg { width: 11px; height: 11px; flex-shrink: 0; }
.soc-pill:hover {
  color: var(--lime);
  border-color: var(--lime-bd);
  background: var(--lime-bg);
}
.hero-tagline {
  font-size: 0.92rem; color: var(--sub); line-height: 1.8;
  max-width: 360px; font-weight: 400;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }

.hero-ctas {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 9px;
}
.cta-solid {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--lime); color: #0B0B0A;
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.01em;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-solid:hover { opacity: 0.88; transform: translateY(-2px); }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--sub);
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--line2);
  font-size: 0.82rem; font-weight: 400;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.cta-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }

/* ── TICKER ── */
.ticker-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 0; overflow: hidden;
}
.ticker-inner {
  display: flex; white-space: nowrap;
  animation: scroll 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.t-item {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); padding: 0 3rem;
}
.t-item .sep { color: var(--lime); font-size: 0.5rem; }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SHARED SECTION ── */
.section {
  padding: 8rem 4rem;
  border-bottom: 1px solid var(--line);
}

/* UXfolio: [bracket] eyebrow labels */
.eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 3.5rem;
  display: flex; align-items: center; gap: 0;
}
.eyebrow::before { content: '['; color: var(--lime); margin-right: 5px; }
.eyebrow::after  { content: ']'; color: var(--lime); margin-left: 5px; }

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.04em; line-height: 0.95;
  font-weight: 400;
}
.section-title em { font-style: italic; color: rgba(237,234,227,0.28); }

/* ── WORK ── */
.work-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.all-link {
  font-size: 0.78rem; color: var(--sub); text-decoration: none;
  border-bottom: 1px solid var(--line2); padding-bottom: 2px;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s, border-color 0.2s;
}
.all-link:hover { color: var(--text); border-color: var(--text); }

/* UXfolio: featured card — wide, image left text right */
.card-feat {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit;
  margin-bottom: 14px;
  transition: border-color 0.3s, transform 0.3s;
}
.card-feat:hover {
  border-color: var(--line2);
  transform: translateY(-3px);
}
.card-feat:hover .arrow-btn {
  background: var(--lime); color: #0B0B0A;
  border-color: var(--lime); transform: rotate(45deg);
}

/* image panel */
.card-img {
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; position: relative; overflow: hidden;
}
.card-img-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}
.card-img-icon { position: relative; z-index: 1; }
.ci-lime   { background: rgba(210,244,94,0.09); }
.ci-coral  { background: rgba(255,100,60,0.09); }
.ci-blue   { background: rgba(90,140,240,0.09); }
.ci-purple { background: rgba(140,90,230,0.09); }
.ci-amber  { background: rgba(240,180,60,0.08); }
.ci-teal   { background: rgba(40,200,160,0.08); }

/* text panel */
.card-body {
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface);
}
.card-cat {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.1rem;
}
.card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.9rem; line-height: 1.15;
  letter-spacing: -0.025em; margin-bottom: 1rem;
  font-weight: 400;
}
.card-desc {
  font-size: 0.85rem; color: var(--sub);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--dim); border-radius: 999px; padding: 4px 11px;
}
.arrow-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line2); color: var(--sub);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; margin-top: 2rem; align-self: flex-start;
  transition: all 0.25s;
}

/* grid cards */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 14px;
}
.card-sm {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s;
}
.card-sm:hover { border-color: var(--line2); transform: translateY(-3px); }
.card-sm .card-img { min-height: 0; aspect-ratio: 16/9; font-size: 3rem; }
.card-sm .card-body { padding: 1.8rem; flex: 1; }
.card-sm .card-title { font-size: 1.1rem; margin-bottom: 0.6rem; }

/* ── ABOUT ── */
/* UXfolio: circular photo left, content right */
.about-wrap {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 6rem; align-items: center;
}
.about-photo-col { position: relative; }
.about-circle {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%; background: var(--lift);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; overflow: hidden;
}
.about-badge {
  position: absolute; bottom: 10px; right: -10px;
  background: var(--lime); color: #0B0B0A;
  border-radius: 999px; padding: 9px 18px;
  font-size: 0.75rem; font-weight: 700;
  white-space: nowrap; line-height: 1.3;
}
.about-name {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 0.3rem; font-weight: 400;
}
.about-role {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 2rem;
}
.about-body p {
  font-size: 0.9rem; color: var(--sub);
  line-height: 1.9; margin-bottom: 0.9rem;
}
.about-body strong { color: var(--text); font-weight: 500; }
.stats-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin-top: 2.5rem;
}
.stat {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1rem;
}
.stat-n {
  font-family: 'Instrument Serif', serif;
  font-size: 2.3rem; letter-spacing: -0.04em;
  color: var(--lime); line-height: 1;
}
.stat-l { font-size: 0.68rem; color: var(--dim); margin-top: 4px; font-weight: 500; }
.dev-tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 1.8rem;
  background: var(--lime-bg); border: 1px solid var(--lime-bd);
  border-radius: 10px; padding: 11px 15px;
  font-size: 0.78rem; color: rgba(210,244,94,0.85); line-height: 1.5;
}

/* ── SKILLS ── */
.skills-wrap { padding: 6rem 4rem; border-bottom: 1px solid var(--line); }
.skills-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 3rem;
}
.skills-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em; line-height: 1; font-weight: 400;
}
.skills-title em { font-style: italic; color: rgba(237,234,227,0.22); }
.skills-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 9px;
}
.sk {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.2rem; background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}
.sk:hover { border-color: var(--lime-bd); transform: translateY(-2px); }
.sk-name { font-size: 0.82rem; font-weight: 500; margin-bottom: 7px; }
.sk-track { height: 2px; background: rgba(255,255,255,0.06); border-radius: 2px; }
.sk-fill  { height: 2px; background: var(--lime); border-radius: 2px; }
.sk-cat   { font-size: 0.62rem; color: var(--dim); margin-top: 6px; letter-spacing: 0.04em; }

/* ── RESUME ── */
.resume-wrap { padding: 8rem 4rem; border-bottom: 1px solid var(--line); }
.resume-bar {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 3.5rem;
}
.dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--lime); color: #0B0B0A;
  padding: 11px 22px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.dl-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.resume-card {
  display: grid; grid-template-columns: 280px 1fr;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.res-side {
  background: var(--surface); padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
}
.res-main { padding: 2.5rem; }
.rl {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--lime);
  display: flex; align-items: center; gap: 7px; margin-bottom: 1rem;
}
.rl::before { content:''; width:10px; height:1px; background:var(--lime); }
.rsec { margin-bottom: 2rem; }
.rcat { font-size:0.6rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--dim); margin-bottom:5px; margin-top:9px; }
.rpills { display:flex; flex-wrap:wrap; gap:4px; }
.rp {
  font-size:0.68rem; font-weight:400;
  background:rgba(255,255,255,0.04); border:1px solid var(--line);
  color:rgba(237,234,227,0.55); padding:3px 9px; border-radius:999px;
  transition:all 0.2s; cursor:default;
}
.rp:hover { background:var(--lime-bg); border-color:var(--lime-bd); color:var(--lime); }
.redu-n { font-weight:600; font-size:0.8rem; color:var(--text); margin-bottom:2px; }
.redu-d { font-size:0.75rem; color:var(--sub); }
.redu-t { font-size:0.67rem; color:var(--dim); }
.rcert  { font-size:0.72rem; line-height:1.7; color:var(--sub); }
.rlang-row { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px solid rgba(255,255,255,0.04); font-size:0.78rem; }
.rlang-row:last-child { border-bottom:none; }
.raward { background:var(--lime-bg); border:1px solid var(--lime-bd); border-radius:9px; padding:9px 11px; }
.raward-t { font-size:0.75rem; font-weight:700; color:var(--lime); }
.raward-s { font-size:0.67rem; color:var(--dim); margin-top:2px; line-height:1.4; }
.res-sum {
  font-size:0.85rem; color:var(--sub); line-height:1.85;
  margin-bottom:2rem; padding-bottom:2rem;
  border-bottom:1px solid var(--line);
}
.res-sum strong { color:var(--text); font-weight:500; }
.rexp { margin-bottom:1.6rem; padding-bottom:1.6rem; border-bottom:1px solid rgba(255,255,255,0.04); }
.rexp:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.rexp-hd { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:2px; }
.rexp-co { font-family:'Instrument Serif',serif; font-size:1.05rem; color:var(--text); }
.rexp-dt { font-size:0.65rem; color:var(--dim); letter-spacing:0.06em; white-space:nowrap; padding-top:3px; }
.rexp-role { font-size:0.68rem; font-weight:700; color:var(--lime); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:0.6rem; }
.rexp-loc { color:var(--dim); font-weight:400; text-transform:none; letter-spacing:0; }
.rbuls { list-style:none; display:flex; flex-direction:column; gap:4px; }
.rbuls li { font-size:0.78rem; color:rgba(237,234,227,0.52); line-height:1.7; padding-left:13px; position:relative; }
.rbuls li::before { content:'–'; position:absolute; left:0; color:var(--lime); }
.rbuls li strong { color:rgba(237,234,227,0.8); font-weight:500; }
.met { font-weight:700; color:var(--lime); }

/* ── CONTACT ── UXfolio: giant hello + email */
.contact-wrap {
  padding: 10rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.contact-pre {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1rem;
  display: block;
}
/* UXfolio: "Hello" label then big "Let's Talk" */
.contact-hello {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--dim); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.6rem;
  display: block;
}
.contact-big {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(4rem, 9vw, 9rem);
  letter-spacing: -0.05em; line-height: 0.9;
  font-weight: 400; margin-bottom: 3rem;
}
.contact-big em { font-style: italic; color: rgba(237,234,227,0.18); }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 2rem);
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 5px;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: 3.5rem; display: block;
}
.contact-email:hover { color: var(--lime); border-color: var(--lime-bd); }
.contact-links {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem;
}
.cl {
  font-size: 0.78rem; color: var(--sub); text-decoration: none;
  font-weight: 400; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.cl:hover { color: var(--text); }

/* ── FOOTER ── */
footer {
  padding: 1.6rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
}
footer p { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.04em; }

/* ── FADE IN ── */
.fi { opacity:0; transform:translateY(26px); animation: fi 0.75s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes fi { to { opacity:1; transform:translateY(0); } }
.d1{animation-delay:0.05s}.d2{animation-delay:0.14s}.d3{animation-delay:0.23s}
.d4{animation-delay:0.32s}.d5{animation-delay:0.41s}

/* ── LIGHT MODE ── */
body.light {
  --bg:      #F7F4EE;
  --surface: #EEEBE4;
  --lift:    #E4E0D8;
  --line:    rgba(0,0,0,0.09);
  --line2:   rgba(0,0,0,0.15);
  --text:    #1A1916;
  --sub:     #6B6860;
  --dim:     #9A9790;
  --lime:    #2A6B2A;
  --lime-bg: rgba(42,107,42,0.07);
  --lime-bd: rgba(42,107,42,0.2);
}
body.light nav { background: rgba(247,244,238,0.95); }
body.light .hero-watermark { color: rgba(0,0,0,0.04); }
body.light .card-img-dots { background-image: radial-gradient(rgba(0,0,0,0.07) 1px, transparent 1px); background-size: 22px 22px; }
body.light .ci-lime   { background: rgba(42,107,42,0.08); }
body.light .ci-coral  { background: rgba(200,60,20,0.07); }
body.light .ci-blue   { background: rgba(50,100,220,0.07); }
body.light .ci-purple { background: rgba(120,60,200,0.07); }
body.light .ci-amber  { background: rgba(180,120,20,0.07); }
body.light .ci-teal   { background: rgba(0,140,110,0.07); }
body.light .about-badge { color: #F7F4EE; }
body.light .cta-solid { color: #F7F4EE; }
body.light .dl-btn { color: #F7F4EE; }
body.light .sk-track { background: rgba(0,0,0,0.08); }
body.light .rp { background: rgba(0,0,0,0.04); color: rgba(26,25,22,0.55); }
body.light .rlang-row { border-bottom-color: rgba(0,0,0,0.06); }
body.light .rbuls li { color: rgba(26,25,22,0.6); }
body.light .rbuls li strong { color: rgba(26,25,22,0.85); }
body.light .rexp { border-bottom-color: rgba(0,0,0,0.06); }
body.light .res-sum { border-bottom-color: rgba(0,0,0,0.09); }
body.light .tag { background: rgba(0,0,0,0.04); }

/* ── TOGGLE BUTTON ── */
.theme-toggle {
  width: 44px; height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lime);
  top: 3px; left: 3px;
  transition: transform 0.3s, background 0.3s;
}
body.light .theme-toggle::after { transform: translateX(20px); }
.toggle-wrap {
  display: flex; align-items: center; gap: 8px;
}
.toggle-icon {
  font-size: 13px; line-height: 1;
  user-select: none;
}

/* ── FIXES ── */
:root { --faded: rgba(237,234,227,0.28); }
body.light { --faded: rgba(26,25,22,0.28); --dim:#85827B; --sub:#5F5C55; }
.hero-head .row-faded, .section-title em, .skills-title em, .contact-big em { color: var(--faded); }
body.light .dev-tag { color: var(--lime); font-weight:500; }
body.light .cta-ghost:hover { border-color: var(--text); }
body.light .tag { color: var(--sub); }
.ticker-inner { width:max-content; }
.contact-email { word-break:break-all; }
.toggle-wrap { flex-shrink:0; }
a:focus-visible, .theme-toggle:focus-visible { outline:2px solid var(--lime); outline-offset:3px; }
@media (prefers-reduced-motion:reduce){ *{animation:none!important;transition:none!important} .fi{opacity:1;transform:none} html{scroll-behavior:auto} }
@media (max-width:1100px){
  .skills-grid{grid-template-columns:repeat(3,1fr)}
  .cards-grid{grid-template-columns:repeat(2,1fr)}
  .about-wrap{gap:3rem}
}
@media (max-width:900px){
  nav{padding:0 1.25rem}
  .nav-links{display:none}
  .hero{padding:0 1.25rem 3rem}
  .hero-meta-left{left:1.25rem}.hero-meta-right{right:1.25rem}
  .hero-head .row{font-size:clamp(3.4rem,15vw,7rem)}
  .photo-orb{width:72px;height:72px;font-size:2rem}
  .hero-foot{flex-direction:column;align-items:flex-start}
  .hero-tagline{max-width:100%}
  .hero-ctas{flex-direction:row;align-items:center;flex-wrap:wrap}
  .section,.resume-wrap{padding:5rem 1.25rem}
  .skills-wrap{padding:4rem 1.25rem}
  .contact-wrap{padding:6rem 1.25rem}
  footer{padding:1.4rem 1.25rem;flex-wrap:wrap;gap:.5rem}
  .card-feat{grid-template-columns:1fr}
  .card-img{min-height:280px}
  .card-body{padding:1.8rem}
  .about-wrap{grid-template-columns:1fr}
  .about-photo-col{max-width:300px;margin:0 auto}
  .about-badge{right:0}
  .resume-card{grid-template-columns:1fr}
  .res-side{border-right:none;border-bottom:1px solid var(--line)}
  .res-main{padding:1.8rem 1.25rem}
  .skills-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
  .nav-dot{display:none}
  .hero-meta-right{display:none}
  .cards-grid{grid-template-columns:1fr}
  .stats-row{gap:8px}
  .stat{padding:1rem .7rem}.stat-n{font-size:1.8rem}
  .work-header,.resume-bar,.skills-head{flex-direction:column;align-items:flex-start;gap:1rem}
  .rexp-hd{flex-direction:column;gap:2px}
  .rexp-dt{padding-top:0}
  .contact-links{flex-wrap:wrap;gap:1rem}
}

/* ── UI POLISH ── */
.hero { padding-top: 120px; }
.hero-head .row { font-size: clamp(4rem, 9.5vw, 9rem); }
.hero-tagline { max-width: 520px; }
::selection { background: var(--lime); color: var(--bg); }
.progress { position:fixed; top:0; left:0; height:2px; width:100%; background:var(--lime); transform-origin:left; transform:scaleX(0); z-index:100; }
nav { transition: box-shadow .3s, background .3s; }
nav.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.hero::before { content:''; position:absolute; inset:-20% -10% auto auto; width:60vw; height:60vw; max-width:900px; max-height:900px; background:radial-gradient(circle, var(--lime-bg) 0%, transparent 65%); pointer-events:none; }
.hero-head .row-lime { text-shadow:none; }
.skills-note { font-size:.72rem; color:var(--dim); }
.skills-wrap { background: var(--surface); }
.sk { background: var(--bg); }
.sk:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.sk-fill { transform-origin:left; }
.card-feat:hover, .card-sm:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.10); }
.card-sm .card-img { transition: transform .5s; }
.card-sm:hover .card-img-icon { transform: scale(1.12) rotate(-3deg); }
.card-img-icon { transition: transform .5s; }
.cta-solid, .dl-btn { box-shadow: 0 8px 24px var(--lime-bd); }
.stat { background: var(--surface); transition: transform .25s, border-color .25s; }
.stat:hover { transform: translateY(-3px); border-color: var(--lime-bd); }
.about-circle { box-shadow: 0 0 0 10px var(--lime-bg), 0 0 0 11px var(--lime-bd); }
.hl-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:5rem; }
.hl { border:1px solid var(--line); border-radius:18px; padding:1.8rem; background:var(--surface); transition:transform .3s, border-color .3s, box-shadow .3s; }
.hl:hover { transform:translateY(-4px); border-color:var(--lime-bd); box-shadow:0 18px 44px rgba(0,0,0,0.08); }
.hl-ic { width:42px; height:42px; border-radius:12px; background:var(--lime-bg); border:1px solid var(--lime-bd); display:flex; align-items:center; justify-content:center; font-size:1.2rem; margin-bottom:1.1rem; }
.hl h4 { font-family:'Instrument Serif',serif; font-weight:400; font-size:1.3rem; letter-spacing:-0.02em; margin-bottom:.5rem; }
.hl p { font-size:.83rem; color:var(--sub); line-height:1.75; }
.banks { margin-top:3rem; border:1px solid var(--line); border-radius:18px; padding:1.8rem; text-align:center; }
.banks-label { font-size:.66rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--dim); margin-bottom:1.1rem; }
.banks-row { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 12px; }
.banks-row span { font-family:'Instrument Serif',serif; font-size:1.35rem; letter-spacing:-0.02em; padding:6px 18px; border:1px solid var(--line2); border-radius:999px; transition:all .25s; }
.banks-row span:hover { color:var(--lime); border-color:var(--lime-bd); background:var(--lime-bg); }
.rv { opacity:0; }
.rv.in { opacity:1; animation: rise .7s cubic-bezier(.16,1,.3,1) backwards; animation-delay: var(--d,0s); }
@keyframes rise { from { opacity:0; transform:translateY(28px); } }
.sk-fill { transform:scaleX(0); transition: transform 1.1s cubic-bezier(.16,1,.3,1) .2s; }
.sk.in .sk-fill { transform:scaleX(1); }
@media (max-width:1100px){ .hl-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:600px){ .hl-grid{grid-template-columns:1fr; margin-top:3rem} .banks-row span{font-size:1.05rem; padding:5px 14px} }
@media (prefers-reduced-motion:reduce){ .rv{opacity:1} .sk-fill{transform:none} }

/* ── HERO UPGRADE: bank marquee + full-width desktop ── */
.hero { padding: 0 0 4rem; }
.bank-marquee {
  position: absolute; top: 68px; left: 0; right: 0; z-index: 2;
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bm-label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 0 2rem; border-right: 1px solid var(--line);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap;
}
.bm-label::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--lime); }
.bm-viewport {
  flex: 1; overflow: hidden; padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bm-track { display: flex; width: max-content; animation: bankscroll 38s linear infinite; }
.bm-viewport:hover .bm-track { animation-play-state: paused; }
.bm-group { display: flex; flex-shrink: 0; }
.bm-item {
  display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem;
  font-family: 'Instrument Serif', serif; font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--text);
  transition: color .25s;
}
.bm-item:hover { color: var(--lime); }
.bm-sep { font-style: normal; font-family: 'DM Sans', sans-serif; font-size: 0.7rem; color: var(--lime); }
@keyframes bankscroll { from{transform:translateX(0)} to{transform:translateX(-25%)} }

.hero { padding-top: 190px; }
.hero-head, .hero-foot, .hero-meta-left { padding-left: 2rem; padding-right: 2rem; }
.hero-meta-right { top: 168px; right: 2rem; }
.hero-meta-left { left: 0; top: 168px; }
.hero-head { width: 100%; }
.hero-head .row { font-size: clamp(4rem, 13.5vw, 15rem); width: 100%; }
.hero-foot { width: 100%; max-width: none; }
@media (min-width: 901px) {
  .hero-head .row { justify-content: flex-start; }
  .hero-head .row:nth-child(3) { justify-content: space-between; }
}
@media (max-width: 900px) {
  .hero { padding: 170px 0 3rem; }
  .hero-head, .hero-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-head .row { font-size: clamp(3.4rem, 15vw, 7rem); }
  .hero-meta-right { right: 1.25rem; top: 150px; }
  .bm-label { display: none; }
  .bm-viewport { padding: .85rem 0; }
  .bm-item { font-size: 1.35rem; gap: 1.4rem; padding-right: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .bm-track { animation: none !important; } }

/* ── v3: HERO SPLIT, SKILLS PRO, TIGHTER FLOW ── */
.hero { min-height: auto; padding: 178px 2.5rem 3.5rem; justify-content: flex-start; }
.hero-grid {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,420px);
  gap: 4rem; align-items: end;
}
.hero-head { padding: 0; margin: 0; }
.hero-head .row { font-size: clamp(3rem, 6vw, 6.4rem); width: auto; gap: 1.1rem; line-height: .92; }
.hero-head .row:nth-child(3) { justify-content: flex-start; }
.photo-orb { width: clamp(52px,4.6vw,78px); height: clamp(52px,4.6vw,78px); font-size: clamp(1.5rem,2.3vw,2.4rem); }
.hero-quote { font-size: 1.05rem; font-weight: 300; font-style: italic; color: var(--sub); margin-top: 1.4rem; letter-spacing: .01em; }

.hero-aside {
  border: 1px solid var(--line2); border-radius: 22px; background: var(--surface);
  padding: 1.4rem 1.5rem 1.5rem; backdrop-filter: blur(8px);
}
.aside-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.aside-label { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.aside-status { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; color: var(--dim); letter-spacing: .06em; }
.aside-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease infinite; }
.aside-row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: .8rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: color .2s, padding .25s;
}
.aside-row:hover { color: var(--lime); padding-left: .35rem; }
.ar-k { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ar-v { font-size: .86rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-ic { font-size: .9rem; color: var(--sub); transition: transform .25s, color .2s; }
.aside-row:hover .ar-ic { transform: translate(2px,-2px); color: var(--lime); }
.aside-ctas { display: flex; gap: 8px; margin-top: 1.3rem; }
.aside-ctas .cta-solid, .aside-ctas .cta-ghost { flex: 1; justify-content: center; padding: 12px 14px; }

/* Skills */
.skills-wrap { padding: 4.5rem 2.5rem; background: var(--surface); }
.sk-shell { display: grid; grid-template-columns: minmax(260px,.62fr) 1.6fr; gap: 4rem; align-items: start; }
.sk-intro { position: sticky; top: 100px; }
.sk-intro .eyebrow { margin-bottom: 1.6rem; }
.sk-lede { margin-top: 1.3rem; font-size: .92rem; line-height: 1.8; color: var(--sub); max-width: 34ch; }
.sk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sk-stat { background: var(--bg); padding: 1.1rem 1.1rem 1rem; }
.sk-stat b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 2.1rem; letter-spacing: -.04em; line-height: 1; color: var(--lime); }
.sk-stat span { display: block; margin-top: 5px; font-size: .66rem; font-weight: 500; letter-spacing: .06em; color: var(--dim); }
.sk-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sk-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; transition: border-color .25s, transform .25s, box-shadow .25s; }
.sk-card.wide { grid-column: 1 / -1; }
.sk-card:hover { border-color: var(--lime-bd); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.08); }
.sk-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.sk-num { font-size: .66rem; font-weight: 600; letter-spacing: .16em; color: var(--dim); }
.sk-level { display: inline-flex; align-items: center; gap: 9px; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.sk-meter { display: inline-flex; gap: 3px; }
.sk-meter i { width: 14px; height: 3px; border-radius: 2px; background: var(--line2); }
.sk-meter i.on { background: var(--lime); }
.sk-card-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .55rem; }
.sk-card-desc { font-size: .82rem; line-height: 1.7; color: var(--sub); margin-bottom: 1.3rem; max-width: 62ch; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sk-chip { font-size: .72rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); background: transparent; transition: all .2s; }
.sk-chip:hover { background: var(--lime-bg); border-color: var(--lime-bd); color: var(--lime); }

/* Case studies pushed up */
#work.section { padding-top: 4.5rem; }
#work .eyebrow { margin-bottom: 1.8rem; }
#work .work-header { margin-bottom: 2rem; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-aside { max-width: 520px; }
  .sk-shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .sk-intro { position: static; }
  .sk-lede { max-width: 60ch; }
  .sk-stats { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 150px 1.25rem 2.5rem; }
  .hero-head .row { font-size: clamp(3rem, 14vw, 6rem); }
  .photo-orb { width: 56px; height: 56px; font-size: 1.6rem; }
  .skills-wrap { padding: 3.5rem 1.25rem; }
  #work.section { padding-top: 3rem; }
}
@media (max-width: 600px) {
  .sk-cards { grid-template-columns: 1fr; }
  .sk-stats { grid-template-columns: 1fr 1fr; }
  .aside-row { grid-template-columns: 62px 1fr auto; }
  .aside-ctas { flex-direction: column; }
}

/* consistent desktop gutters + tighter case-study start */
@media (min-width: 901px) {
  nav { padding-left: 2.5rem; padding-right: 2.5rem; }
  .section, .resume-wrap, .contact-wrap, footer { padding-left: 2.5rem; padding-right: 2.5rem; }
  #work.section { padding-top: 3.5rem; }
}

/* v4: spread-out hero, work first */
@media (min-width: 901px) {
  .hero { min-height: min(74vh, 740px); padding: 190px 2.5rem 3.5rem; justify-content: center; }
  .hero-grid { gap: 6rem; align-items: center; grid-template-columns: minmax(0,1fr) minmax(360px,460px); }
  .hero-head .row { font-size: clamp(3.4rem, 6.6vw, 7.2rem); line-height: 1; gap: 1.4rem; }
  .hero-quote { margin-top: 2.2rem; font-size: 1.15rem; }
  .hero-aside { padding: 1.8rem 2rem 2rem; }
  .aside-row { padding: 1.15rem 0; }
  .aside-ctas { margin-top: 1.7rem; }
  #work.section { padding-top: 3.5rem; }
}
#skills.skills-wrap { border-top: 1px solid var(--line); }

/* ═══ v6: HIGH-CONTRAST MARQUEE ═══ */
.bank-marquee {
  --mq-bg: #0A110C; --mq-fg: #F6F3EC; --mq-accent: #D2F45E; --mq-lbl-bg: #D2F45E; --mq-lbl-fg: #0A110C;
  background: var(--mq-bg); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
body:not(.light) .bank-marquee { --mq-bg: #D2F45E; --mq-fg: #0A110C; --mq-accent: #0A110C; --mq-lbl-bg: #0A110C; --mq-lbl-fg: #D2F45E; }
.bm-label { background: var(--mq-lbl-bg); color: var(--mq-lbl-fg); border-right: 0; padding: 0 2rem; font-size: .7rem; font-weight: 800; letter-spacing: .2em; }
.bm-label::before { background: var(--mq-lbl-fg); }
.bm-viewport { padding: 1.35rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.bm-track { animation-duration: 30s; }
.bm-item { font-family: 'DM Sans', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; font-size: clamp(1.5rem, 2.5vw, 2.3rem); color: var(--mq-fg); gap: 2.4rem; padding-right: 2.4rem; }
.bm-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--mq-fg); }
.bm-item:hover { color: var(--mq-accent); -webkit-text-stroke: 0; }
.bm-sep { color: var(--mq-accent); -webkit-text-stroke: 0; font-size: 1rem; }
@media (max-width: 900px) { .bm-item { font-size: 1.3rem; gap: 1.5rem; padding-right: 1.5rem; } .bm-viewport { padding: 1rem 0; } }

/* ═══ v6: CASE STUDIES ═══ */
#work .section-title { font-size: clamp(3rem, 6vw, 5.4rem); }
.work-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.work-count { font-size: .8rem; color: var(--sub); letter-spacing: .02em; }
.work-count b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.5rem; color: var(--lime); margin-right: .25rem; letter-spacing: -.02em; }

.card-feat, .card-sm { border-radius: 26px; border: 1px solid var(--line); background: var(--surface); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .3s; }
.card-feat:hover, .card-sm:hover { transform: translateY(-6px); border-color: var(--lime-bd); box-shadow: 0 28px 60px rgba(0,0,0,.12); }

/* shared media chrome */
.cs-chip { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cs-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac, var(--lime)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac, var(--lime)) 25%, transparent); }
.cs-no { position: absolute; top: .6rem; right: 1.2rem; z-index: 2; font-family: 'Instrument Serif', serif; font-size: 3.6rem; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--text) 28%, transparent); }
.cs-blob { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 18%; border-radius: 50%; background: var(--ac, var(--lime)); opacity: .22; filter: blur(46px); }
.cs-ring { position: absolute; width: 150px; height: 150px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--ac, var(--lime)) 55%, transparent); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* grid cards */
.cards-grid { gap: 18px; margin-top: 18px; }
.cs-media {
  position: relative; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background:
    radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--ac) 16%, var(--surface)), color-mix(in srgb, var(--ac) 5%, var(--surface)));
}
.cs-media::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px); background-size: 20px 20px; opacity: .6; }
.cs-tile { position: relative; z-index: 2; width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 70%, #fff), var(--ac));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ac) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .45s cubic-bezier(.2,.8,.2,1.2); }
.cs-tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--ac); opacity: .28; transform: rotate(-12deg) scale(.96); z-index: -1; }
.card-sm:hover .cs-tile { transform: scale(1.1) rotate(-5deg); }
.cs-tile svg { width: 44px; height: 44px; }
.cs-body { padding: 1.7rem 1.8rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.cs-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.75rem; line-height: 1.08; letter-spacing: -.03em; margin-bottom: .7rem; }
.cs-desc { font-size: .86rem; line-height: 1.7; color: var(--sub); margin-bottom: 1.4rem; }
.cs-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.cs-go { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 1rem; border: 1px solid var(--line2); color: var(--text); transition: all .3s; }
.card-sm:hover .cs-go { background: var(--ac); border-color: var(--ac); color: #fff; transform: rotate(45deg); }
.card-sm .tag, .card-feat .tag { font-size: .68rem; font-weight: 600; padding: 5px 12px; color: var(--sub); }

/* featured */
.card-feat { margin-bottom: 0; }
.card-feat .card-img { min-height: 420px; --ac: var(--lime);
  background: radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--lime) 34%, transparent), transparent 62%), linear-gradient(160deg, color-mix(in srgb, var(--lime) 16%, var(--surface)), color-mix(in srgb, var(--lime) 5%, var(--surface))); }
.card-feat .cs-ring { width: 300px; height: 300px; }
.card-feat .card-img-icon { position: relative; z-index: 2; }
.card-feat .card-body { padding: 3.2rem; }
.card-feat .card-cat { display: inline-flex; width: fit-content; padding: 6px 14px; border-radius: 999px; background: var(--lime-bg); border: 1px solid var(--lime-bd); color: var(--lime); font-size: .66rem; font-weight: 700; letter-spacing: .14em; }
.card-feat .card-title { font-size: clamp(2.1rem, 3.1vw, 3rem); line-height: 1.04; letter-spacing: -.035em; }
.card-feat .card-desc { font-size: .95rem; max-width: 46ch; }
.cs-cta { display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin-top: 2rem; padding: 14px 14px 14px 26px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .84rem; font-weight: 700; transition: background .3s, color .3s, gap .3s; }
.cs-cta b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0A110C; font-weight: 700; transition: transform .3s; }
.card-feat:hover .cs-cta { background: var(--lime); color: #0A110C; gap: 16px; }
.card-feat:hover .cs-cta b { background: #0A110C; color: var(--lime); transform: rotate(45deg); }
@media (max-width: 900px) { .work-meta { align-items: flex-start; } .card-feat .card-img { min-height: 340px; } .card-feat .card-body { padding: 2rem 1.6rem; } .cs-no { font-size: 2.8rem; } }
@media (prefers-reduced-motion: reduce) { .cs-ring { animation: none; } }

/* ═══ v7: green marquee, compact hero, contact strip ═══ */
.bank-marquee, body:not(.light) .bank-marquee {
  --mq-bg: #2A6B2A; --mq-fg: #FFFFFF; --mq-accent: #D2F45E; --mq-lbl-bg: #1E5220; --mq-lbl-fg: #FFFFFF;
  background: var(--mq-bg); box-shadow: 0 8px 24px rgba(20,60,20,.18);
}
.bm-label { font-weight: 700; letter-spacing: .2em; }
.bm-label::before { background: var(--mq-accent); }
.bm-item, .bm-item:nth-child(even) { color: #fff; -webkit-text-stroke: 0; font-weight: 700; letter-spacing: .01em; font-size: clamp(1.3rem, 2vw, 1.9rem); }
.bm-item:hover { color: var(--mq-accent); }
.bm-sep { color: rgba(255,255,255,.55); font-size: .8rem; }

/* hero */
.hero-head .hero-intro { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.hero-intro .mid-text { font-size: clamp(1.5rem, 2.1vw, 2.1rem); max-width: 24ch; }
.hl-green { color: var(--lime); }
.hero-pull { position: relative; margin: 0; padding-left: 2.2rem; border-left: 2px solid var(--lime-bd); }
.pull-mark { position: absolute; top: -2.2rem; left: 1.6rem; font-family: 'Instrument Serif', serif; font-size: 7rem; line-height: 1; color: var(--lime); opacity: .35; }
.hero-pull p { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; color: var(--text); max-width: 14ch; }
@media (min-width: 901px) {
  .hero { min-height: auto; padding: 206px 2.5rem 4rem; }
  .hero-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 5rem; align-items: center; }
  .hero-head .row { font-size: clamp(2.4rem, 4.4vw, 4.8rem); line-height: 1.02; gap: 1rem; flex-wrap: nowrap; }
  .photo-orb { width: clamp(40px,3.4vw,58px); height: clamp(40px,3.4vw,58px); font-size: clamp(1.1rem,1.7vw,1.8rem); }
}
@media (max-width: 900px) {
  .hero { padding: 175px 1.25rem 2rem; }
  .hero-grid { gap: 2rem; }
  .hero-head .row { font-size: clamp(2.2rem, 10.5vw, 3.6rem); flex-wrap: wrap; gap: .6rem; }
  .photo-orb { width: 42px; height: 42px; font-size: 1.2rem; }
  .hero-pull { padding-left: 1.4rem; }
  .pull-mark { font-size: 5rem; top: -1.6rem; left: 1rem; }
  .hero-pull p { font-size: 2rem; }
}

/* contact strip */
.ct-strip { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; flex-wrap: wrap; padding: 1.1rem 2.5rem; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ct-loc { display: inline-flex; align-items: center; gap: 10px; font-family: 'Instrument Serif', serif; font-size: 1.35rem; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.ct-loc i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-bg); }
.ct-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 500; padding-left: 2rem; border-left: 1px solid var(--line2); transition: color .2s; white-space: nowrap; }
.ct-link span { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ct-link:hover { color: var(--lime); }
.ct-actions { display: flex; gap: 8px; }
.ct-actions .cta-solid, .ct-actions .cta-ghost { padding: 11px 20px; white-space: nowrap; }
@media (max-width: 1250px) { .ct-link:nth-of-type(n) { padding-left: 1.4rem; } .ct-strip { gap: 1rem 1.4rem; } }
@media (max-width: 900px) {
  .ct-strip { padding: 1.2rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .ct-loc { grid-column: 1 / -1; }
  .ct-link { padding-left: 0; border-left: 0; white-space: normal; word-break: break-word; }
  .ct-actions { grid-column: 1 / -1; }
  .ct-actions a { flex: 1; justify-content: center; }
}

/* intro styles (restored) */
.mid-label { display: inline-flex; align-items: center; gap: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.mid-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease infinite; }
.mid-text { font-family: 'Instrument Serif', serif; line-height: 1.1; letter-spacing: -.03em; color: var(--text); }
.mid-text em { color: var(--lime); font-style: italic; }
.hero-intro .mid-text { font-size: clamp(1.7rem, 2.5vw, 2.6rem); max-width: 20ch; }
.hero-pull { padding-top: 1.2rem; padding-bottom: .6rem; }
.pull-mark { top: -1.6rem; left: -.15rem; font-size: 5.5rem; }
@media (max-width: 900px) { .pull-mark { top: -1.1rem; left: -.1rem; font-size: 4rem; } .hero-intro .mid-text { font-size: 1.7rem; } }

@media (max-width: 900px) {
  .ct-strip .ct-link:nth-of-type(n) { padding-left: 0; border-left: 0; }
  .ct-strip .ct-link[href^="mailto"] { grid-column: 1 / -1; word-break: normal; }
}

/* ═══ v8: no logo, short about in hero ═══ */
.nav-links { margin-right: auto; }
.nav-dot { margin-right: 1.6rem; }
.toggle-wrap { margin-left: auto; }
.nav-links ~ .toggle-wrap { margin-left: 0; }
@media (max-width: 900px) { .toggle-wrap, .nav-links ~ .toggle-wrap { margin-left: auto; } }

.hero-about { display: flex; flex-direction: column; gap: 1.1rem; padding-left: 2.2rem; border-left: 2px solid var(--lime-bd); max-width: 560px; }
.ha-lead { font-family: 'Instrument Serif', serif; font-size: clamp(1.5rem, 2.1vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; color: var(--text); }
.ha-lead strong { font-weight: 400; font-style: italic; color: var(--lime); }
.ha-body { font-size: .94rem; line-height: 1.8; color: var(--sub); }
.ha-body strong { color: var(--text); font-weight: 600; }
.ha-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--lime); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--lime-bd); transition: gap .25s; }
.ha-more:hover { gap: 12px; }
@media (max-width: 900px) { .hero-about { padding-left: 1.4rem; max-width: none; } }

/* ═══ v9: swapped hero order, wider About, work heading beside featured ═══ */
.hero-head .hero-intro { margin: 2.4rem 0 0; }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 3rem; align-items: center; }
  .hero-about { max-width: none; padding-left: 2.6rem; }
  .ha-lead { font-size: clamp(1.7rem, 2.5vw, 2.6rem); }
  .ha-body { font-size: 1rem; max-width: none; }
}
.work-top { display: grid; grid-template-columns: minmax(230px, .26fr) 1fr; gap: 2.5rem; align-items: stretch; }
.work-lead { display: flex; flex-direction: column; justify-content: space-between; padding: .4rem 0 .6rem; }
.work-lead .eyebrow { margin-bottom: 1.6rem; }
.work-lead .section-title { font-size: clamp(2.8rem, 4.4vw, 4.6rem); }
.work-lead .all-link { align-self: flex-start; margin-top: 2rem; }
.work-top .card-feat { margin: 0; }
.card-feat .card-title { font-size: clamp(1.8rem, 2.4vw, 2.5rem); }
.card-feat .card-body { padding: 2.6rem; }
@media (max-width: 1100px) {
  .work-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .work-lead { flex-direction: row; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
  .work-lead .all-link { margin-top: 0; }
}

/* ═══ v10: intro text, richer About, shifted toward center ═══ */
.hero-about { gap: 1.5rem; }
.hero-intro { display: flex; flex-direction: column; gap: 1.1rem; }
.hero-intro .mid-text { max-width: 22ch; }
.hero-loc { display: inline-flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 500; color: var(--text); }
.hero-loc span { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); padding-right: 12px; border-right: 1px solid var(--line2); }
.ha-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.ha-stats div { padding: 1rem 1.1rem; border-left: 1px solid var(--line); }
.ha-stats div:first-child { border-left: 0; }
.ha-stats b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: -.04em; color: var(--lime); }
.ha-stats span { display: block; margin-top: 6px; font-size: .64rem; font-weight: 500; letter-spacing: .06em; color: var(--dim); }
.ha-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-chips span { font-size: .76rem; font-weight: 600; padding: 7px 15px; border-radius: 999px; color: var(--lime); background: var(--lime-bg); border: 1px solid var(--lime-bd); }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 3rem; }
  .hero-about { padding-left: 2.6rem; }
}
@media (max-width: 900px) { .ha-stats { grid-template-columns: 1fr 1fr; } .ha-stats div:nth-child(3) { border-left: 0; } .ha-stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* v11: name only */
@media (min-width: 901px) { .hero-head .row { font-size: clamp(2.8rem, 5vw, 5.4rem); } }
.hero-head .hero-intro { margin-top: 2rem; }

/* ═══ v11: About points inside hero ═══ */
.ha-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.ha-pt { display: flex; gap: .9rem; align-items: flex-start; }
.ha-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--lime); background: var(--lime-bg); border: 1px solid var(--lime-bd); }
.ha-pt h4 { font-size: .86rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; color: var(--text); }
.ha-pt p { font-size: .76rem; line-height: 1.6; color: var(--sub); }
@media (max-width: 700px) { .ha-points { grid-template-columns: 1fr; } }

/* ═══ v12: compact hero About ═══ */
.hero-about { gap: 1.05rem; }
.ha-lead { font-size: clamp(1.45rem, 2vw, 2.05rem); line-height: 1.18; }
.ha-lead strong { font-weight: 400; font-style: italic; color: var(--lime); }
.ha-stats div { padding: .7rem 1rem; }
.ha-stats b { font-size: 1.55rem; }
.ha-stats span { margin-top: 3px; }
.ha-chips span { font-size: .72rem; padding: 5px 13px; }
.ha-points { grid-template-columns: repeat(3, 1fr); gap: 1rem 1.4rem; padding-top: 1.1rem; }
.ha-pt { display: block; }
.ha-pt-hd { display: flex; align-items: center; gap: .6rem; margin-bottom: 5px; }
.ha-pt .ha-ic { width: 28px; height: 28px; border-radius: 9px; }
.ha-pt h4 { margin: 0; font-size: .8rem; }
.ha-pt p { font-size: .72rem; line-height: 1.5; }
@media (min-width: 901px) { .hero { padding: 190px 2.5rem 3rem; } }
@media (max-width: 900px) { .ha-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ha-points { grid-template-columns: 1fr; } }

/* ═══ v13: process section, work note ═══ */
.work-note { margin-top: 1.2rem; font-size: .86rem; line-height: 1.7; color: var(--sub); max-width: 30ch; }
.pr-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3rem; align-items: end; }
.pr-head .eyebrow { margin-bottom: 1.6rem; }
.pr-lede { font-size: 1rem; line-height: 1.8; color: var(--sub); max-width: 52ch; }
.pr-grid { margin-top: 3rem; }
.pr-n { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .16em; color: var(--lime); margin-bottom: 1rem; padding: 4px 10px; border-radius: 999px; background: var(--lime-bg); border: 1px solid var(--lime-bd); }
@media (min-width: 901px) { #process.section { padding-top: 5rem; padding-bottom: 5rem; } }
@media (max-width: 900px) { .pr-head { grid-template-columns: 1fr; gap: 1.2rem; } .pr-grid { margin-top: 2rem; } .work-note { max-width: 60ch; } }

/* ═══ v14: decluttered hero, compact work section ═══ */
.hero-about { gap: 1.4rem; }
.ha-kit { display: flex; flex-direction: column; gap: .9rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.ha-kit-row { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; }
.ha-kit-k { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding-top: 8px; }
.ha-tools span { color: var(--text); background: transparent; border-color: var(--line2); font-weight: 500; }
@media (min-width: 901px) { .hero { padding: 180px 2.5rem 2.5rem; } }
@media (max-width: 600px) { .ha-kit-row { grid-template-columns: 1fr; gap: .5rem; } .ha-kit-k { padding-top: 0; } }

#work.section { padding-top: 2.5rem; padding-bottom: 3rem; }
#work .work-top, #work .cards-grid { max-width: 1160px; margin-left: auto; margin-right: auto; }
#work .cards-grid { margin-top: 14px; gap: 14px; }
#work .work-lead .section-title { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
#work .work-note { margin-top: .9rem; }
#work .work-lead .all-link { margin-top: 1.2rem; }
.card-feat .card-img { min-height: 290px; }
.card-feat .card-img-icon svg { height: 215px; width: auto; }
.card-feat .cs-ring { width: 230px; height: 230px; }
.card-feat .card-body { padding: 1.8rem 2rem; }
.card-feat .card-title { font-size: clamp(1.5rem, 2vw, 2rem); margin-bottom: .7rem; }
.card-feat .card-desc { font-size: .86rem; line-height: 1.65; margin-bottom: 1rem; }
.card-feat .card-cat { margin-bottom: .8rem; }
.cs-cta { margin-top: 1.2rem; padding: 10px 10px 10px 20px; }
.cs-media { aspect-ratio: 16/6.5; }
.cs-tile { width: 68px; height: 68px; border-radius: 22px; }
.cs-tile svg { width: 32px; height: 32px; }
.cs-ring { width: 112px; height: 112px; }
.cs-no { font-size: 2.6rem; }
.cs-chip { top: .8rem; left: .8rem; padding: 5px 12px; }
.cs-body { padding: 1.2rem 1.4rem 1.2rem; }
.cs-title { font-size: 1.4rem; margin-bottom: .45rem; }
.cs-desc { font-size: .82rem; line-height: 1.6; margin-bottom: 1rem; }
.cs-foot { padding-top: .85rem; }
.cs-go { width: 36px; height: 36px; }
@media (min-width: 901px) { #process.section { padding-top: 3.5rem; } }
@media (max-width: 900px) { .card-feat .card-img { min-height: 250px; } #work.section { padding-top: 2.5rem; padding-bottom: 2.5rem; } }

/* ═══ v15: about me, animated process, AI section ═══ */
.hero-intro .mid-text { max-width: none; }
.ha-body { font-size: .92rem; line-height: 1.75; }

.flow { list-style: none; position: relative; display: grid; grid-template-columns: repeat(6,1fr); margin-top: 2.8rem; }
.flow::before { content: ''; position: absolute; left: 8.33%; right: 8.33%; top: 27px; height: 1px; background: var(--line2); }
.flow-dot { position: absolute; top: 23px; left: 8.33%; margin-left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px var(--lime-bg); z-index: 2; animation: flowmove 12s linear infinite; }
@keyframes flowmove { from { left: 8.33%; } to { left: 91.67%; } }
.flow li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; }
.flow-n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .5rem; background: var(--bg); border: 1px solid var(--line2); color: var(--lime); animation: flowlit 12s linear infinite; animation-delay: calc(var(--i) * 2.4s - .6s); }
@keyframes flowlit { 0%,10% { background: var(--lime); color: var(--bg); border-color: var(--lime); transform: scale(1.14); } 17%,100% { background: var(--bg); color: var(--lime); border-color: var(--line2); transform: scale(1); } }
.flow b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.3rem; letter-spacing: -.02em; }
.flow-c { font-size: .72rem; color: var(--sub); }

.rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.8rem; }
.rs-panel { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 1.5rem; }
.rs-hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rs-hd h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1; }
.rs-hd h3 em { color: var(--faded); margin-left: .2rem; }
.rs-hd .pr-n { margin: 0; white-space: nowrap; }
.rs-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 1.2rem; }
.viz { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: .9rem .9rem 1rem; transition: transform .3s, border-color .3s; }
.viz:hover { transform: translateY(-3px); border-color: var(--lime-bd); }
.viz svg { display: block; width: 100%; height: 112px; }
.viz h4 { font-size: .86rem; font-weight: 600; margin-top: .7rem; letter-spacing: -.01em; }
.viz p { font-size: .72rem; line-height: 1.5; color: var(--sub); margin-top: 3px; }
.viz svg * { transform-box: fill-box; transform-origin: center; }
.v-soft { fill: var(--lime-bg); stroke: var(--lime-bd); }
.v-frame { fill: var(--surface); stroke: var(--line2); }
.v-zone { fill: none; stroke: var(--line2); stroke-dasharray: 3 3; }
.v-line { fill: var(--line2); }
.v-fill { fill: var(--lime); }
.v-av { fill: var(--dim); } .v-me { fill: var(--lime); }
.v-dash { fill: none; stroke: var(--lime); stroke-width: 1.4; stroke-dasharray: 3 3; }
.v-eye { fill: none; stroke: var(--lime); stroke-width: 1.5; }
.v-ring { fill: var(--lime); opacity: .22; animation: vpulse 1.5s ease-out infinite; }
.v-bub { fill: var(--lime); animation: vbub 6s ease infinite both; animation-delay: calc(var(--d) * 1.2s); }
@keyframes vbub { 0% { opacity: 0; transform: scale(.3); } 8%,24% { opacity: 1; transform: scale(1); } 34%,100% { opacity: 0; transform: scale(.3); } }
.v-tap { animation: vtap 7s ease-in-out infinite; }
@keyframes vtap { 0%,12% { transform: translate(0,0); } 25%,37% { transform: translate(12px,17px); } 50%,62% { transform: translate(-4px,45px); } 75%,88% { transform: translate(5px,62px); } 100% { transform: translate(0,0); } }
@keyframes vpulse { from { transform: scale(.5); opacity: .5; } to { transform: scale(1.3); opacity: 0; } }
.v-nl { fill: var(--lime); opacity: .7; transform-origin: left center !important; animation: vdraw 7s ease infinite both; animation-delay: calc(var(--d) * 1.4s + .6s); }
@keyframes vdraw { 0% { transform: scaleX(0); } 12%,80% { transform: scaleX(1); } 92%,100% { transform: scaleX(0); } }
.nt { animation: vsort 7s cubic-bezier(.6,0,.2,1) infinite; }
.nt-a { fill: var(--lime); } .nt-b { fill: #F59E0B; } .nt-c { fill: #3B82F6; }
@keyframes vsort { 0%,14% { transform: translate(var(--x),var(--y)) rotate(var(--r)); } 42%,86% { transform: none; } 100% { transform: translate(var(--x),var(--y)) rotate(var(--r)); } }
.v-bar { fill: var(--lime); transform-origin: left center !important; animation: vgrow 6s cubic-bezier(.2,.8,.2,1) infinite both; animation-delay: calc(var(--d) * .35s); }
@keyframes vgrow { 0% { transform: scaleX(0); } 22%,84% { transform: scaleX(1); } 96%,100% { transform: scaleX(0); } }
.v-t { font: 700 8px 'DM Sans', sans-serif; fill: var(--bg); letter-spacing: .04em; }
.v-tl { font: 600 8px 'DM Sans', sans-serif; fill: var(--sub); letter-spacing: .06em; text-transform: uppercase; }
.v-heat { filter: blur(7px); animation: vheat 3.2s ease-in-out infinite alternate; }
.h1 { fill: #F59E0B; opacity: .5; } .h2 { fill: #FF6B4A; opacity: .45; animation-delay: .8s; } .h3 { fill: #FF6B4A; opacity: .6; animation-delay: 1.6s; }
@keyframes vheat { from { transform: scale(.8); } to { transform: scale(1.15); } }
.v-hot { fill: #FF6B4A; }
.v-rage { fill: none; stroke: #FF6B4A; stroke-width: 1.5; opacity: 0; animation: vrage 2.4s ease-out infinite; animation-delay: calc(var(--d) * .22s); }
@keyframes vrage { 0% { transform: scale(.2); opacity: .9; } 40%,100% { transform: scale(1.4); opacity: 0; } }
.v-track { stroke: var(--line2); }
.v-gauge { stroke: var(--lime); stroke-dasharray: 107; stroke-dashoffset: var(--o); transform-box: view-box !important; transform-origin: 0 0 !important; animation: vgauge 6s cubic-bezier(.2,.8,.2,1) infinite both; animation-delay: calc(var(--d) * .4s); }
@keyframes vgauge { 0% { stroke-dashoffset: 107; } 30%,86% { stroke-dashoffset: var(--o); } 100% { stroke-dashoffset: 107; } }
.v-chk path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rs-out { display: grid; grid-template-columns: 1.1fr repeat(3,1fr); margin-top: 14px; border: 1px solid var(--lime-bd); border-radius: 22px; background: var(--lime-bg); overflow: hidden; }
.rs-out > div { padding: 1.2rem 1.5rem; border-left: 1px solid var(--lime-bd); }
.rs-out > .rs-out-k { border-left: 0; display: flex; align-items: center; font-family: 'Instrument Serif', serif; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; }
.rs-out b { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 2.2rem; line-height: 1; letter-spacing: -.04em; color: var(--lime); }
.rs-out span { display: block; margin-top: 5px; font-size: .74rem; line-height: 1.45; color: var(--sub); }

.ai-wrap { background: var(--surface); }
.ai-shell { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 3.5rem; align-items: center; }
.ai-intro .eyebrow { margin-bottom: 1.6rem; }
.ai-intro .pr-lede { margin-top: 1.4rem; }
.ai-stat { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.8rem; }
.ai-stat b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 4.6rem; line-height: 1; letter-spacing: -.05em; color: var(--lime); }
.ai-stat span { font-size: .82rem; line-height: 1.5; color: var(--sub); }
.ai-demo { border: 1px solid var(--line2); border-radius: 22px; background: var(--bg); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.ai-bar { display: flex; align-items: center; gap: 6px; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.ai-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.ai-bar span { margin-left: .6rem; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ai-prompt { display: flex; align-items: center; gap: .6rem; margin: 1rem; padding: .75rem .95rem; border: 1px solid var(--lime-bd); background: var(--lime-bg); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; color: var(--text); overflow: hidden; }
.ai-spark { color: var(--lime); animation: pulse 2.4s ease infinite; }
.ai-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 40ch; max-width: 100%; border-right: 2px solid var(--lime); animation: aitype 10s steps(40) infinite; }
@keyframes aitype { 0% { width: 0; } 24%,92% { width: 40ch; } 100% { width: 0; } }
.ai-stage { display: grid; grid-template-columns: 1.15fr auto .85fr; gap: .9rem; align-items: stretch; padding: 0 1rem 1rem; }
.ai-col { display: flex; flex-direction: column; min-width: 0; }
.ai-cap { font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-bottom: .5rem; }
.ai-arrow { align-self: center; color: var(--lime); font-size: 1.2rem; }
.ai-canvas { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wb { border-radius: 8px; animation: aibuild 10s ease infinite both; animation-delay: calc(2.6s + var(--d) * .32s); }
@keyframes aibuild { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 5%,62% { opacity: 1; transform: none; } 68%,100% { opacity: 0; transform: translateY(8px) scale(.96); } }
.wb-top { display: flex; justify-content: space-between; align-items: center; }
.wb-top i { height: 7px; width: 34%; border-radius: 4px; background: var(--line2); } .wb-top i + i { width: 16px; height: 16px; border-radius: 50%; }
.wb-hero { padding: .7rem; background: var(--lime-bg); border: 1px solid var(--lime-bd); display: flex; flex-direction: column; gap: 6px; }
.wb-hero i { height: 5px; width: 38%; border-radius: 3px; background: var(--lime-bd); } .wb-hero b { height: 14px; width: 56%; border-radius: 4px; background: var(--lime); } .wb-hero u { height: 5px; width: 80%; border-radius: 3px; background: var(--lime-bd); }
.wb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.wb-card { padding: .55rem; border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 5px; background: var(--bg); }
.wb-card i { height: 5px; width: 60%; border-radius: 3px; background: var(--line2); } .wb-card b { height: 9px; width: 40%; border-radius: 3px; background: var(--dim); }
.wb-line { height: 9px; border-radius: 4px; background: var(--line2); } .wb-line + .wb-line { width: 70%; }
.wb-cta { height: 22px; border-radius: 999px; background: var(--lime); margin-top: auto; }
.ai-code { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: .9rem; border-radius: 14px; background: #0F1E14; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; overflow: hidden; }
.cdl { color: #D2F45E; white-space: nowrap; animation: aibuild 10s ease infinite both; animation-delay: calc(2.6s + var(--d) * .32s); }
.cdl.in { padding-left: 1.1rem; color: rgba(255,255,255,.78); }
.ai-tools { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 3rem; }
.ai-tools .hl { background: var(--bg); padding: 1.5rem; }
.ai-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.ai-foot span { font-size: .74rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; color: var(--lime); background: var(--lime-bg); border: 1px solid var(--lime-bd); }
@media (min-width: 901px) { #ai.section { padding-top: 4.5rem; padding-bottom: 4.5rem; } #process.section { padding-bottom: 4.5rem; } }
@media (max-width: 1100px) { .rs-grid { grid-template-columns: 1fr; } .ai-tools { grid-template-columns: 1fr 1fr; } .rs-out { grid-template-columns: repeat(3,1fr); } .rs-out > .rs-out-k { grid-column: 1 / -1; border-bottom: 1px solid var(--lime-bd); } .rs-out > .rs-out-k + div { border-left: 0; } }
@media (max-width: 900px) { .ai-shell { grid-template-columns: 1fr; gap: 2rem; } .flow { grid-template-columns: repeat(3,1fr); row-gap: 1.6rem; } .flow::before, .flow-dot { display: none; } }
@media (max-width: 600px) { .rs-row { grid-template-columns: 1fr; } .viz { display: grid; grid-template-columns: 120px 1fr; column-gap: 1rem; align-items: center; } .viz svg { grid-row: 1 / 3; height: 86px; } .viz h4 { margin-top: 0; align-self: end; } .viz p { align-self: start; }
  .rs-out { grid-template-columns: 1fr; } .rs-out > div { border-left: 0; border-top: 1px solid var(--lime-bd); } .rs-out > .rs-out-k { border-top: 0; border-bottom: 0; }
  .ai-stage { grid-template-columns: 1fr; } .ai-arrow { transform: rotate(90deg); justify-self: center; } .ai-tools { grid-template-columns: 1fr; margin-top: 2rem; } .ai-prompt { font-size: .64rem; } .ai-stat b { font-size: 3.6rem; } .flow b { font-size: 1.1rem; } }

/* ═══ v16: tighter spacing, dot-synced process, wider work, responsive flow ═══ */
#process.section, #ai.section { padding-top: 3rem; padding-bottom: 3rem; }
#work.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pr-head .eyebrow, .ai-intro .eyebrow, #work .work-lead .eyebrow { margin-bottom: 1rem; }
.flow { margin-top: 2rem; }
.rs-grid { margin-top: 2rem; }
.ai-tools { margin-top: 1.8rem; }
.ai-foot { margin-top: 1rem; }
.ai-intro .pr-lede { margin-top: 1rem; }
.ai-stat { margin-top: 1.2rem; }
.resume-wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.resume-bar { margin-bottom: 2rem; }
.contact-wrap { padding-top: 5rem; padding-bottom: 5rem; }
.contact-big { margin-bottom: 2rem; }
.contact-email { margin-bottom: 2.2rem; }
@media (min-width: 901px) { .hero { padding: 172px 2.5rem 2.2rem; } }

/* work: full width again, shorter cards */
#work .work-top, #work .cards-grid { max-width: none; }
.cs-media { aspect-ratio: auto; height: 150px; }
.card-feat .card-img { min-height: 260px; }
.card-feat .card-img-icon svg { height: 200px; }
@media (max-width: 900px) { .card-feat .card-img { min-height: 240px; } }

/* process: the dot travels node to node, each node lights only while the dot is on it */
.flow { grid-template-columns: repeat(6,1fr); row-gap: 0; }
.flow::before, .flow-dot { display: block; }
.flow::before { z-index: 0; }
.flow-dot { z-index: 1; left: 8.333%; animation: flowX 12s ease-in-out infinite; }
.flow li { z-index: 2; }
.flow-n { animation: flowOn 12s linear infinite backwards; animation-delay: calc(var(--i) * 2s); }
@keyframes flowX {
  0%,10% { left: 8.333%; opacity: 1; } 16.667%,26.667% { left: 25%; } 33.333%,43.333% { left: 41.667%; }
  50%,60% { left: 58.333%; } 66.667%,76.667% { left: 75%; } 83.333%,93.333% { left: 91.667%; opacity: 1; }
  96% { left: 91.667%; opacity: 0; } 97% { left: 8.333%; opacity: 0; } 100% { left: 8.333%; opacity: 1; }
}
@keyframes flowY {
  0%,10% { top: 8.333%; opacity: 1; } 16.667%,26.667% { top: 25%; } 33.333%,43.333% { top: 41.667%; }
  50%,60% { top: 58.333%; } 66.667%,76.667% { top: 75%; } 83.333%,93.333% { top: 91.667%; opacity: 1; }
  96% { top: 91.667%; opacity: 0; } 97% { top: 8.333%; opacity: 0; } 100% { top: 8.333%; opacity: 1; }
}
@keyframes flowOn {
  0% { background: var(--bg); color: var(--lime); border-color: var(--line2); transform: scale(1); }
  1.5%,9% { background: var(--lime); color: var(--bg); border-color: var(--lime); transform: scale(1.14); }
  11%,100% { background: var(--bg); color: var(--lime); border-color: var(--line2); transform: scale(1); }
}
@media (max-width: 900px) { .flow b { font-size: 1.1rem; } .flow-c { font-size: .68rem; padding: 0 .2rem; } }
@media (max-width: 640px) {
  .flow { grid-template-columns: 1fr; grid-auto-rows: 72px; max-width: 360px; }
  .flow::before { left: 27px; right: auto; top: 8.333%; bottom: 8.333%; width: 1px; height: auto; }
  .flow-dot { left: 27px; top: 8.333%; margin-left: -4.5px; margin-top: -4.5px; animation-name: flowY; }
  .flow li { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: 1fr 1fr; column-gap: 1rem; row-gap: 2px; align-items: center; text-align: left; }
  .flow-n { grid-row: 1 / 3; margin-bottom: 0; }
  .flow b { align-self: end; font-size: 1.25rem; line-height: 1; }
  .flow-c { align-self: start; padding: 0; font-size: .74rem; }
}
@media (max-width: 900px) {
  .section, .resume-wrap { padding-top: 3rem; padding-bottom: 3rem; }
  .contact-wrap { padding-top: 4rem; padding-bottom: 4rem; }
  .hero { padding-bottom: 2rem; }
}
@media (max-width: 1100px) and (min-width: 641px) { .rs-row { grid-template-columns: repeat(3,1fr); } }

/* ═══ v17: bold nav, compact AI + research, declutter ═══ */
.nav-links a { font-weight: 600; color: var(--text); }
.nav-links a:hover { color: var(--lime); }
.ha-kit { gap: .7rem; padding-top: 1.1rem; }
.ha-kit-k { padding-top: 7px; }
.ct-strip { justify-content: flex-start; }
.ct-strip .ct-link:first-child { padding-left: 0; border-left: 0; }
.ct-actions { margin-left: auto; }
@media (max-width: 900px) { .ct-actions { margin-left: 0; } }

#ai.section { padding-top: 2.2rem; padding-bottom: 2.2rem; }
.ai-shell { gap: 3rem; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.ai-intro .section-title { font-size: clamp(2.3rem, 3.4vw, 3.4rem); }
.ai-intro .pr-lede { font-size: .92rem; line-height: 1.7; margin-top: .8rem; }
.ai-stat { margin-top: .9rem; gap: .9rem; }
.ai-stat b { font-size: 3.2rem; }
.ai-stat span { font-size: .78rem; }
.ai-bar { padding: .5rem .9rem; }
.ai-prompt { margin: .7rem .8rem; padding: .5rem .8rem; }
.ai-stage { padding: 0 .8rem .8rem; gap: .7rem; }
.ai-cap { margin-bottom: .35rem; }
.ai-canvas { gap: 5px; padding: .6rem; }
.wb-hero { padding: .5rem; gap: 4px; } .wb-hero b { height: 10px; }
.wb-card { padding: .4rem; gap: 4px; } .wb-card b { height: 7px; }
.wb-line + .wb-line { display: none; }
.wb-line { height: 7px; } .wb-cta { height: 16px; }
.wb-top i + i { width: 12px; height: 12px; }
.ai-code { padding: .7rem .9rem; gap: 3px; font-size: .66rem; }
.ai-tools { margin-top: 1.2rem; gap: 10px; }
.ai-tools .hl { padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; }
.ai-tools .pr-n { margin: 0; }
.ai-tools .hl h4 { margin: 0; font-size: 1.2rem; }
.ai-tools .hl p { grid-column: 1 / -1; margin-top: .5rem; font-size: .78rem; line-height: 1.55; }

#process.section { padding-top: 2.4rem; padding-bottom: 2.4rem; }
#process .section-title { font-size: clamp(2.4rem, 3.8vw, 3.8rem); }
.flow { margin-top: 1.5rem; }
.rs-grid { margin-top: 1.5rem; gap: 12px; }
.rs-panel { padding: 1.1rem 1.2rem 1.2rem; }
.rs-hd h3 { font-size: 1.5rem; }
.rs-row { margin-top: .9rem; }
.viz { padding: .7rem .8rem .8rem; text-align: center; }
.viz svg { height: 96px; }
.viz h4 { margin-top: .5rem; }
.rs-out { margin-top: 12px; }
.rs-out > div { padding: .9rem 1.3rem; }
.rs-out b { font-size: 1.9rem; }
@media (max-width: 640px) { .viz { text-align: left; grid-template-columns: 120px 1fr; } .viz svg { grid-row: auto; height: 80px; } .viz h4 { margin-top: 0; align-self: center; } }
@media (max-width: 900px) { #ai.section, #process.section { padding-top: 2.4rem; padding-bottom: 2.4rem; } }
@media (max-width: 900px) { .ai-shell { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ═══ v18: mobile navigation ═══ */
section[id] { scroll-margin-top: 68px; }
.m-brand, .mnav { display: none; }
@media (max-width: 900px) {
  .m-brand { display: block; font-family: 'Instrument Serif', serif; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
  nav { height: 56px; }
  .bank-marquee { top: 56px; }
  section[id] { scroll-margin-top: 56px; }
  .mnav { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; position: fixed; z-index: 99; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; padding: .3rem; border-radius: 20px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
  .mnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border-radius: 15px; font-size: .64rem; font-weight: 600; letter-spacing: .03em; color: var(--sub); text-decoration: none; transition: color .2s, background .2s; }
  .mnav a.on { color: var(--lime); background: var(--lime-bg); }
  footer { padding-bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
}

/* ═══ v19: accessibility pass (contrast, text size, tap targets) ═══ */
:root { --sub: #A3A098; --dim: #8A877F; --faded: rgba(237,234,227,0.42); }
body.light { --sub: #5A5750; --dim: #6A675F; --faded: rgba(26,25,22,0.5); }
body.light .rbuls li { color: rgba(26,25,22,0.74); }
body.light .rp { color: rgba(26,25,22,0.76); }
.rbuls li { color: rgba(237,234,227,0.72); }
.rp { color: rgba(237,234,227,0.74); }
.rl, .rcat, .ha-kit-k, .rexp-dt, .mid-label, .pr-n, .card-feat .card-cat, .redu-t, .raward-s, .ai-cap, .ai-bar span, .ct-link span, .hero-loc span { font-size: .7rem; }
.eyebrow, .tag, .card-sm .tag, .card-feat .tag, .cs-chip, .contact-pre, .rp, .rexp-role, .flow-c, .v-tl { font-size: .72rem; }
.theme-toggle::before { content: ''; position: absolute; inset: -12px -6px; }
@media (max-width: 900px) {
  .m-brand { padding: .55rem 0; }
  .ct-link { min-height: 44px; justify-content: center; }
  .all-link { padding-top: 12px; padding-bottom: 10px; }
  .cl { padding: 12px 6px; }
  .contact-links { gap: .4rem 1rem; }
  .contact-email { padding-top: 8px; padding-bottom: 8px; }
}
.raward-s { color: var(--sub); }
@media (max-width: 900px) {
  .mnav a { font-size: .7rem; }
  .resume-card .res-main { order: -1; }
  .resume-card .res-side { border-bottom: 0; border-top: 1px solid var(--line); }
}

/* ═══ v20: real covers, on-site case studies ═══ */
.card-img-photo img, .cs-media-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-img-photo { min-height: 320px; background: var(--surface); }
.card-img-photo .cs-chip, .cs-media-photo .cs-chip { z-index: 3; }
.cs-media-photo::after { display: none; }
.cs-media-photo { height: 190px; }
.card-sm:hover .cs-media-photo img, .card-feat:hover .card-img-photo img { transform: scale(1.04); }
.cs-no { z-index: 3; -webkit-text-stroke: 1.2px rgba(255,255,255,.75); text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.cs-chip { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.more-work { margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; }
.more-work-k { padding: .9rem 1.4rem; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.more-row { display: grid; grid-template-columns: 70px 260px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 1.4rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); transition: background .2s; }
.more-row:last-child { border-bottom: 0; }
.more-row:hover { background: var(--lime-bg); }
.more-row b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.25rem; letter-spacing: -.02em; }
.more-y { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.more-d { font-size: .82rem; color: var(--sub); }
.more-row i { font-style: normal; color: var(--lime); font-size: 1.1rem; }
@media (max-width: 900px) { .more-row { grid-template-columns: 1fr auto; gap: .2rem 1rem; } .more-y { grid-column: 1 / -1; } .more-row b { grid-row: 2; } .more-row i { grid-row: 2; } .more-d { grid-column: 1 / -1; } .card-img-photo { min-height: 240px; } }

/* case study pages */
.case-page .case-brand { display: block; font-family: 'Instrument Serif', serif; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; margin-right: 2.5rem; }
.case-page .nav-links { margin-right: auto; }
.case-page .nav-links a { font-weight: 600; }
.case-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 3rem; align-items: center; padding: 120px 2.5rem 2.5rem; }
.case-hero .eyebrow { margin-bottom: 1.2rem; }
.case-hero .section-title { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.case-sub { margin: 1.1rem 0 1.3rem; font-size: 1.1rem; line-height: 1.6; color: var(--sub); max-width: 46ch; }
.case-cover { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 28px 60px rgba(0,0,0,.12); aspect-ratio: 16/10; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-meta { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.case-meta div { padding: 1rem 1.4rem; font-size: .88rem; font-weight: 500; border-left: 1px solid var(--line); }
.case-meta div:first-child { border-left: 0; }
.case-meta span { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.case-stats { margin: 2rem 2.5rem 0; grid-template-columns: repeat(4,1fr); }
.case-stats > div { border-left: 1px solid var(--lime-bd); }
.case-stats > div:first-child { border-left: 0; }
.case-body { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 2rem 2.5rem; }
.case-body article { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: 1.5rem; }
.case-body h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.6rem; letter-spacing: -.03em; margin-bottom: .9rem; }
.case-body .rbuls li { font-size: .86rem; line-height: 1.65; }
.case-board { padding: 1rem 2.5rem 3rem; }
.case-board-hd { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.2rem; }
.case-board-hd .eyebrow { margin: 0; }
.cs-ext { font-size: .78rem; color: var(--sub); text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 2px; }
.case-board-imgs { display: flex; flex-direction: column; gap: 14px; }
.case-board-imgs img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.case-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding: 0 2.5rem 3rem; }
.case-nav a { display: flex; flex-direction: column; gap: 4px; padding: 1.2rem 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s; }
.case-nav a:hover { border-color: var(--lime-bd); transform: translateY(-3px); }
.case-nav span { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.case-nav b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.25rem; letter-spacing: -.02em; }
.case-nav-next { text-align: right; align-items: flex-end; }
.case-nav-all { justify-content: center; align-items: center; font-weight: 600; font-size: .84rem; padding: 1.2rem 2rem; }
.case-page footer { padding-bottom: 1.6rem; }
@media (max-width: 1100px) { .case-meta { grid-template-columns: repeat(3,1fr); } .case-meta div:nth-child(4) { border-left: 0; } .case-meta div:nth-child(n+4) { border-top: 1px solid var(--line); } .case-body { grid-template-columns: 1fr; } .case-stats { grid-template-columns: repeat(2,1fr); } .case-stats > div:nth-child(3) { border-left: 0; } .case-stats > div:nth-child(n+3) { border-top: 1px solid var(--lime-bd); } }
@media (max-width: 900px) { .case-hero { grid-template-columns: 1fr; padding: 90px 1.25rem 1.5rem; gap: 1.5rem; } .case-page .m-brand { margin-right: 0; } .case-page nav { height: 56px; } .case-stats { margin: 1.5rem 1.25rem 0; } .case-body, .case-board, .case-nav { padding-left: 1.25rem; padding-right: 1.25rem; } .case-meta { grid-template-columns: 1fr 1fr; } .case-meta div { border-left: 0; border-top: 1px solid var(--line); } .case-meta div:nth-child(-n+2) { border-top: 0; } .case-meta div:nth-child(even) { border-left: 1px solid var(--line); } .case-nav { grid-template-columns: 1fr 1fr; } .case-nav-all { grid-column: 1 / -1; order: 3; } .case-page footer { padding-bottom: 1.6rem; } .case-page .mnav { display: none; } }
@media (max-width: 600px) { .case-stats { grid-template-columns: 1fr 1fr; } .case-stats > div { padding: .8rem 1rem; } .case-stats > div:nth-child(even) { border-left: 1px solid var(--lime-bd); } .case-nav { grid-template-columns: 1fr; } .case-nav-next { text-align: left; align-items: flex-start; } }
