@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --color-text: #171411;
  --color-text-secondary: #6f665b;
  --color-text-body: #2e2922;
  --color-text-muted: #514940;
  --color-text-light: #8a8178;
  --color-text-lighter: #9e9588;
  --color-border: rgba(23,20,17,.12);
  --color-border-light: rgba(23,20,17,.08);
  --color-border-subtle: rgba(23,20,17,.06);
  --color-surface: #fff;
  --color-surface-warm: #faf8f5;
  --color-frosted: rgba(250, 248, 245, 0.55);
  --color-green: #22b455;
  --color-teal: #02968a;
  --gradient: linear-gradient(135deg, #99e5ff, #d199ff, #ff999b, #ffca99);
  --gradient-line: linear-gradient(90deg, transparent 0%, #99e5ff 20%, #d199ff 45%, #ff999b 75%, transparent 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  background:
    radial-gradient(circle at 68.75% 0%, rgba(255,202,153,0.1) 0%, 9%, rgba(255,202,153,0) 18%), radial-gradient(circle at 62.08% 10%, rgba(255,153,155,0.23) 0%, 8.55%, rgba(255,153,155,0) 19%), radial-gradient(circle at 53.75% 0.83%, rgba(209,153,255,0.33) 0%, 11.9%, rgba(209,153,255,0) 17%), radial-gradient(circle at 41.67% 0%, rgba(153,229,255,0.32) 0%, 6.7%, rgba(153,229,255,0) 20%);
  background-attachment: fixed, fixed, fixed;
  color: #171411;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.2' numOctaves='1' seed='3' stitchTiles='stitch' result='t'/%3E%3CfeComponentTransfer in='t' result='dots'%3E%3CfeFuncR type='discrete' tableValues='0 0 0 0 0 0 1'/%3E%3CfeFuncG type='discrete' tableValues='0 0 0 0 0 0 1'/%3E%3CfeFuncB type='discrete' tableValues='0 0 0 0 0 0 1'/%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 0.4'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== PAGE ====== */
.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== SCROLL SNAP ====== */
.snap-container {
  scroll-snap-type: y proximity;
  overflow-y: auto;
  height: 100vh;
}
.snap-section {
  scroll-snap-align: start;
}
[id] { scroll-margin-top: 100px; }

/* ====== SCROLL FADE-IN ====== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

/* ====== PAGE HERO SHELL (all inner pages) ====== */
.page-hero {
  margin-bottom: 16px;
  padding-top: 24px;
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 56px;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

/* V1: full-width frost on scroll — add .nav--frost-full to <nav> to enable */
.nav--frost-full.scrolled {
  background: rgba(250, 248, 245, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(23,20,17,0.06);
}

.brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #171411;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

/* V2 (default): brand gets deep frosted glass on scroll */
.nav:not(.nav--frost-full).scrolled .brand {
  background: rgba(250, 248, 245, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 6px rgba(23,20,17,0.08), inset 0 0.5px 0 rgba(255,255,255,0.5);
}

.pill-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(250, 248, 245, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 6px rgba(23,20,17,0.08), inset 0 0.5px 0 rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 4px;
}

.pill-nav a {
  position: relative;
  z-index: 1;
  color: #6f665b;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
}

.pill-nav:hover { cursor: none; }
.pill-nav a { cursor: none; }

/* ====== HAMBURGER (hidden on desktop) ====== */
.ham-btn { display: none; }
.mobile-menu-overlay { display: none; }
.mobile-menu { display: none; }

.pill-nav a.active { color: #171411; }
.pill-nav a:not(.active):hover { color: #171411; }

/* Sliding pill indicator */
.nav-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  pointer-events: none;
  will-change: left, width, transform;
  transform-origin: center center;
}

.nav-pill-indicator--ready {
  transition: left 0.62s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.62s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-pill-indicator--liquid {
  transition: left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover ghost pill */
.nav-pill-hover-ghost {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  opacity: 0;
  pointer-events: none;
  transition: left 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.18s ease;
  box-shadow: 0 0 12px rgba(0,0,0,0.04);
  filter: opacity(0.35);
}

/* ====== CARDS ====== */
.card {
  border-radius: 20px;
  border: 1px solid rgba(23,20,17,.12);
  background: rgba(255,255,255);
  overflow: hidden;
}

.quote-card.card,
.terminal-card.card,
.mini-strip.card,
.testimonial.card { box-shadow: none; }

.project { box-shadow: 0 8px 30px rgba(46, 37, 24, .04); }
.project:hover { box-shadow: 0 16px 50px rgba(46, 37, 24, .08); }

/* ====== HERO ====== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr .9fr;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: auto;
  margin-top: max(60px, calc(50vh - 400px));
  margin-bottom: max(60px, calc(50vh - 340px));
}

.hero-main {
  grid-row: span 2;
  padding: 96px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  border: 2.5px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.badge-open {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a7a3a;
  background: rgba(34,180,85,.12);
  padding: 6px 14px;
  border-radius: 999px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22b455;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.terminal-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: #6f665b;
  display: inline-block;
  margin-bottom: 10px;
}
.t-prompt { color: #22b455; font-weight: bold;}
.t-cmd { color: #6f665b; font-weight: 600; }

h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 144;
  font-style: normal;
  font-size: clamp(45px, 6.4vw, 90px);
  letter-spacing: normal;
  max-width: 780px;
  line-height: 1;
}


.hero-copy {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.5;
  color: #6f665b;
  margin-top: 10px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;}
.pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(23,20,17,.08);
}
.pill-blue { color: #1a6b7a; }
.pill-green { color: #0a6b62; }
.pill-purple { color: #5a3d80; }

/* Side cards */
.side-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.side-card h3 { font-size: 16px; color: #6f665b; font-weight: 600; letter-spacing: -0.04em; }
.side-card p { font-size: 22px; line-height: 1.08; letter-spacing: -0.05em; }
.tiny-list { display: grid; gap: 10px; margin-top: 24px; }
.tiny-list span { font-size: 15px; color: #514940; }

.terminal-card {
  background: #fff;
  color: #171411;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
}
.terminal-card.side-card { padding: 0; }
.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: linear-gradient(to bottom, #FAFAF9, #F0EFED);
  border-bottom: 1px solid rgba(23,20,17,.18);
}
.terminal-card .tiny-list { padding: 16px; margin-top: 0; }
.terminal-titlebar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.terminal-titlebar .red {background: #ff999b;}
.terminal-titlebar .yellow {background: linear-gradient(135deg, #99e5ff, #d199ff, #d199ff, #ffca99);}
.terminal-titlebar .green {background: #ffca99;}
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #8a8178;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-right: 48px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.terminal-body {
  padding: 10px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.terminal-line { color: #171411; }
.t-path { color: #22b455; }
.t-dollar { color: #22b455; margin: 0 4px; }
.t-input { color: #171411; }
.terminal-output {
  color: #6f665b;
  padding-left: 2px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.terminal-list span { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #6f665b; }
.terminal-list b { color: #02968a; font-weight: 600; margin-right: 6px; }
.terminal-blank { height: 6px; }

.quote-card {
  background: #fff;
  color: #171411;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 24px;
  border-radius: 20px;
}
.quote-card h3 { color: rgba(26,23,20,.45); align-self: flex-end; }
.quote-card { text-align: center; justify-content: center; align-items: center; }
.quote-card p {
  font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 48;
  font-size: clamp(21px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: normal;
  font-weight: 400;
  font-style: italic;
}

.mini-strip {
  padding: 0;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.mini-marquee {
  overflow: hidden;
  width: 100%;
  padding: 24px 0;
}

.mini-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: miniScroll 18s linear infinite;
}

.mini-marquee-track span { opacity: .8; white-space: nowrap; }

@keyframes miniScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ====== SECTIONS ====== */
section { margin-bottom: 90px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 24px;
}
.section-head h2 { font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 36; font-style: normal; font-size: 34px; letter-spacing: normal; }
.section-head p { color: #6f665b; max-width: 430px; line-height: 1.5; }

/* ====== WORK ====== */
.work-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}


.work-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

.project {
  min-height: 360px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.project {
  position: relative;
  cursor: default;
}
.project:hover {
  transform: translateY(-4px);
}

.wip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.project:hover .wip-overlay {
  opacity: 1;
}
.wip-overlay span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  padding: 8px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
}

.project.big { min-height: 480px; }

.project-preview {
  min-height: 210px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(23,20,17,.08), rgba(23,20,17,.02)),
    repeating-linear-gradient(90deg, rgba(23,20,17,.06) 0 1px, transparent 1px 22px);
  border: 1px solid rgba(23,20,17,.08);
}

.project h3 { margin: 22px 0 8px; font-size: 26px; letter-spacing: -0.04em; }
.project p { color: #6f665b; line-height: 1.45; font-size: 15px; max-width: 460px; }

.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.meta span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid rgba(23,20,17,.12);
  border-radius: 8px;
  padding: 7px 10px;
  color: #6f665b;
}

.small-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.small-row .project { min-height: 300px; }
.small-row .project-preview { min-height: 120px; }
.small-row h3 { font-size: 19px; }

/* ====== BUILDING ====== */
.building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.build-card {
  padding: 24px; position: relative;
  border: 1px solid rgba(23,20,17,.12);
  background: #fff;
  transition: box-shadow 0.3s ease;
}
.build-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2.5px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.build-card:hover::after { opacity: 1; }
.build-card:hover {
  border-color: transparent;
  box-shadow: 0 16px 50px rgba(46, 37, 24, .08);
}
.build-visit {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #171411;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.build-visit svg { transition: transform 0.2s ease; }
.build-visit:hover svg { transform: translate(2px, -2px); }
.build-card:hover .build-visit { opacity: 1; }
.build-visit--disabled {
  color: #8a8178;
  pointer-events: none;
}
.build-card h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.03em; }
.build-card p { color: #6f665b; line-height: 1.48; font-size: 14px; }

.build-row { display: flex; gap: 16px; align-items: flex-start; flex-direction: column; }
.build-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(23,20,17,.06);
  border: 1px solid rgba(23,20,17,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #514940;
}
.build-info { flex: 1; min-width: 0; }

.build-status {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 8px;
}
.build-status.shipped { background: rgba(2,150,138,.12); color: #02968a; }
.build-status.in-dev { background: rgba(210,160,60,.14); color: #a07820; }

/* ====== PROOF ====== */
.proof-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partners-marquee {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  min-height: 240px;
  overflow: hidden;
}

.partners-marquee h3 {
  font-size: 14px;
  color: #8a8178;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
}

.partners-marquee .marquee-track {
  gap: 32px;
  animation-duration: 28s;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #171411;
  flex-shrink: 0;
}

.logo-mark svg, .logo-mark img { flex-shrink: 0; height: 22px; width: auto; border-radius: 4px; }

.logo-mark span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Testimonial carousel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.testimonial-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.testimonial-track .testimonial {
  width: calc(33.333% - 11px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(23,20,17,.12);
  background: rgba(255,255,255);
  font-size: 14px;
  color: #6f665b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(23,20,17,.06);
  border-color: rgba(23,20,17,.2);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23,20,17,.15);
  transition: background 0.3s;
}

.carousel-dots .dot.active {
  background: #171411;
}

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
  padding-left: 30px;
  opacity: 0.9;
}
.logo-pill {
  border: 1px solid rgba(23,20,17,.12);
  background: rgba(255,255,255);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: #2e2922;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial { padding: 36px; }
.testimonial-msg { font-size: 16px; line-height: 1.2; letter-spacing: -0.045em; font-weight: 500; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(23,20,17,.08);
  flex-shrink: 0;
  object-fit: cover;
}
.testimonial-name { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.testimonial-role { font-size: 13px; color: #8a8178; }

/* ====== PULLQUOTES ====== */
.pullquote {
  text-align: center;
  padding: 100px 20px;
}
.pullquote h2 {
  margin: 0 auto;
  max-width: 740px;
  font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 48;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1.1;
  letter-spacing: normal;
  color: #171411;
}
.pullquote h2 strong {
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pullquote-attr {
  margin-top: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  color: #2e2922;
  text-align: end;
  margin-right: 80px;
}


/* ====== END ====== */
.end-note {
  text-align: center;
  padding: 90px 20px;
}
.end-note h2 {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 48;
  font-size: clamp(38px, 5.6vw, 75px);
  line-height: .92;
  letter-spacing: -0.075em;
}

.site-footer {
  margin-top: auto;
  padding-top: 32px;
}

/* ====== CTA SECTION ====== */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  border: 0.5px solid rgba(23,20,17,.10);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-line);
}
.cta-section .cta-bottom-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-line);
}
.cta-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9e9588;
  margin: 0 0 10px;
  font-weight: 400;
}
.cta-heading {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 36;
  font-style: normal;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: #171411;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.cta-sub {
  font-size: 14px;
  color: #6f665b;
  margin: 0;
  font-weight: 400;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  justify-content: center;
  min-width: 140px;
}
.btn-primary {
  background: transparent;
  color: #171411;
  border: 0.5px solid rgba(23,20,17,.12);
}
.cta-btn {
  position: relative;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid transparent;
  background: var(--gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.cta-btn:hover::after { opacity: 1; }
.cta-btn:hover { border-color: transparent; }
.cta-btn:hover span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-btn:hover svg[fill="currentColor"] { fill: url(#cta-grad); }
.cta-btn:hover svg[fill="none"] { stroke: url(#cta-grad); }
.btn-secondary {
  background: transparent;
  color: #171411;
  border: 0.5px solid rgba(23,20,17,.12);
}

/* ====== FOOTER BAR ====== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  color: #9e9588;
  font-size: 12px;
}
.home-footer {
  padding: 14px 4px;
}
.footer-center {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-icon {
  color: #9e9588;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-icon:hover { color: #171411; }

/* ====== OLD FOOTER (inner pages) ====== */
.footer-divider {
  height: 2px;
  margin-top: auto;
  border-radius: 2px;
  background: var(--gradient);
}

@media (max-width: 850px) {
  .cta-section {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
    gap: 24px;
  }
  .cta-actions { align-items: stretch; width: 100%; max-width: 240px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ====== INNER PAGES ====== */
body.inner {
  background-attachment: scroll;
  background-size: 100% 100vh;
  background-repeat: no-repeat;
}

/* ── Highlighters ── */
.hl { background: linear-gradient(180deg, transparent 58%, #ffe08a 58%, #ffe08a 90%, transparent 90%); padding: 0 2px; }
.hl-green { background: linear-gradient(180deg, transparent 58%, #b8ecc8 58%, #b8ecc8 90%, transparent 90%); padding: 0 2px; }
.hl-blue { background: linear-gradient(180deg, transparent 58%, #bde0f0 58%, #bde0f0 90%, transparent 90%); padding: 0 2px; }
.hl-pink { background: linear-gradient(180deg, transparent 58%, #f0c6d0 58%, #f0c6d0 90%, transparent 90%); padding: 0 2px; }

body.inner .card { box-shadow: none; }
body.inner .bento-hero .card,
body.inner .contact-hero-card { box-shadow: 0 24px 80px rgba(46, 37, 24, .08); }

/* ── About: Hero ── */
.bento-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.bento-hero .hero-main {
  grid-row: span 1;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 320px; padding: 24px;
  border: 2.5px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.hero-kicker {
  font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 72;
  font-size: clamp(32px, 4.4vw, 51px); font-weight: 700;
  letter-spacing: normal; line-height: 1.1; margin-bottom: 16px;
  color: #171411; font-style: normal;
}
.hero-name {
  font-size: 26px; color: #6f665b; line-height: 1.4;
  font-weight: 400;
}
.hero-name strong { color: #171411; font-weight: 600; }
.hero-photo {
  padding: 0; overflow: hidden;
  background: linear-gradient(135deg, #e8e4df, #d4cfc8);
  min-height: 200px;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── About: Bio ── */
.bento-bio {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding-bottom: 16px;
}
.bio-card { padding: 24px; }
.bio-card p {
  font-size: 17px; line-height: 1.75; color: #2e2922;
}

/* ── About: Pullquote Strip ── */
.pullquote-strip {
  text-align: center; padding: 100px 32px; margin: 24px 0;
}
.pullquote-strip h2 {
  font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 48; font-style: italic;
  font-weight: 400; font-size: clamp(22px, 3vw, 36px);
  line-height: 1.45; color: #171411; max-width: 680px; margin: 0 auto;
}
.pullquote-strip h2 strong {
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pullquote-cta {
  font-size: 16px; color: #6f665b; margin-top: 20px;
  font-weight: 600;
}
.pullquote-cta a {
  color: #171411; text-decoration: underline; text-underline-offset: 3px;
}
.pullquote-cta a:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── About: Section Title ── */
.bento-section-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 36;
  font-style: normal;
  font-size: 34px; font-weight: 700; letter-spacing: normal;
  margin-bottom: 24px;
  margin-top: -2px;
}

/* ── About: Vibes ── */
.vibes-card { padding: 24px; margin-bottom: 16px; }
.vibes-text { font-size: 16px; line-height: 1.85; color: #2e2922; }
.vibe-tag {
  display: inline-block; padding: 2px 12px;
  background: rgba(23,20,17,.06); border-radius: 999px;
  font-size: 15px; font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #514940; vertical-align: baseline; margin: 0 2px;
}
.vibe-aside { font-size: 15px; color: #9e9588; font-style: normal; }
.vibes-tags {
  display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 64px;
}
.vtag {
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
  font-weight: 500; border: 1px solid;
}
.vtag-warm { //background: #fff8f0; 
color: #8a5a20; border-color: rgba(138,90,32,.15); }
.vtag-green { //background: #f0f9f4; 
color: #0a6b62; border-color: rgba(10,107,98,.12); }
.vtag-blue { //background: #f0f6fa; 
color: #1a6b7a; border-color: rgba(26,107,122,.12); }
.vtag-pink { //background: #faf0f2; 
color: #8a3d50; border-color: rgba(138,61,80,.12); }

/* ── About: Experience Chips ── */
.bento-exp-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 16px;
}
.exp-chip { padding: 24px; }
.exp-chip h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.3px; }
.exp-chip .role {
  font-size: 13px; color: #6f665b;
}

/* ── Contact Page ── */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-hero-card {
  padding: 40px 24px;
  border: 2.5px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-hero-card h1 {
  font-size: clamp(29px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -2px;
  word-spacing: 0.15em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.contact-hero-card p {
  font-size: 18px;
  color: #6f665b;
  line-height: 1.5;
}
.contact-bento {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  padding-bottom: 80px;
  margin: auto;
}
.contact-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}
.contact-info h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #2e2922;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-link-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(23,20,17,.04);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-link-icon svg { width: 20px; height: 20px; color: #6f665b; }
.contact-link-label {
  font-size: 12px; color: #9e9588; display: block; margin-bottom: 2px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-link-value { font-weight: 500; }
.contact-form-card { padding: 24px; }
.contact-form-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #6f665b;
  margin-bottom: 6px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(23,20,17,.12);
  border-radius: 12px;
  background: #faf8f5;
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  color: #171411;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #9e9588;
  box-shadow: 0 0 0 3px rgba(158,149,136,.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #9e9588; }
.form-textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #171411;
  color: #fff7ea;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}
.form-submit:hover { background: #2e2922; }
.form-submit:active { transform: scale(0.99); }

/* ── Explorations (Side Quests) ── */
.explore-hero-card {
  padding: 128px 40px; text-align: center;
  border: 2.5px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
body.inner .explore-hero-card { box-shadow: 0 24px 80px rgba(46, 37, 24, .08); }
.explore-hero-kicker {
  font-family: 'Fraunces', serif; font-variation-settings: 'opsz' 72;
  font-size: clamp(34px, 4.4vw, 58px); font-weight: 700;
  letter-spacing: normal; line-height: 1.1; margin-bottom: 12px;
  font-style: normal; color: #171411;
}
.explore-hero-sub { font-size: 18px; color: #6f665b; margin: 0 auto; }
.explore-section-sub {
  font-size: 15px; color: #6f665b;
  padding: 48px 0 4px;
  font-style: normal;
}
.explore-aside { font-size: 13px; opacity: 0.6; }

.explore-shell { height: 420px; overflow: hidden; margin-bottom: 16px; }

.hmasonry {
  display: flex; flex-wrap: wrap; gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  flex-direction: column; align-content: flex-start;
  height: 100%; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.hmasonry::-webkit-scrollbar { height: 4px; }
.hmasonry::-webkit-scrollbar-track { background: transparent; }
.hmasonry::-webkit-scrollbar-thumb { background: rgba(23,20,17,.10); border-radius: 2px; }
.hmasonry::-webkit-scrollbar-thumb:hover { background: rgba(23,20,17,.2); }

.explore-card {
  flex: 0 0 auto; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden;
  background: transparent; border: none;
}
.explore-card img {
  height: 100%; width: 100%;
  display: block; object-fit: cover;
}

.hmasonry--picasso .explore-card { height: 100%; }
.hmasonry--picasso .explore-card.half { height: calc(50% - 8px); }
.hmasonry--vault .explore-card { height: calc(50% - 8px); }
.hmasonry--tinker .explore-card { height: 100%; width: 300px; }

.explore-card--dark {
  background: #2a2d32; color: #fff7ea;
  border-color: rgba(255,255,255,.06);
}
.explore-placeholder {
  height: 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.explore-placeholder-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.5); font-weight: 500;
}

.explore-grid-film {
  display: grid;
  grid-template-columns: 3fr 3fr 2fr;
  grid-template-rows: 1.4fr 1fr;
  gap: 16px; height: 480px; margin-bottom: 16px;
}
.explore-grid-film .explore-card { background: transparent; border: none; }
.explore-grid-film .explore-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-grid-film .explore-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.explore-grid-film .explore-card:nth-child(2) { grid-column: 3; grid-row: 1 / -1; }
.explore-grid-film .explore-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.explore-grid-film .explore-card:nth-child(4) { grid-column: 2; grid-row: 2; }

/* ====== CASE STUDY ====== */
#cs-content {
  max-width: 780px;
  margin: 0 auto;
  margin-bottom: 64px;
}

.cs-hero {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(23,20,17,.12);
  background: linear-gradient(135deg, #e8e4df, #d4cfc8);
}
.cs-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.cs-hero-placeholder {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: #9e9588;
  letter-spacing: 0.04em;
}

.cs-toggle-bar {
  display: flex;
  justify-content: center;
  margin: 24px 0 32px;
}
.cs-toggle-pill {
  position: relative;
  display: inline-flex;
  background: rgba(250, 248, 245, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(23,20,17,.08);
}
.cs-toggle-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 8px 20px;
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6f665b;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s;
}
.cs-toggle-btn.active { color: #171411; }
.cs-toggle-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.cs-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 48;
  font-size: clamp(29px, 4vw, 45px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.cs-subtitle {
  font-size: 18px;
  color: #6f665b;
  line-height: 1.5;
  margin-bottom: 24px;
}
.cs-meta-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cs-meta-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23,20,17,.08);
}
.cs-meta-tag--accent {
  background: linear-gradient(135deg, rgba(153,229,255,.12), rgba(209,153,255,.12));
  border-color: rgba(153,229,255,.2);
  color: #1a6b7a;
}
.cs-meta-tag--default { color: #6f665b; }

.cs-subnav {
  display: flex;
  gap: 36px;
  margin: 48px 0 24px 0;
  overflow-x: auto;
  justify-content: center;
}
.cs-subnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  //padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(23,20,17,.08);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.cs-subnav-item:hover {
  border-color: rgba(23,20,17,.18);
  box-shadow: 0 4px 16px rgba(46,37,24,.06);
}
.cs-subnav-item.active {
  border-color: #171411;
  box-shadow: 0 4px 20px rgba(46,37,24,.1);
}
.cs-subnav-logo {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: contain;
}
.cs-subnav-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8e4df, #d4cfc8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #6f665b;
}
.cs-subnav-label {
  font-size: 12px;
  font-weight: 600;
  color: #6f665b;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.cs-subnav-item.active .cs-subnav-label { color: #171411; }

.cs-sp-content { display: none; }
.cs-sp-content.active { display: block; }

.cs-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 16px;
  scroll-margin-top: 24px;
}
.cs-section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f665b;
  white-space: nowrap;
}
.cs-section-line {
  flex: 1;
  height: 1px;
  background: rgba(23,20,17,.1);
}

.cs-body {
  font-size: 17px;
  line-height: 1.75;
  color: #2e2922;
  max-width: 720px;
}

.cs-image-block {
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid rgba(23,20,17,.12);
  background: #fff;
}
.cs-image-block img {
  width: 100%;
  display: block;
}
.cs-image-placeholder {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: #9e9588;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #e8e4df, #d4cfc8);
}

.cs-impact-list {
  display: grid;
  gap: 20px;
  margin: 16px 0 32px;
}
.cs-impact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cs-impact-emoji {
  font-size: 16px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  line-height: 1.4;
}
.cs-impact-content { flex: 1; }
.cs-impact-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #171411;
}
.cs-impact-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #6f665b;
  margin-top: 4px;
}

.cs-loading {
  text-align: center;
  padding: 120px 0;
  font-size: 15px;
  color: #9e9588;
}
.cs-error {
  text-align: center;
  padding: 120px 0;
  font-size: 15px;
  color: #a85454;
}

body.tldr-mode [data-tldr="false"] { display: none; }

/* ====== FACTS BOX ====== */
.cs-facts-box {
  background: #fff;
  border: 1px solid rgba(23,20,17,.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(23,20,17,.03);
}
.cs-facts-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cs-fact {
  flex: 1;
  min-width: 140px;
}
.cs-fact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8178;
  font-weight: 600;
  margin-bottom: 4px;
}
.cs-fact-value {
  font-size: 15px;
  font-weight: 600;
  color: #171411;
}
.cs-fact-stat {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #0090c0, #8a40d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cs-facts-divider {
  height: 1px;
  background: rgba(23,20,17,.06);
  margin: 16px 0;
}
.cs-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cs-meta-pill {
  background: rgba(23,20,17,.04);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: #6f665b;
}
.cs-meta-pill--accent {
  background: linear-gradient(135deg, rgba(153,229,255,.2), rgba(209,153,255,.2));
  color: #0090c0;
}

/* ====== HMW CALLOUT ====== */
.cs-hmw {
  border-left: 2px solid #9b59d0;
  padding: 12px 0 12px 16px;
  margin: 24px 0;
}
.cs-hmw-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9b59d0;
  font-weight: 600;
  margin-bottom: 4px;
}
.cs-hmw-text {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.4;
  color: #514940;
}

/* ====== PULL QUOTE ====== */
.cs-pullquote {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: #9b59d0;
  opacity: 0.7;
  max-width: 580px;
  margin: 32px 0;
}

/* ====== QUICK NOTE ====== */
.cs-quicknote {
  background: #fff;
  border: 1px solid rgba(23,20,17,.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 32px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6f665b;
  box-shadow: 0 1px 4px rgba(23,20,17,.03);
}
.cs-quicknote-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8178;
  margin-bottom: 6px;
}

/* Rich Text (HTML/Markdown) */
.cs-richtext {
  max-width: 660px;
}
.cs-richtext a {
  color: #0090c0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cs-richtext a:hover { color: #171411; }
.cs-richtext strong { font-weight: 700; color: #171411; }
.cs-richtext em { font-style: italic; }
.cs-richtext ul, .cs-richtext ol { margin: 12px 0; padding-left: 24px; }
.cs-richtext li { margin-bottom: 6px; }
.cs-richtext h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; color: #171411; }
.cs-richtext h4 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; color: #171411; }
.cs-richtext p { margin-bottom: 12px; }
.cs-richtext img { border-radius: 12px; margin: 16px 0; }
.cs-richtext iframe { border-radius: 12px; margin: 16px 0; max-width: 100%; }

/* Footer Image */
.cs-footer-image {
  margin-top: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(23,20,17,.06);
}
.cs-footer-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.cs-footer-image-placeholder {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: rgba(23,20,17,.18);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(153,229,255,.08), rgba(209,153,255,.08), rgba(255,153,155,.08));
}

/* ====== SHOWCASE GRID ====== */
.cs-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.cs-showcase-item {
  background: #fff;
  border: 1px solid rgba(23,20,17,.06);
  border-radius: 12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(23,20,17,.18);
  box-shadow: 0 1px 4px rgba(23,20,17,.03);
  overflow: hidden;
}
.cs-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-showcase-item--wide {
  grid-column: 1 / -1;
  height: 220px;
}

/* ====== SUB-PRODUCT HEADER ====== */
.cs-sp-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cs-sp-subtitle {
  font-size: 16px;
  color: #6f665b;
  margin-bottom: 16px;
}

.cs-back-to-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  font-size: 16px;
  color: #000000;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  background: none;
  padding: 0;
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  font-weight: 900;
  justify-content: center;
  width: 100%;
}
.cs-back-to-nav:hover {
  color: #171411;
}
.cs-back-to-nav svg {
  width: 14px;
  height: 14px;
}

[data-progress-label] {
  scroll-margin-top: 180px;
}

/* ====== FLOATING PROGRESS NAV ====== */
.cs-progress-nav {
  position: fixed;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: rgba(250, 248, 245, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 2px 12px rgba(23,20,17,0.06), 0 1px 3px rgba(23,20,17,0.04), inset 0 0.5px 0 rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 36px 24px;
}
.cs-progress-rail {
  position: relative;
  width: 3px;
  height: 320px;
  background: rgba(23,20,17,.06);
  border-radius: 2px;
}
.cs-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #99e5ff 0%, #d199ff 35%, #ff999b 65%, #ffca99 100%);
  border-radius: 2px;
  transition: height 0.15s ease-out;
}
.cs-progress-cursor {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #171411;
  box-shadow: 0 1px 4px rgba(23,20,17,.12);
  z-index: 3;
  transition: top 0.15s ease-out;
  pointer-events: none;
}
.cs-progress-point {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(23,20,17,.08);
  border: 2.5px solid #faf8f5;
  box-shadow: 0 0 0 1px rgba(23,20,17,.06);
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}
.cs-progress-point:hover {
  transform: translateX(-50%) scale(1.3);
}
.cs-progress-tooltip {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #171411;
  color: #faf8f5;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cs-progress-point:hover .cs-progress-tooltip {
  opacity: 1;
}
@media (max-width: 1000px) {
  .cs-progress-nav { display: none; }
}

/* ====== CASE STUDY RESPONSIVE OVERRIDES ====== */
@media (max-width: 600px) {
  .cs-facts-row { flex-direction: column; gap: 16px; }
  .cs-showcase-grid { grid-template-columns: 1fr; }
  .cs-showcase-item--wide { height: 180px; }
  .cs-pullquote { font-size: 18px; }
}

/* ====== MACBOOK-RANGE SCALE ====== */
@media (min-width: 851px) and (max-width: 1600px) {
  body { transform: scale(0.85); transform-origin: top center; min-height: 125vh; }
}

/* ====== MOBILE ====== */
@media (max-width: 850px) {
  .page { width: min(100% - 28px, 1180px); }
  .hero-grid, .work-grid, .work-bento, .building-grid, .proof-row, .small-row { grid-template-columns: 1fr; }
  .work-bento .project { grid-column: 1 !important; grid-row: auto; }
  .hero-main { padding: 34px; min-height: auto; }
  .nav { position: relative; top: 0; }
  .pill-nav { display: none; }

  .ham-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(250,248,245,0.55);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 1px 6px rgba(23,20,17,0.08), inset 0 0.5px 0 rgba(255,255,255,0.5);
    border: none;
    border-radius: 12px;
    padding: 0;
    align-items: center;
    cursor: pointer;
    z-index: 102;
    position: relative;
  }
  .ham-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #171411;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .ham-btn.open .ham-line:first-child { transform: translateY(3.25px) rotate(45deg); }
  .ham-btn.open .ham-line:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(23,20,17,0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: rgba(250,248,245,0.92);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    z-index: 101;
    padding: 80px 28px 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 40px rgba(23,20,17,0.08);
  }
  .mobile-menu.open { transform: translateX(0); }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mobile-menu-inner a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #6f665b;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-menu-inner a.active { color: #171411; font-weight: 600; }
  .mobile-menu-inner a:hover { background: rgba(23,20,17,0.04); color: #171411; }
  .section-head { flex-direction: column; gap: 12px; align-items: start; }
  .bento-hero, .bento-bio, .bento-exp-compact, .contact-bento { grid-template-columns: 1fr; }
  .hero-grid { margin-top: 32px; margin-bottom: 48px; }
  .badge-open { top: 16px; right: 16px; }
  .pullquote { padding: 100px 20px; }
  .pullquote-strip { padding: 100px 32px; }
  .pullquote-attr { margin-right: 0; text-align: center; }
  .end-note { padding: 48px 12px; }
  .explore-hero-card { padding: 128px 40px; }
  .cta-heading br { display: none; }
  .testimonial-carousel { overflow: hidden; }
  .testimonial-track .testimonial { width: 100%; flex: none; }
  .carousel-nav { display: flex; }
  .testimonial { padding: 24px; }
  .testimonial-msg { font-size: 16px; }
  .explore-shell { height: 300px; }
  .hmasonry--tinker .explore-card { width: 220px; }
  .explore-grid-film { grid-template-columns: 1fr; height: auto; }
  .explore-grid-film .explore-card:nth-child(1),
  .explore-grid-film .explore-card:nth-child(2),
  .explore-grid-film .explore-card:nth-child(3),
  .explore-grid-film .explore-card:nth-child(4) { grid-column: 1; grid-row: auto; }
  .explore-grid-film .explore-card img { height: 200px; }
  .cs-subnav { gap: 8px; }
  .cs-subnav-item { padding: 10px 14px; }
  .cs-subnav-logo, .cs-subnav-logo-placeholder { width: 36px; height: 36px; }
  .cs-hero-placeholder { height: 200px; }
  .cs-title { font-size: clamp(22px, 6.4vw, 34px); }
  .cs-image-placeholder { height: 180px; }
  .build-card { padding: 20px; }
  .build-status { position: static; margin-bottom: 12px; display: inline-block; }
  .build-visit { position: static; opacity: 1; margin-top: 12px; }
  .footer-center .footer-dot,
  .footer-center span:last-child { display: none; }
}

/* ====== SCROLL NAV ====== */
.scroll-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 8px;
  background: rgba(23,20,17,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.scroll-nav.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.scroll-nav-dot.active {
  background: #fff;
  transform: scale(1);
  width: 8px;
  height: 20px;
  border-radius: 4px;
}
.scroll-nav-dot:hover:not(.active) {
  background: rgba(255,255,255,0.6);
}
@media (max-width: 1400px) {
  .scroll-nav { display: none; }
}

/* ====== SCROLL TO TOP ====== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(23,20,17,.12);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #171411;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  transform: translateY(8px);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: rgba(23,20,17,.06);
  border-color: rgba(23,20,17,.2);
}
