@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-VariableFont.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

.cs-sw {
  --by-black: #171617;
  --by-black-light: #1e1d1e;
  --by-cream: #f1ede4;
  --by-accent: #009C6F;
  --by-accent-hover: #00b380;
  --by-accent-line: rgba(0, 156, 111, 0.32);
  --by-accent-soft: rgba(0, 156, 111, 0.12);
  --by-ink-200: #c9c7c4;
  --by-ink-300: #9a989b;
  --by-ink-400: #6b6a6c;
  --by-ink-500: #3a393b;
  --by-ink-600: #29282a;
  --by-paper-line: rgba(23, 22, 23, 0.10);
  --by-paper-200: #e7e2d6;
  --by-paper-300: #d8d2c4;

  --text-eyebrow: 0.75rem;
  --text-body: 1rem;
  --text-body-lg: 1.125rem;
  --text-body-sm: 0.875rem;
  --text-h4: 1.125rem;

  --tracking-display: -0.02em;
  --tracking-eyebrow: 0.14em;
  --tracking-heading: -0.01em;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --leading-tight: 1.05;
  --leading-snug: 1.15;
  --leading-relaxed: 1.6;

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container-max: 1200px;
  --duration-base: 200ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  background: var(--by-black);
  font-family: var(--font-sans);
}

.cs-sw .wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* Full-bleed section photography */
.cs-sw .bg-d, .cs-sw .bg-m {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cs-sw .bg-m { display: none; }
@media (max-width: 640px) {
  .cs-sw .bg-d { display: none; }
  .cs-sw .bg-m { display: block; }
}

/* Shared eyebrow */
.cs-sw .cs-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--by-accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cs-sw .cs-eyebrow-rule { width: 26px; height: 1px; background: var(--by-accent); }

/* ---- Masthead ---- */
.cs-sw .cs-mast-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(120px, 13vw, 148px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
.cs-sw .cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4.5vw, 48px);
}
.cs-sw .cs-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--by-ink-400);
}
.cs-sw .cs-crumb { color: var(--by-ink-300); transition: color var(--duration-base); }
.cs-sw .cs-crumb-sep { opacity: 0.5; }
.cs-sw .cs-crumb-current { color: var(--by-cream); }
.cs-sw .cs-backpill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--by-ink-300);
  background: var(--by-black);
  border: 1px solid rgba(242, 235, 216, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 40px;
  white-space: nowrap;
  transition: color var(--duration-base), background var(--duration-base), border-color var(--duration-base);
}
.cs-sw .cs-backpill svg { width: 14px; height: 14px; display: block; }
.cs-sw .cs-mast-kicker {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--by-ink-300);
  margin-top: 22px;
}
.cs-sw .cs-mast-h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--by-cream);
  margin: 14px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.cs-sw .cs-mast-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--by-ink-300);
  margin: 24px 0 0;
  max-width: 600px;
  text-wrap: pretty;
}
.cs-sw .glance {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(36px, 5vw, 52px);
  border: 1px solid rgba(242, 235, 216, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(23, 22, 23, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cs-sw .glance > div { padding: 18px 20px; }
.cs-sw .glance > div + div { border-left: 1px solid rgba(242, 235, 216, 0.22); }
.cs-sw .glance-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--by-ink-400);
}
.cs-sw .glance-v {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--by-cream);
  margin-top: 8px;
}

/* ---- Problem (light) ---- */
.cs-sw .cs-problem {
  background: var(--by-cream);
  color: var(--by-black);
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
}
.cs-sw .cs-problem-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  margin: 18px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.cs-sw .cs-problem-lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: var(--leading-relaxed);
  color: #3a3839;
  margin: clamp(20px, 2.5vw, 28px) 0 0;
  max-width: 760px;
  text-wrap: pretty;
}
.cs-sw .probgrid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
}
.cs-sw .prob-list { max-width: 700px; }
.cs-sw .prob-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--by-paper-line);
}
.cs-sw .prob-row-last { border-bottom: 1px solid var(--by-paper-line); }
.cs-sw .prob-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--by-accent);
  font-weight: var(--weight-semibold);
}
.cs-sw .prob-row p {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: #3a3839;
  margin: 0;
  text-wrap: pretty;
}
.cs-sw .prob-row strong { font-weight: var(--weight-semibold); color: var(--by-black); }
.cs-sw .prob-aside-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a8880;
  margin-bottom: 16px;
}
.cs-sw .prob-card {
  border: 1px solid var(--by-paper-line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}
.cs-sw .prob-stat { padding: clamp(20px, 2.4vw, 26px); }
.cs-sw .prob-stat-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8880;
}
.cs-sw .prob-stat-v {
  font-family: var(--font-sans);
  font-size: clamp(38px, 4.6vw, 52px);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--by-accent);
  margin-top: 12px;
}
.cs-sw .prob-stat p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #3a3839;
  margin: 12px 0 0;
  max-width: 32ch;
}
.cs-sw .prob-card-line { height: 1px; background: var(--by-paper-line); }
.cs-sw .prob-src {
  padding: 13px clamp(20px, 2.4vw, 26px);
  background: rgba(31, 38, 48, 0.035);
  border-top: 1px solid var(--by-paper-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #8a8880;
}

/* ---- Tour ---- */
.cs-sw .cs-tour {
  background: var(--by-black);
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: clamp(56px, 8vw, 88px);
}
.cs-sw .cs-tour-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--by-cream);
  margin: 18px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}
.cs-sw .cs-tour-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--by-ink-300);
  margin: 18px 0 0;
  max-width: 620px;
  text-wrap: pretty;
}
.cs-sw .shot { margin-top: clamp(36px, 5vw, 56px); }
.cs-sw .shot:not(:last-child) {
  border-bottom: 1px solid var(--by-ink-600);
  padding-bottom: clamp(28px, 4vw, 44px);
}
.cs-sw .shot-frame {
  border: 1px solid var(--by-paper-300);
  border-radius: 22px;
  overflow: hidden;
  background: var(--by-paper-200);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.cs-sw .shot-frame img { width: 100%; height: auto; display: block; border-radius: 12px; }
.cs-sw .shot-frame .sw-preview { display: block; width: 100%; border-radius: 12px; overflow: hidden; }
.cs-sw .shot-cap {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cs-sw .shot-n { font-family: var(--font-mono); font-size: 12px; color: var(--by-accent); }
.cs-sw .shot-name { font-size: var(--text-body); font-weight: var(--weight-semibold); color: var(--by-cream); }
.cs-sw .shot-what { font-size: var(--text-body-sm); color: var(--by-ink-300); }
.cs-sw .duo { display: flex; gap: clamp(16px, 2.5vw, 28px); align-items: flex-end; }
.cs-sw .duo-pad { flex: 1; min-width: 0; }
.cs-sw .duo-mob { width: min(28%, 260px); flex: none; }

/* ---- Our part ---- */
.cs-sw .cs-ourpart {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--by-black);
  color: var(--by-cream);
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: 0;
}
.cs-sw .cs-ourpart-inner { position: relative; z-index: 2; }
.cs-sw .ourgrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.cs-sw .ourpart-col { padding-bottom: clamp(48px, 7vw, 80px); }
.cs-sw .cs-ourpart-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--by-cream);
  margin: 18px 0 0;
  max-width: 16ch;
  text-wrap: balance;
}
.cs-sw .acc { margin-top: clamp(20px, 3vw, 32px); }
.cs-sw .acc-item { border-top: 1px solid var(--by-ink-600); }
.cs-sw .acc-item:last-child { border-bottom: 1px solid var(--by-ink-600); }
.cs-sw .acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  min-height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--weight-semibold);
  color: var(--by-cream);
}
.cs-sw .acc-q svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--by-accent);
  transition: transform var(--duration-base) var(--ease-standard);
}
.cs-sw .acc-item.is-open .acc-q svg { transform: rotate(180deg); }
.cs-sw .acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-base) var(--ease-standard);
}
.cs-sw .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.cs-sw .acc-panel-in { overflow: hidden; }
.cs-sw .acc-panel-in p {
  margin: 0 0 20px;
  padding-right: 34px;
  font-size: 15px;
  line-height: var(--leading-relaxed);
  color: var(--by-ink-300);
  text-wrap: pretty;
}
.cs-sw .founder-col {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.cs-sw .founder-img { position: relative; z-index: 1; display: block; width: min(100%, 460px); height: auto; }
.cs-sw .founder-card {
  position: absolute;
  left: 0;
  bottom: clamp(28px, 5vw, 72px);
  z-index: 2;
  background: rgba(23, 22, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--by-ink-600);
  border-radius: 12px;
  padding: 16px 18px;
  max-width: 210px;
}
.cs-sw .founder-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--by-cream); }
.cs-sw .founder-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--by-ink-300); margin-top: 4px; }
.cs-sw .founder-line-rule { width: 24px; height: 1px; background: var(--by-accent); margin: 12px 0; }
.cs-sw .founder-line { font-size: 13px; line-height: 1.5; color: var(--by-ink-300); }

/* ---- Outcome ---- */
.cs-sw .cs-outcome {
  background: var(--by-black);
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--by-ink-600);
}
.cs-sw .wrap.cs-outcome-inner { max-width: 1000px; }
.cs-sw .cs-outcome-h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--by-cream);
  margin: 20px 0 0;
  max-width: 20ch;
  text-wrap: balance;
}
.cs-sw .cs-outcome-h2 .accent { color: var(--by-accent); }
.cs-sw .cs-outcome-lead {
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
  color: var(--by-ink-300);
  margin: 24px 0 0;
  max-width: 660px;
  text-wrap: pretty;
}
.cs-sw .outcome-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(36px, 5vw, 52px);
}
.cs-sw .outcome-card {
  border: 1px solid var(--by-ink-600);
  border-radius: 14px;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--by-black-light);
}
.cs-sw .outcome-card-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--by-accent);
  margin-bottom: 12px;
}
.cs-sw .outcome-card p { font-size: 15px; line-height: var(--leading-relaxed); color: var(--by-ink-300); margin: 0; text-wrap: pretty; }

/* ---- Proof of seriousness ---- */
.cs-sw .cs-serious {
  background: var(--by-black);
  padding-top: 0;
  padding-bottom: clamp(64px, 9vw, 104px);
}
.cs-sw .cs-serious-inner {
  border-top: 1px solid var(--by-ink-600);
  padding-top: clamp(40px, 5vw, 60px);
}
.cs-sw .cs-serious-h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--by-cream);
  margin: 16px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}
.cs-sw .serious-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
}
.cs-sw .serious-card {
  border: 1px solid var(--by-ink-600);
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 26px);
  background: var(--by-black-light);
}
.cs-sw .serious-card-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--by-accent);
  margin-bottom: 10px;
}
.cs-sw .serious-card p { font-size: 14px; line-height: var(--leading-relaxed); color: var(--by-ink-300); margin: 0; text-wrap: pretty; }

/* ---- Hover (gated) ---- */
@media (hover: hover) {
  .cs-sw .cs-crumb:hover { color: var(--by-accent); }
  .cs-sw .cs-backpill:hover { color: #ffffff; background: var(--by-black-light); border-color: rgba(242, 235, 216, 0.4); }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .cs-sw .glance { grid-template-columns: repeat(2, 1fr); }
  .cs-sw .glance > div + div { border-left: none; }
  .cs-sw .glance > div { border-top: 1px solid rgba(242, 235, 216, 0.22); }
  .cs-sw .glance > div:first-child,
  .cs-sw .glance > div:nth-child(2) { border-top: none; }
  .cs-sw .probgrid { grid-template-columns: 1fr; }
  .cs-sw .ourgrid2 { grid-template-columns: 1fr; }
  .cs-sw .founder-col { display: none !important; }
}
@media (max-width: 560px) {
  .cs-sw .glance { grid-template-columns: 1fr; margin-bottom: 40px; }
  .cs-sw .glance > div:nth-child(2) { border-top: 1px solid rgba(242, 235, 216, 0.22); }
  .cs-sw .duo { flex-direction: column; align-items: stretch; }
  .cs-sw .duo-mob { width: 100% !important; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-sw * { transition: none !important; animation: none !important; }
}

/* ---- Mobile: abbreviate the back button to the icon only ---- */
@media (max-width: 640px) {
  .cs-sw .cs-backpill { width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0; justify-content: center; }
  .cs-sw .cs-backpill .bk-label { display: none; }
}
