/* ===== Design Tokens ===== */
:root {
  --bg:       #ffffff;
  --bg2:      #f5f5f4;
  --bg3:      #e8e8e6;
  --ink:      #0e0e0e;
  --ink2:     #4a4a47;
  --ink3:     #999996;
  --rule:     #dddddb;
  --rule2:    #bbbbba;
  --yellow:   #F5C800;
  --pad:      20px;
}

@media (min-width: 600px)  { :root { --pad: 28px; } }
@media (min-width: 900px)  { :root { --pad: 44px; } }

body.dark {
  --bg:   #0e0e0e;
  --bg2:  #1a1a1a;
  --bg3:  #252525;
  --ink:  #f0f0ee;
  --ink2: #b0b0ac;
  --ink3: #666663;
  --rule: #2e2e2e;
  --rule2:#3a3a3a;
  --yellow: #D4AC00;
  background-color: #050505;
  background-image: radial-gradient(circle, #1a1a1a 0.5px, transparent 0.5px);
  background-size: 24px 24px;
}

/* ===== Layout ===== */
.site-wrap {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0.5px 0 0 var(--rule), -0.5px 0 0 var(--rule);
}

/* ===== Typography ===== */
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(ellipse at center, #ffffff 0%, #f2f2f2 100%);
  transition: background-color 0.2s, color 0.2s;
  margin: 0;
}

.page-title {
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ===== Navigation ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--pad);
  border-bottom: 0.5px solid var(--rule);
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

/* Hamburger toggle — injected by main.js into every .topbar (far right).
   Hidden above 720px. The two SVGs inside swap based on .topbar.nav-open. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.topbar.nav-open .nav-toggle .icon-open { display: none; }
.topbar.nav-open .nav-toggle .icon-close { display: inline-block; }
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo img {
  display: block;
  image-rendering: pixelated;
}
body.dark .nav-logo img {
  filter: invert(1);
}
.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-trigger::after {
  content: '';
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
}
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-dropdown-trigger.active {
  color: var(--ink);
  font-weight: 600;
  background: #F5C800;
  padding: 3px 8px 3px;
  margin: -3px -8px -3px;
}
body.dark .nav-dropdown-trigger.active {
  background: #D4AC00;
  color: #0e0e0e;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--bg);
  border: 0.5px solid var(--rule);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  min-width: 180px;
}
body.dark .nav-dropdown-menu {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  border-bottom: 0.5px solid var(--rule);
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover {
  background: var(--bg2);
  color: var(--ink);
}
.nav-dropdown-item.active {
  background: #F5C800;
  color: var(--ink);
  font-weight: 600;
}
body.dark .nav-dropdown-item.active {
  background: #D4AC00;
  color: #0e0e0e;
}
.nav-dropdown-item-sub {
  font-size: 9px;
  color: var(--ink3);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
.nav-link.active {
  color: var(--ink);
  font-weight: 600;
  background: #F5C800;
  padding: 3px 8px 3px;
  border-bottom: none;
  margin: -3px -8px -3px;
}
body.dark .nav-link.active {
  background: #D4AC00;
  color: #0e0e0e;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg3);
  color: var(--ink2);
  font-size: 9px;
  line-height: 1;
}

/* ===== Hero ===== */
.hero {
  padding: 0;
  border-bottom: 0.5px solid var(--rule);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.hero-left {
  padding: 56px var(--pad) 52px;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    gap: 0;
    min-height: 600px;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px var(--pad);
  }
}
.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
@media (min-width: 900px) {
  .hero-photo {
    min-height: 600px;
  }
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #F5C800;
  border: none;
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  margin-bottom: 20px;
  font-weight: 600;
}
body.dark .eyebrow {
  color: #0e0e0e;
  background: #D4AC00;
}
.hero-name {
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.hero-pov {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 520px;
  margin: 0 0 8px;
}
.hero-tagline {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0.5px solid var(--rule2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
  font-family: inherit;
}
.btn:hover { background: var(--bg2); }
.btn-filled {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-filled:hover { opacity: 0.85; background: var(--ink); }
.vp-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--rule);
}
.vp {
  padding: 16px 18px;
  border-right: 0.5px solid var(--rule);
}
.vp:last-child { border-right: none; }
.vp-num {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.vp-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink2);
  line-height: 1.4;
}
/* Hero carousel */
.hero-carousel {
  width: 100%;
  min-height: 260px;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
}
@media (min-width: 900px) { .hero-carousel { min-height: 380px; } }
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  min-height: 260px;
}
@media (min-width: 900px) { .carousel-track { min-height: 380px; } }
.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}
.carousel-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.carousel-dots {
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: rgba(255,255,255,0.8);
  transform: scale(1.3);
}
.carousel-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 2;
}

/* ===== Logo Bar ===== */
.logo-bar-wrap {
  background: #0e0e0e;
  color: #f0f0ee;
  padding: 20px var(--pad);
  border-bottom: none;
  overflow: hidden;
}
body.dark .logo-bar-wrap {
  background: #1a1a1a;
  border-top: 0.5px solid #2e2e2e;
  border-bottom: 0.5px solid #2e2e2e;
}
.logo-bar-wrap .section-label {
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.logo-marquee {
  overflow: hidden;
  margin-top: 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  /* -50% lands 24px short of the duplicate set's first item — gap between sets isn't in 50% */
  100% { transform: translateX(calc(-50% - 24px)); }
}
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 40px;
}
.logo-item img {
  max-width: 120px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.logo-item:hover img {
  opacity: 1;
}
.logo-item--sm img {
  max-height: 19px;
}
body.dark .logo-item img {
  opacity: 0.4;
}
body.dark .logo-item:hover img {
  opacity: 0.8;
}

/* ===== Section shared ===== */
.sec {
  padding: 48px var(--pad);
  border-bottom: 0.5px solid var(--rule);
}
.sec-header {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: baseline;
  border-top: 0.5px solid var(--rule);
  padding-top: 16px;
}
.sec-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ===== Experience layout ===== */
.exp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 900px) {
  .exp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}

/* Featured roles panel */
.exp-featured {
  display: flex;
  flex-direction: column;
  gap: 0.5px;
  background: var(--bg3);
}
@media (min-width: 900px) {
  .exp-featured {
    border-left: 0.5px solid var(--rule);
  }
}
.exp-featured-card {
  background: var(--bg);
  padding: 24px;
  transition: background 0.15s;
}
.exp-featured-card:hover { background: var(--bg2); }
.exp-featured-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #F5C800;
  margin-bottom: 10px;
}
body.dark .exp-featured-label { color: #D4AC00; }
.exp-featured-company {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
.exp-featured-role {
  font-size: 11px;
  color: var(--ink3);
  margin-bottom: 10px;
}
.exp-featured-desc {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.exp-featured-stats {
  display: flex;
  gap: 20px;
}
.exp-featured-stat {
  font-size: 11px;
  color: var(--ink3);
}
.exp-featured-stat-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 3px;
}

/* ===== Timeline ===== */
.timeline {
  display: flex;
  flex-direction: column;
}
.tl-row {
  display: grid;
  grid-template-columns: 52px 1px 1fr;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--rule);
}
@media (min-width: 600px) {
  .tl-row {
    grid-template-columns: 64px 1px 1fr;
    gap: 0 20px;
  }
}
.tl-row:last-child { border-bottom: none; }
.tl-year {
  font-size: 10px;
  color: var(--ink2);
  line-height: 1.5;
  text-align: right;
  padding-top: 2px;
}
.tl-line {
  background: var(--rule2);
  position: relative;
}
.tl-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.tl-role {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.tl-company {
  font-size: 12px;
  color: var(--ink2);
  margin-bottom: 4px;
}
.tl-desc {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.55;
}
.tl-outcome {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  color: var(--ink2);
  margin-top: 6px;
}

/* ===== Expertise Grid ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 700px) {
  .expertise-grid { grid-template-columns: repeat(4, 1fr); }
}
.exp-item {
  background: var(--bg);
  padding: 24px 20px;
}
.exp-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ink2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.exp-icon svg {
  width: 18px;
  height: 18px;
}
.exp-item:hover .exp-icon {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.exp-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.exp-desc {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.5;
}

/* ===== Testimonials ===== */
.testimonial {
  max-width: 600px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--rule);
}
.testimonial:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.testimonial p {
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 8px;
}
.testimonial cite {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink3);
  font-style: normal;
}

/* Carousel — slides stack in one grid cell, only the active one is visible */
.testimonial-carousel {
  position: relative;
  max-width: 600px;
}
.testimonial-track { display: grid; }
.testimonial-track > .testimonial {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.testimonial-track > .testimonial.testimonial--active {
  opacity: 1;
  pointer-events: auto;
}
.testimonial-dots {
  display: flex;
  gap: 0;
  margin: 24px -8px 0;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  border: 0;
  background-color: var(--rule);
  background-clip: content-box;
  cursor: pointer;
  transition: background-color 0.2s;
}
.testimonial-dot:hover { background-color: var(--ink2); }
.testimonial-dot--active {
  width: 12px;
  height: 12px;
  padding: 6px;
  background-color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track > .testimonial { transition: none; }
}

/* ===== Site footer ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--pad);
  border-top: 0.5px solid var(--rule);
  margin-top: 48px;
}
.site-footer-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink2);
}

/* Footer theme toggle — desktop/tablet only; mobile is OS-driven */
.site-footer .theme-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--rule);
  background: transparent;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.site-footer .theme-toggle:hover {
  opacity: 1;
  color: var(--ink);
  border-color: var(--ink2);
}
.site-footer .theme-toggle .icon-sun { display: none; }
.site-footer .theme-toggle .icon-moon { display: block; }
body.dark .site-footer .theme-toggle .icon-sun { display: block; }
body.dark .site-footer .theme-toggle .icon-moon { display: none; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-heading {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-body {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cred-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--rule);
  font-size: 13px;
}
.cred-val {
  font-size: 11px;
  color: var(--ink3);
}

/* Contact opportunity grid */
.contact-opp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 600px) {
  .contact-opp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .contact-opp-grid { grid-template-columns: repeat(4, 1fr); }
}
.contact-opp {
  background: var(--bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.contact-opp-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ink2);
}
.contact-opp-icon svg {
  width: 18px;
  height: 18px;
}
.contact-opp-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-opp-desc {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}
.contact-opp-cta {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  border-top: 0.5px solid var(--rule);
  padding-top: 10px;
  transition: color 0.15s;
}
.contact-opp:hover .contact-opp-cta {
  color: var(--ink);
}
.contact-opp.active {
  background: var(--bg2);
  box-shadow: inset 0 -2px 0 #F5C800;
}
body.dark .contact-opp.active {
  box-shadow: inset 0 -2px 0 #D4AC00;
}
.contact-opp.active .contact-opp-icon {
  background: #F5C800;
  color: #1a1a1a;
  border-color: #F5C800;
}
body.dark .contact-opp.active .contact-opp-icon {
  background: #D4AC00;
  color: #0e0e0e;
  border-color: #D4AC00;
}
.contact-opp { cursor: pointer; }

/* Inline form on home page */
.home-inline-form {
  margin-top: 20px;
  padding: 28px 24px;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
}
.home-inline-form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}
.home-inline-form-context {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  flex: 1;
}
.home-inline-form-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0.5px solid var(--rule);
  background: var(--bg);
  color: var(--ink3);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}
.home-inline-form-close:hover {
  background: var(--bg3);
  color: var(--ink);
}
.home-inline-form .contact-form {
  max-width: 100%;
}

/* ===== Portfolio page ===== */
.ph {
  padding: 48px var(--pad);
  border-bottom: 0.5px solid var(--rule);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 600px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
.portfolio-card {
  background: var(--bg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
}
.portfolio-card:hover { background: var(--bg2); }
.card-thumb {
  aspect-ratio: 4 / 3;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
.portfolio-card:hover .card-thumb img {
  transform: scale(1.02);
}
.card-thumb-logo {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 1;
}
.card-thumb-logo img {
  height: 14px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  opacity: 0.35;
  filter: brightness(0) invert(1);
}
.portfolio-card:hover .card-thumb-logo img {
  opacity: 0.55;
}
.card-info {
  padding: 20px;
  border-top: 0.5px solid var(--rule);
}
.card-num {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink3);
  margin-bottom: 8px;
}
.card-company {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 3px;
}
.card-title {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink2);
  margin-bottom: 4px;
}
.card-hook {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.45;
  margin-bottom: 12px;
}
.card-cta {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink2);
  border-top: 0.5px solid var(--rule);
  padding-top: 10px;
  display: block;
}
.portfolio-card:hover .card-cta { color: var(--ink); }

/* WIP cards */
.portfolio-card--wip { cursor: default; }
.portfolio-card--wip:hover { background: var(--bg); }
.card-thumb--wip {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-wip-logo {
  max-width: 33%;
  max-height: 33%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

/* ===== Case Study ===== */
.cs-nav {
  padding: 12px var(--pad);
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs-back, .cs-next-link {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.15s;
}
.cs-back:hover, .cs-next-link:hover { color: var(--ink); }
.cs-hero { padding: 40px var(--pad) 0; }
.cs-top {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .cs-top {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.cs-num {
  font-size: 10px;
  color: var(--ink3);
  margin-bottom: 8px;
}
.cs-name {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cs-sub { font-size: 13px; color: var(--ink2); }
.cs-logo img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
}
body.dark .cs-logo img { filter: grayscale(1) invert(1); }

/* Stats */
.cs-stats {
  display: flex;
  border: 0.5px solid var(--rule);
  margin: 0 var(--pad);
  overflow-x: auto;
}
.cs-stat {
  padding: 14px 20px;
  border-right: 0.5px solid var(--rule);
  min-width: 110px;
  flex-shrink: 0;
}
.cs-stat:last-child { border-right: none; }
.cs-stat-num {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}
.cs-stat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}

/* Meta strip */
.cs-meta-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px var(--pad) 0;
}
.cs-meta {
  display: flex;
  border: 0.5px solid var(--rule);
  min-width: max-content;
}
@media (min-width: 700px) {
  .cs-meta {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}
.cs-meta-cell {
  padding: 12px 16px;
  border-right: 0.5px solid var(--rule);
  min-width: 110px;
}
@media (min-width: 700px) { .cs-meta-cell { min-width: 0; } }
.cs-meta-cell:last-child { border-right: none; }
.cs-meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 2px;
}
.cs-meta-value { font-size: 12px; font-weight: 600; }

/* Body layout */
.cs-body {
  margin: 0 var(--pad);
  padding: 36px 0;
  position: relative;
  overflow: hidden;
}
.cs-watermark {
  position: absolute;
  top: 60px;
  right: -20px;
  pointer-events: none;
  z-index: 0;
}
.cs-watermark img {
  width: 240px;
  height: auto;
  max-width: 240px;
  object-fit: contain;
  opacity: 0.04;
  filter: grayscale(1);
}
body.dark .cs-watermark img {
  filter: grayscale(1) invert(1);
  opacity: 0.03;
}
.cs-sidebar,
.cs-main {
  position: relative;
  z-index: 1;
}
@media (min-width: 800px) {
  .cs-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
  }
}
.cs-sidebar {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--rule);
}
@media (min-width: 800px) {
  .cs-sidebar {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    padding-right: 32px;
    border-right: 0.5px solid var(--rule);
  }
  .cs-main { padding-left: 40px; }
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 20px 0 8px;
  padding-bottom: 7px;
  border-bottom: 0.5px solid var(--rule);
}
.sidebar-label:first-child { margin-top: 0; }
.cs-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 7px;
  border: 0.5px solid var(--rule2);
  margin: 2px 2px 2px 0;
  color: var(--ink2);
}
.cs-outcome {
  font-size: 11px;
  color: var(--ink2);
  padding: 6px 0;
  border-bottom: 0.5px solid var(--rule);
  line-height: 1.4;
}

/* Prose (case study & article body) */
.prose p { font-size: 13px; line-height: 1.75; color: var(--ink2); margin-bottom: 16px; }
.prose p.lead { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 24px; }
.prose h2 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; color: var(--ink); }
.prose blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 20px;
  margin: 32px 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
}

/* Inline prose images */
.prose-img {
  margin: 28px 0;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  overflow: hidden;
}
.prose-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
}
.prose-img-caption {
  font-size: 10px;
  color: var(--ink3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-top: 0.5px solid var(--rule);
}
.prose-img-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  margin: 28px 0;
}
@media (min-width: 600px) {
  .prose-img-row { grid-template-columns: 1fr 1fr; }
}
.prose-img-row .prose-img {
  margin: 0;
  border: none;
}

/* Case study image grid */
.cs-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  margin: 20px 0;
}
@media (min-width: 600px) {
  .cs-image-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .cs-image-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.cs-image-cell {
  background: var(--bg2);
  min-height: 280px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cs-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg2);
  padding: 8px;
  display: block;
}
.cs-image-caption {
  font-size: 10px;
  color: var(--ink3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 16px;
}

/* Next strip */
.cs-next-strip {
  margin: 0 var(--pad);
  padding: 28px 0;
  border-top: 0.5px solid var(--rule);
  display: flex;
  justify-content: flex-end;
}
.cs-next-btn {
  text-align: right;
  text-decoration: none;
  color: inherit;
}
.cs-next-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}
.cs-next-title {
  font-size: 17px;
  font-weight: 600;
}
.cs-next-btn:hover .cs-next-title { text-decoration: underline; }

/* ===== Thinking page ===== */
.thinking-hero {
  padding: 48px var(--pad);
  border-bottom: 0.5px solid var(--rule);
}
.thinking-sub {
  font-size: 14px;
  color: var(--ink2);
  max-width: 480px;
  line-height: 1.6;
  margin-top: 12px;
}
.pillar-bar {
  display: flex;
  flex-wrap: wrap;
  padding: 0 var(--pad);
  border-bottom: 0.5px solid var(--rule);
  background: var(--bg);
}
.pillar-btn {
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -0.5px;
}
.pillar-btn:hover { color: var(--ink); }
.pillar-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Featured layout */
.article-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 700px) {
  .article-featured { grid-template-columns: 1.6fr 1fr; }
}
.article-featured-main,
.article-featured-side-item {
  background: var(--bg);
  padding: 28px var(--pad);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
}
.article-featured-main:hover,
.article-featured-side-item:hover { background: var(--bg2); }
.article-featured-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
}

/* Article card grid */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 600px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-card {
  background: var(--bg);
  padding: 24px 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
}
.article-card:hover { background: var(--bg2); }

/* Shared article card elements */
/* Article graphics */
.art-graphic {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  margin-bottom: 16px;
  color: var(--ink);
  overflow: hidden;
}
.art-graphic svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
}
.art-graphic.large {
  height: 180px;
}
.art-graphic.large svg {
  max-width: 360px;
}
.art-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-pillar {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 10px;
}
.art-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}
.art-title.large {
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.art-excerpt {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 12px;
}
.art-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink3);
  border-top: 0.5px solid var(--rule);
  padding-top: 10px;
  align-items: center;
}
.art-cta { color: var(--ink2); }
.article-card:hover .art-cta,
.article-featured-main:hover .art-cta,
.article-featured-side-item:hover .art-cta { color: var(--ink); }

/* ===== Article page ===== */
.art-nav {
  padding: 12px var(--pad);
  border-bottom: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.art-back, .art-share, .art-footer-back {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink3);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.art-back:hover, .art-footer-back:hover { color: var(--ink); }

/* Share button styled as eyebrow-tag pill (yellow bg, dark text) */
.art-share {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  background: #F5C800;
  border: none;
  padding: 5px 12px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.15s;
}
.art-share:hover {
  color: #1a1a1a;
  opacity: 0.85;
}
body.dark .art-share {
  color: #0e0e0e;
  background: #D4AC00;
}
body.dark .art-share:hover {
  color: #0e0e0e;
}
.art-header {
  padding: 48px var(--pad) 40px;
  border-bottom: 0.5px solid var(--rule);
  max-width: 800px;
}
.art-header-pillar {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
}
.art-header-title {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.art-header-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink3);
  align-items: center;
}
.art-tag {
  font-size: 11px;
  padding: 3px 9px;
  border: 0.5px solid var(--rule2);
  color: var(--ink2);
}
.art-body {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--pad);
}
@media (min-width: 800px) {
  .art-body { grid-template-columns: 1fr 220px; }
}
.art-content {
  padding: 40px 0;
  max-width: 640px;
}
@media (min-width: 800px) {
  .art-content {
    padding: 40px 48px 40px 0;
    border-right: 0.5px solid var(--rule);
  }
  .art-aside { padding: 40px 0 40px 32px; }
}
.art-aside-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--rule);
}
.art-aside-related { margin-top: 28px; }
.art-aside-item {
  padding: 12px 0;
  border-bottom: 0.5px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: block;
}
.art-aside-item:hover .art-aside-title { text-decoration: underline; }
.art-aside-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.3;
}
.art-aside-pillar { font-size: 10px; color: var(--ink3); }
.art-footer {
  margin: 0 var(--pad);
  padding: 28px 0;
  border-top: 0.5px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.art-next-btn {
  text-align: right;
  text-decoration: none;
  color: inherit;
}
.art-next-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}
.art-next-title { font-size: 15px; font-weight: 600; }
.art-next-btn:hover .art-next-title { text-decoration: underline; }

/* ===== Thinking preview (home) ===== */
.thinking-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 20px;
}
@media (min-width: 600px) {
  .thinking-preview-grid { grid-template-columns: repeat(3, 1fr); }
}
.thinking-preview-card {
  background: var(--bg);
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
}
.thinking-preview-card:hover { background: var(--bg2); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  text-align: center;
  max-width: 500px;
}
.lightbox-counter {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* ===== Contact page ===== */
.contact-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-bottom: 28px;
}
@media (min-width: 600px) {
  .contact-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .contact-type-grid { grid-template-columns: repeat(5, 1fr); }
}
.contact-type-card {
  background: var(--bg);
  padding: 20px 16px;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
}
.contact-type-card:hover { background: var(--bg2); }
.contact-type-card.active {
  background: var(--bg2);
  box-shadow: inset 0 -2px 0 #F5C800;
}
body.dark .contact-type-card.active {
  box-shadow: inset 0 -2px 0 #D4AC00;
}
.contact-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--ink2);
}
.contact-type-card.active .contact-type-icon {
  background: #F5C800;
  color: #1a1a1a;
  border-color: #F5C800;
}
body.dark .contact-type-card.active .contact-type-icon {
  background: #D4AC00;
  color: #0e0e0e;
  border-color: #D4AC00;
}
.contact-type-icon svg { width: 16px; height: 16px; }
.contact-type-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--ink);
}
.contact-type-desc {
  font-size: 10px;
  color: var(--ink3);
  line-height: 1.4;
}
.contact-context {
  padding: 16px 20px;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  margin-bottom: 32px;
}
.contact-context p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  margin: 0;
}
.contact-form {
  max-width: 640px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.form-group:only-child {
  margin-bottom: 16px;
}
.form-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 6px;
}
.form-input {
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 0.5px solid var(--rule2);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #F5C800;
}
.form-input::placeholder {
  color: var(--ink3);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.form-note {
  font-size: 11px;
  color: var(--ink3);
}
.form-note a {
  color: var(--ink2);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule2);
}
.form-note a:hover { color: var(--ink); }
.form-success {
  padding: 24px 0;
}
.contact-direct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
}
@media (min-width: 600px) {
  .contact-direct-grid { grid-template-columns: 1fr 1fr; }
}
.contact-direct-item {
  background: var(--bg);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  display: block;
}
.contact-direct-item:hover { background: var(--bg2); }
.contact-direct-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 4px;
}
.contact-direct-value {
  font-size: 13px;
  color: var(--ink);
}

/* ===== Image placeholder fallback ===== */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  color: var(--ink3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Portfolio v2 ===== */
.v2-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
  border-bottom: 0.5px solid var(--rule);
}
@media (min-width: 900px) {
  .v2-hero { grid-template-columns: 55% 45%; }
}
.v2-hero-text {
  padding: 56px var(--pad) 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.v2-hero-label {
  margin-bottom: 16px;
}
.v2-hero-title {
  font-size: clamp(40px, 8vw, 68px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.v2-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--ink2);
  max-width: 520px;
  margin: 18px 0 0;
}
.v2-hero-image {
  overflow: hidden;
  min-height: 280px;
  position: relative;
}
@media (min-width: 900px) {
  .v2-hero-image { min-height: 100%; }
}
.v2-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: v2-kenburns 20s ease-in-out infinite alternate;
}
@keyframes v2-kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-hero-image img { animation: none; }
}

/* v2 quote band — quiet typographic strip on white, thin rules separate from neighbors */
.v2-quote-band {
  padding: 32px var(--pad);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.v2-quote-label {
  margin-bottom: 24px;
  text-align: center;
}
.v2-quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .v2-quotes {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 56px;
  }
}
.v2-quote {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
  color: var(--ink);
  margin: 0;
}
.v2-quote-rule {
  display: none;
  width: 1px;
  height: 60%;
  background: #F5C800;
  align-self: center;
  justify-self: center;
}
@media (min-width: 900px) {
  .v2-quote-rule { display: block; }
}

/* v2 logo bar — white background, watermark logos */
.v2-logo-bar {
  background: var(--bg);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.v2-logo-bar .section-label {
  color: var(--ink);
  text-align: center;
}

/* v2 static logo strip — centered, evenly spaced, watermark treatment (no marquee) */
.v2-logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding-top: 12px;
}
.v2-logo-strip .logo-item img {
  filter: brightness(0) grayscale(100%) opacity(0.25);
  opacity: 1; /* override the base .logo-item img opacity:0.55 — fade is already in the filter chain */
}
.v2-logo-strip .logo-item:hover img {
  opacity: 1; /* keep the watermark static; no hover brighten */
}
body.dark .v2-logo-strip .logo-item img {
  filter: brightness(0) invert(1) grayscale(100%) opacity(0.3);
}


/* ===== Portfolio v2 — portrait + rotating quote band ===== */
.v2-pq {
  display: grid;
  grid-template-columns: 1fr;
  padding: 80px var(--pad);
  gap: 32px;
}
@media (min-width: 900px) {
  .v2-pq {
    grid-template-columns: 60% 40%;
    align-items: center;
    gap: 48px;
  }
}
.v2-pq-text {
  border-left: 3px solid #F5C800;
  padding-left: 24px;
}
.v2-pq-quotes {
  display: grid;
}
.v2-pq-quote {
  grid-column: 1;
  grid-row: 1;
  font-size: 22px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  color: #111;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.v2-pq-quote.v2-pq-quote--active {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .v2-pq-quote { transition: none; }
}
.v2-pq-attribution {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin: 16px 0 0;
}
.v2-pq-portrait {
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 900px) {
  .v2-pq-portrait { justify-content: flex-end; }
}
.v2-pq-portrait img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  display: block;
}



/* ===== Portfolio v2 — principles row: avatar, divider, stacked label + quote ===== */
.v2-principles {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 32px;
}
.v2-principles-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}
.v2-principles-divider {
  width: 0;
  height: 48px;
  border-left: 1px solid var(--rule);
  margin: 0 16px;
  flex-shrink: 0;
}
.v2-principles-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}
.v2-principles-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5C800;
  margin-bottom: 4px;
}
.v2-principles-quotes {
  display: grid;
  min-width: 0;
}
.v2-principles-quote {
  grid-column: 1;
  grid-row: 1;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #555;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-principles-quote.v2-principles-quote--active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .v2-principles-quote { transition: none; }
}

/* ===== Portfolio v2 — filter view (editorial column + horizontal case rows) ===== */
.v2-filter-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px var(--pad) 64px;
  background: transparent;
}
@media (min-width: 900px) {
  .v2-filter-view {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}
.v2-filter-name {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.v2-filter-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  margin: 0;
  max-width: 32ch;
}

/* List borrows the .cs-stats / .cs-meta detail-page outline pattern: a hairline
   container with internal dividers between rows. Gives the list the same weight
   as case-study meta strips. */
.v2-filter-list {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--rule);
}
.v2-filter-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  border-bottom: 0.5px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.v2-filter-row:last-child {
  border-bottom: none;
}
.v2-filter-row-thumb {
  width: 200px;
  height: 138px;
  flex-shrink: 0;
  background: #000;
  overflow: hidden;
}
.v2-filter-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
@media (max-width: 700px) {
  .v2-filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .v2-filter-row-thumb { width: 100%; height: 240px; }
}
.v2-filter-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.v2-filter-row-company {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.v2-filter-row-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 6px;
}
.v2-filter-row-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
/* Stats line under the description — matches home-page .exp-featured-stat
   pattern (bold number + small label, multiple inline) but slightly tighter
   for the row context. Bumps the row from descriptor-only to outcome-bearing. */
.v2-filter-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.v2-filter-row-stat {
  font-size: 11px;
  color: var(--ink3);
}
.v2-filter-row-stat-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 3px;
}
/* Primary CTA — same yellow-pill-on-hover treatment in cards and rows. Rest
   state is plain text in the row; on parent hover the pill fills yellow with
   black text. Both .card-cta (in v2 grid) and .v2-filter-row-cta share the
   pill geometry so the action reads identically across views. */
.v2-filter-row-cta {
  flex-shrink: 0;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink2);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.v2-filter-row:hover .v2-filter-row-cta {
  background: #F5C800;
  color: #111;
  border-color: #F5C800;
  text-decoration: none;
}

/* ===== Portfolio v2 — All-view alignment to canonical patterns =====
   Tab bar inherits .pillar-bar (matches thinking.html exactly).
   Grid inherits .portfolio-grid (hairline-divider pattern shared with portfolio.html
   and visually consistent with thinking.html's .article-grid).
   Cards inherit .portfolio-card incl. hover affordance.
   Only override: case-study thumbs need a slightly taller aspect ratio than the
   canonical 4/3 so the tallest screenshots (GitLab 2060×1810) aren't excessively
   letterboxed. object-fit: contain stays canonical, so no image is cropped. */
#v2-portfolio-view .card-thumb {
  aspect-ratio: 2060 / 1810;
  height: auto;
}
/* Match the row CTA: same yellow-pill-on-hover, sized to text. The canonical
   .card-cta border-top hairline is dropped in v2 cards (it would butt against
   the pill); the existing thumb→card-info hairline already provides separation
   between the meta block and the action. */
#v2-portfolio-view .card-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#v2-portfolio-view .portfolio-card:hover .card-cta {
  background: #F5C800;
  color: #111;
  border-color: #F5C800;
  text-decoration: none;
}

/* v2 filter aside — capabilities stacked vertically; matches the home-page
   .tl-outcome chip language so the filter aside ties to the timeline visually. */
.v2-filter-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.v2-filter-bullets li {
  display: inline-block;
  background: var(--bg2);
  border: 0.5px solid var(--rule);
  color: var(--ink2);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 2px 8px;
}

/* ===== Mobile nav (≤ 720px) =====
   Hamburger replaces the inline link list. When .topbar.nav-open, the link
   stack reveals as a full-width column below the topbar's first row. The
   .nav-dropdown becomes inline flow (no popup positioning) so the Portfolio
   submenu sits in line with the other links. */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .topbar .nav-links {
    display: none;
    /* Nav-links wraps to its own row below the logo + hamburger row.
       `order: 1` keeps row 1 = logo, hamburger regardless of DOM insertion. */
    order: 1;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 12px calc(var(--pad) * -1) -12px;
    border-top: 0.5px solid var(--rule);
  }
  .topbar.nav-open .nav-links {
    display: flex;
  }

  .topbar .nav-link,
  .topbar .nav-dropdown-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px var(--pad);
    border-bottom: 0.5px solid var(--rule);
    border-radius: 0;
    margin: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    letter-spacing: 0.07em;
    min-height: 44px;
  }
  .topbar .nav-link:hover {
    border-bottom-color: var(--rule);
    background: var(--bg2);
  }

  /* Active dropdown trigger — drop the desktop yellow pill on mobile, just
     leave the text bold so it doesn't compete with the link rows visually. */
  .topbar .nav-dropdown-trigger.active {
    background: transparent;
    padding: 14px var(--pad);
    margin: 0;
    color: var(--ink);
    font-weight: 600;
  }
  body.dark .topbar .nav-dropdown-trigger.active {
    background: transparent;
    color: var(--ink);
  }

  .topbar .nav-dropdown {
    width: 100%;
    display: block;
  }
  .topbar .nav-dropdown-menu {
    position: static;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    min-width: 0;
  }
  .topbar .nav-dropdown-item {
    padding: 12px var(--pad) 12px calc(var(--pad) + 16px);
    border-bottom: 0.5px solid var(--rule);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Tab bar — horizontal scroll instead of wrapping to 2-3 rows. The seven
     filter tabs stay on one line, scrollable. Right-edge fade hints there's
     more offscreen. Touch targets bumped to 44px tall. */
  .pillar-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;             /* Firefox */
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
  .pillar-bar::-webkit-scrollbar { display: none; }

  .pillar-btn {
    padding: 14px 16px;
    flex-shrink: 0;
    min-height: 44px;
  }
}


/* ===== Article author byline (top + bottom) ===== */
.art-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.art-author-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.art-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.art-author-bio {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.5;
}
.art-author-bio a {
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.art-author-bio a:hover {
  color: var(--ink);
}
.art-author--top {
  margin-top: 20px;
}
.art-author--bottom {
  margin: 48px var(--pad) 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--rule);
}

/* Form success — yellow accent on links (LinkedIn etc.).
   Light mode uses a darker yellow so it passes WCAG AA on white (~5.3:1).
   Dark mode keeps the standard yellow. */
.form-success a {
  color: #8B6500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-success a:hover {
  opacity: 0.85;
}
body.dark .form-success a {
  color: var(--yellow);
}
