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

:root {
  --bg:      #141a22;
  --bg2:     #1b222c;
  --bg3:     #222830;
  --text:    #d3dae1;
  --text2:   #9aa4ae;
  --bright:  #eef2f6;
  --accent:  #c9b97a;
  --accent2: #8a7a4a;
  --border:  rgba(255,255,255,0.08);
  --text2-light: #b9c2cb;
  --serif:   'EB Garamond', Georgia, serif;
  --mono:    'DM Mono', 'Courier New', monospace;
  --red:     #e05c5c;
  --green:   #57ab5a;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.7; }
::selection { background: rgba(201,185,122,0.25); }

/* ─── LAYOUT ─── */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}

/* ─── LEFT PANEL ─── */
.left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 2.5rem 3rem;
  border-right: 1px solid var(--border);
}
.name {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--bright);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.name a { color: inherit; }
.name a:hover { opacity: 1; }
.title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.title .lc { text-transform: lowercase; }
.nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-item::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
  transition: width 0.25s ease;
}
.nav-item:hover, .nav-item.active { color: var(--accent); opacity: 1; }
.nav-item:hover::before, .nav-item.active::before { width: 44px; }

.social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.social a { color: var(--text2); display: flex; align-items: center; transition: color 0.2s; }
.social a:hover { color: var(--accent); opacity: 1; }

/* ─── RIGHT PANEL ─── */
.right { padding: 5rem 3rem 8rem; min-width: 0; }

section {
  margin-bottom: 6.5rem;
  scroll-margin-top: 5rem;
}
section ~ section {
  padding-top: 3.75rem;
  border-top: 1px solid var(--border);
}
.page-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: 2.5rem;
}
.section-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text2-light);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.1);
}

/* ─── ABOUT ─── */
.about-top {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
}
.about-photo-empty {
  width: 140px;
  height: 140px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--text2);
  padding: 0.5rem;
  line-height: 1.5;
}
.about-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #8b9ab0;
  line-height: 1.95;
}
.about-text p + p { margin-top: 1.1rem; }
.about-text a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201,185,122,0.3);
  padding-bottom: 1px;
}
.about-text a:hover { opacity: 1; border-color: var(--accent); }
.about-readmore {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.stats-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.stats-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: statsScroll 26s linear infinite;
}
.stats-marquee:hover .stats-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .stats-track { animation: none; }
}
@keyframes statsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-stat {
  flex-shrink: 0;
  width: 260px;
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg2);
}
.hero-stat-number {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text2-light);
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: 0.65rem;
}
.hero-stat-source {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text2);
  opacity: 0.6;
}

/* ─── SERVICES (flat offerings list) ─── */
.section-intro {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 2rem;
}
.service-list { display: flex; flex-direction: column; }
.service-list-item {
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.service-list-item:hover { background: var(--bg2); border-color: var(--border); }
.service-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.81rem;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
}

/* ─── SKILLS ─── */
.skills-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.skills-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: skillsScroll 32s linear infinite;
}
.skills-marquee:hover .skills-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .skills-track { animation: none; }
}
@keyframes skillsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.skill-logo-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.skill-logo-item:hover { border-color: rgba(201,185,122,0.35); background: var(--bg3); }
.skill-logo-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ─── EXPERIENCE ─── */
.exp-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.exp-item:hover { background: var(--bg2); border-color: var(--border); }
.exp-period {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text2);
  text-transform: uppercase;
  padding-top: 0.2rem;
  line-height: 1.5;
}
.exp-co {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.exp-role {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}
.exp-desc {
  font-size: 0.81rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 0.85rem;
  font-weight: 300;
}
.tag {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,185,122,0.07);
  border: 1px solid rgba(201,185,122,0.13);
  border-radius: 2px;
  padding: 0.2rem 0.55rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ─── PROJECTS (isometric deconstructed cards) ─── */
.project-feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}
.project-feature:hover { border-color: rgba(201,185,122,0.3); }
@media (min-width: 760px) {
  .project-feature { flex-direction: row; }
  .project-canvas { width: 46%; flex-shrink: 0; }
  .project-info { width: 54%; }
}
.project-canvas {
  background: var(--bg);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.project-canvas::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,185,122,0.10), transparent 70%);
  pointer-events: none;
}
.project-canvas[data-modal] { cursor: pointer; }
.iso-scene { width: 320px; height: 300px; perspective: 2200px; position: relative; }
.iso-stack {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-38deg);
  transition: transform 0.4s ease;
}
.project-canvas:hover .iso-stack { transform: rotateX(55deg) rotateZ(-38deg) translateZ(6px); }
.iso-layer {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 124px;
  margin-left: -140px; margin-top: -62px;
  background-size: cover;
  background-position: top center;
  border-radius: 4px;
  box-shadow: 0 26px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}
.iso-layer-1 { transform: translateZ(34px); }
.iso-layer-2 { transform: translateZ(0) translateY(32px); opacity: 0.88; }
.project-info { padding: 2rem 2rem 1.75rem; display: flex; flex-direction: column; }
.project-title-big {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.project-tags-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.project-desc-big {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.project-links-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: auto; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,185,122,0.3);
  border-radius: 2px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.card-link:hover { background: rgba(201,185,122,0.08); border-color: var(--accent); opacity: 1; }
.card-placeholder { font-size: 0.7rem; color: var(--text2); font-style: italic; }

/* ─── WRITING ─── */
.writing-archive-link { font-size: 0.78rem; margin-bottom: 2rem; display: inline-block; }
.writing-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
  min-width: 0;
  max-width: 100%;
}
.writing-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg2);
  opacity: 0;
  transform: translateY(14px);
  animation: writingIn 0.5s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .writing-card { opacity: 1; transform: none; animation: none; }
}
@keyframes writingIn { to { opacity: 1; transform: translateY(0); } }
.writing-thumb { width: 100%; height: 130px; object-fit: cover; background: var(--bg3); display: block; }
.writing-thumb-empty {
  width: 100%;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,185,122,0.10), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px),
    var(--bg3);
}
.writing-thumb-empty svg { width: 26px; height: 26px; color: var(--accent2); opacity: 0.85; }
.writing-thumb-empty span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
}
.writing-card-body { padding: 1rem 1.1rem 1.2rem; }
.writing-card-date { font-size: 0.62rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.writing-card-title { font-family: var(--serif); font-size: 0.9rem; color: var(--bright); line-height: 1.4; }
.writing-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 1rem;
}
.writing-item:hover { background: var(--bg2); border-color: var(--border); }
.writing-pub { font-size: 0.68rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.5; padding-top: 0.2rem; }
.writing-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--bright); margin-bottom: 0.4rem; }
.writing-desc { font-size: 0.81rem; color: var(--text2); line-height: 1.8; font-weight: 300; }

/* ── DEMO MODAL ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #f8f7f2;
  border-radius: 6px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e5e3dc;
  position: sticky; top: 0;
  background: #f8f7f2;
  z-index: 10;
}
.modal-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}
.modal-close:hover { color: #222; }
.modal-body { padding: 2rem 2rem 2.5rem; font-family: 'Inter', system-ui, sans-serif; }

/* ── DASHBOARD STYLES (light mode, inside modal) ── */
.dash { background: #fafaf7; color: #0a0a0a; font-family: 'Inter', system-ui, sans-serif; padding: 2rem; }
.dash-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e5e5e0; margin-bottom: 2rem; }
.dash-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: #0a0a0a; }
.dash-subtitle { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: #737373; margin-bottom: 0.4rem; }
.dash-yoy { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-bottom: 1.5rem; }
.kpi-card { background: #fff; border: 1px solid #e0ddd6; border-radius: 6px; padding: 1.25rem 1.4rem; border-top-width: 3px; }
.kpi-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #737373; margin-bottom: 0.6rem; }
.kpi-value { font-size: 1.65rem; font-weight: 800; color: #0a0a0a; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.2rem; }
.kpi-sub { font-size: 0.72rem; color: #737373; margin-bottom: 0.5rem; }
.kpi-chg { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; padding-top: 0.5rem; border-top: 1px solid #f0f0eb; }
.kpi-chg-label { font-size: 0.65rem; color: #aaa; font-weight: 400; }
.cumul-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-bottom: 1.5rem; }
.cumul-card { background: #fff; border: 1px solid #e0ddd6; border-radius: 6px; padding: 1.25rem 1.4rem; }
.cumul-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.85rem; }
.cumul-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #737373; }
.cumul-range { font-size: 0.65rem; color: #aaa; margin-top: 0.15rem; }
.cumul-yoy { font-size: 0.9rem; font-weight: 800; }
.cumul-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.45rem 0; border-top: 1px solid #f0f0eb; }
.cumul-row:first-child { border-top: none; }
.cumul-row-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #737373; }
.cumul-row-val { font-size: 1.1rem; font-weight: 800; }
.chart-card { background: #fff; border: 1px solid #e0ddd6; border-radius: 6px; padding: 1.5rem 1.5rem 1rem; margin-bottom: 1rem; }
.chart-card-title { font-size: 1.2rem; font-weight: 800; color: #0a0a0a; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.chart-card-sub { font-size: 0.75rem; color: #737373; margin-bottom: 1rem; }
.chart-wrap { width: 100%; overflow-x: auto; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-bottom: 1.5rem; border-bottom: 1px solid #e5e5e0; position: relative; }
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 18px; }
.bar { border-radius: 2px 2px 0 0; width: 100%; transition: opacity 0.2s; cursor: default; }
.bar:hover { opacity: 0.8; }
.bar-label { font-size: 9px; color: #737373; margin-top: 4px; }
.bar-val { font-size: 8px; font-weight: 700; color: #0a0a0a; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; color: #555; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.section-row-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #737373; margin-bottom: 0.85rem; }
.ops-dash { background: #f8fafc; padding: 2rem; font-family: 'Inter', system-ui, sans-serif; }
.ops-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.ops-card-title { font-size: 1.1rem; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.day-bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.day-bar { border-radius: 3px 3px 0 0; width: 100%; }
.day-label { font-size: 10px; font-weight: 700; color: #475569; }
.day-val { font-size: 9px; font-weight: 800; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; margin: 0.2rem; }
.stock-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.stock-table th { text-align: left; padding: 0.6rem 0.75rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4338ca; border-bottom: 3px solid #4338ca; }
.stock-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
.stock-table tr:hover td { background: #f8fafc; }
.oos-row td { background: #fef2f2 !important; }
.tier-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.65rem; font-weight: 700; }
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.65rem; font-weight: 800; }

/* ── CASE STUDIES ── */
.case-study { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 1.5rem; transition: border-color 0.2s; }
.case-study:hover { border-color: rgba(201,185,122,0.25); }
.case-study-header { padding: 1.5rem 1.75rem 1.25rem; background: var(--bg2); border-bottom: 1px solid var(--border); }
.case-study-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.4rem; }
.case-study-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--bright); margin-bottom: 0.25rem; }
.case-study-sub { font-size: 0.75rem; color: var(--text2); font-weight: 300; }
.case-study-body { padding: 1.5rem 1.75rem; }
.case-study-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 1.25rem; }
.metric { background: var(--bg); padding: 1rem 1.1rem; text-align: center; }
.metric-value { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--accent); line-height: 1; margin-bottom: 0.3rem; }
.metric-label { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); line-height: 1.4; }
.case-study-narrative { font-size: 0.81rem; color: var(--text2); line-height: 1.85; font-weight: 300; }
.case-study-narrative p + p { margin-top: 0.75rem; }
.case-study-link { font-size: 0.75rem; margin-top: 1rem; display: inline-block; }

/* ── TESTIMONIALS ── */
.testimonial-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 1.75rem; margin-bottom: 1rem; }
.testimonial-quote { font-family: var(--serif); font-size: 1.05rem; color: #8b9ab0; line-height: 1.9; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-quote::before { content: '\201C'; font-size: 2.5rem; line-height: 0; vertical-align: -0.6rem; color: var(--accent2); margin-right: 0.2rem; }
.testimonial-author { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.testimonial-role { font-size: 0.72rem; color: var(--text2); margin-top: 0.15rem; }
.testimonial-link { font-size: 0.72rem; margin-top: 0.5rem; display: block; }
.testimonial-placeholder-card { border: 1px dashed rgba(255,255,255,0.15); border-radius: 4px; padding: 1.75rem; margin-bottom: 1rem; text-align: center; }
.testimonial-placeholder-card p { font-size: 0.78rem; color: var(--text2); font-weight: 300; }

/* ── CONTACT ── */
.contact-form { max-width: 560px; }
.contact-row { display: flex; gap: 1rem; }
.contact-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; flex: 1; }
.contact-field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2-light);
}
.contact-field input, .contact-field textarea {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
}
.contact-field input:focus, .contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-honeypot { display: none; }
.contact-submit {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201,185,122,0.35);
  border-radius: 2px;
  padding: 0.65rem 1.4rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.contact-submit:hover { background: rgba(201,185,122,0.08); border-color: var(--accent); }
.contact-submit:disabled { opacity: 0.5; cursor: default; }
.contact-status { font-size: 0.78rem; margin-top: 0.85rem; min-height: 1.2em; }
.contact-status.success { color: var(--green); }
.contact-status.error { color: var(--red); }
@media (max-width: 860px) {
  .contact-row { flex-direction: column; }
}

/* ── FOOTER ── */
.footer-note { font-size: 0.73rem; color: var(--text2); line-height: 1.8; font-weight: 300; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }

/* ── MOBILE NAV (hamburger + fullscreen overlay) ── */
.mobile-menu-btn { display: none; }
.mobile-nav-overlay { display: none; }

/* ── MOBILE ── */
@media (max-width: 860px) {
  .wrapper { grid-template-columns: 1fr; }
  .left { position: relative; height: auto; padding: 3rem 1.5rem 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .nav { display: none; }
  .right { padding: 3rem 1.5rem 5rem; }
  .exp-item, .writing-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .cumul-grid { grid-template-columns: 1fr; }
  .about-top { flex-direction: column; }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    top: 2.75rem;
    right: 1.5rem;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
  }
  .mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--bright);
    transition: transform 0.2s, opacity 0.2s;
  }

  .mobile-nav-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
  .mobile-nav-close {
    position: absolute;
    top: 2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--bright);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .mobile-nav-links a {
    font-family: var(--mono);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text2);
    text-decoration: none;
  }
  .mobile-nav-links a.active,
  .mobile-nav-links a:hover { color: var(--accent); }
}
