/* GlassFlow case study: project world. Studio chrome keeps Manrope;
   the study body uses Rawline (Raleway with lining numerals)
   and the approved Flow / Tempered palette. */

@font-face {
  font-family: Rawline;
  src: url("fonts/rawline-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: Rawline;
  src: url("fonts/rawline-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: Rawline;
  src: url("fonts/rawline-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: optional;
}

html[data-world="glassflow"],
html[data-world="glassflow"][data-theme="light"],
html[data-world="glassflow"][data-theme="dark"] {
  --color-base-100: #ffffff;
  --color-base-200: #f3f7fb;
  --color-base-300: rgba(68, 118, 165, 0.22);
  --color-base-content: #0b1218;
  --color-primary: #37b7ff;
  --color-primary-content: #001018;
  --color-secondary: #f3f7fb;
  --color-secondary-content: #0b1218;
  --color-neutral: #000000;
  --color-neutral-content: #ffffff;
  --canvas: #ffffff;
  --canvas-2: #f7fafc;
  --surface: #f3f7fb;
  --text: #0b1218;
  --muted: #4a6074;
  --quiet: #4a6074;
  --signal: #37b7ff;
  --signal-ink: #001018;
  --rule: rgba(68, 118, 165, 0.22);
  --flow-blue: #37b7ff;
  --tempered: #4476a5;
  --tempered-deep: color-mix(in srgb, var(--tempered) 74%, var(--ink));
  --ink: #000000;
  --paper: #ffffff;
  --paper-2: #f7fafc;
  --cs-display: "Rawline", "Avenir Next", "Segoe UI", sans-serif;
  --cs-sans: "Rawline", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

html[data-world="glassflow"] body {
  background: var(--paper);
}

html[data-world="glassflow"] .site-header {
  position: sticky;
  overflow: visible;
  isolation: isolate;
  color: var(--paper);
  background: var(--tempered-deep);
}
html[data-world="glassflow"] .navbar.site-header {
  background: var(--tempered-deep);
}
html[data-world="glassflow"] .site-header.is-scrolled {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 28%, transparent);
}
html[data-world="glassflow"] .theme-toggle { display: none; }
html[data-world="glassflow"] .wordmark { color: var(--paper); }
html[data-world="glassflow"] .wordmark span { color: var(--flow-blue); }
html[data-world="glassflow"] .wordmark-mark {
  filter: none;
}
html[data-world="glassflow"] .cs-collab {
  color: color-mix(in srgb, var(--paper) 70%, var(--flow-blue));
}
html[data-world="glassflow"] .site-header .nav-desktop .menu a,
html[data-world="glassflow"] .site-header .nav-desktop .nav-gitlab {
  color: var(--paper);
}
html[data-world="glassflow"] .site-header .nav-desktop .menu a:hover,
html[data-world="glassflow"] .site-header .nav-desktop .nav-gitlab:hover,
html[data-world="glassflow"] .site-header .nav-desktop .menu a[aria-current="page"] {
  color: var(--paper);
  background: transparent;
}
html[data-world="glassflow"] .site-header .nav-desktop .nav-gitlab i {
  color: var(--flow-blue);
}
html[data-world="glassflow"] .site-header .nav-toggle {
  color: var(--paper);
  background: transparent;
}
html[data-world="glassflow"] .site-header .nav-toggle:hover {
  color: var(--paper);
  background: transparent;
}
html[data-world="glassflow"] .site-header :focus-visible {
  outline-color: var(--paper);
}
html[data-world="glassflow"] :focus-visible {
  outline: 2px solid var(--flow-blue);
  outline-offset: 4px;
}

/* Mesh current (Paper Shaders). Canvas is painted by header-flow.js;
   this CSS is the no-JS / reduced-motion ground. */
.cs-header-current {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(70% 120% at 22% 40%, #c5d4e2 0%, transparent 32%),
    radial-gradient(120% 160% at 18% 50%, var(--tempered) 0%, transparent 62%),
    var(--tempered-deep);
}
.cs-header-current canvas {
  display: block;
  width: 100%;
  height: 100%;
}
html[data-world="glassflow"] .site-header .nav {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cs-header-current canvas { display: none; }
}

.cs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.cs-collab {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}
.cs-partner {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
}
.cs-partner img {
  display: block;
  height: 24px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
}

.cs {
  font-family: var(--cs-sans);
  font-weight: 500;
  color: var(--muted);
}
.cs h1, .cs h2, .cs h3 {
  font-family: var(--cs-display);
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cs a { color: inherit; }

.cs-kicker {
  margin: 0 0 16px;
  color: var(--tempered);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cs-shell {
  width: min(1180px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.cs-copy {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.cs-copy + .cs-copy { margin-top: 18px; }

/* Cover */
.cs-cover {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 0;
  background: var(--ink);
}
.cs-cover-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 64px);
  color: var(--paper);
  overflow: hidden;
}
.cs-cover-logo {
  width: min(240px, 68%);
  height: auto;
  margin-bottom: 28px;
}
.cs-cover-copy h1 {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.88;
}
.cs-cover-copy .cs-kicker { color: var(--flow-blue); }
.cs-cover-copy .cs-cover-lead {
  margin: 0 0 28px;
  max-width: 36ch;
  color: color-mix(in srgb, var(--paper) 78%, var(--tempered));
  font-size: 17px;
  line-height: 1.55;
}
.cs-cover-rule {
  width: 64px;
  height: 2px;
  margin: 0 0 28px;
  background: var(--flow-blue);
  border: 0;
}
.cs-cover-sub {
  margin: 0 0 48px;
  max-width: 38ch;
  color: color-mix(in srgb, var(--paper) 70%, var(--tempered));
  font-size: 16px;
  line-height: 1.55;
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
}
.cs-meta div { min-width: 7rem; }
.cs-meta dt {
  margin: 0 0 4px;
  color: var(--flow-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-meta dd {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
}
.cs-cover-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--tempered);
  padding: clamp(28px, 4vw, 48px);
}
.cs-cover-visual img {
  width: min(78%, 460px);
  max-width: 100%;
  height: auto;
  transform: none;
}

/* Snapshot */
.cs-snapshot {
  padding: clamp(64px, 8vw, 110px) 0;
  background: var(--paper);
}
.cs-snapshot .cs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.cs-snapshot h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}
.cs-panel {
  padding: clamp(28px, 3vw, 44px);
  color: var(--paper);
  background: var(--tempered);
  border-radius: 22px;
}
.cs-panel h3 {
  margin: 0 0 12px;
  color: var(--flow-blue);
  font-family: var(--cs-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cs-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-panel li {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--paper) 92%, var(--tempered));
  font-size: 16px;
  line-height: 1.45;
}
.cs-panel hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
}
.cs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cs-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cs-pills .on {
  color: var(--paper);
  background: var(--ink);
}
.cs-pills .off {
  color: var(--ink);
  background: var(--flow-blue);
}

/* Challenge */
.cs-challenge {
  position: relative;
  padding: var(--space-section) 0;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.cs-challenge::after {
  content: "";
  position: absolute;
  left: -12%;
  top: 8%;
  width: min(620px, 52vw);
  aspect-ratio: 3 / 2;
  background: url("assets/symbol-blue.svg") center / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}
.cs-challenge .cs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  position: relative;
  z-index: 1;
}
.cs-challenge h2 {
  margin: 0 0 24px;
  color: var(--paper);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
}
.cs-challenge .cs-kicker { color: var(--flow-blue); }
.cs-challenge .cs-copy { color: color-mix(in srgb, var(--paper) 74%, var(--tempered)); }
.cs-points { display: grid; gap: 16px; }
.cs-point {
  padding: 22px 24px;
  border: 0;
  border-radius: 16px;
  background: var(--tempered);
}
.cs-point strong {
  display: block;
  margin-bottom: 8px;
  color: var(--flow-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-point p { margin: 0; color: color-mix(in srgb, var(--paper) 92%, var(--tempered)); }

/* Legacy */
.cs-legacy { padding: var(--space-section) 0 0; background: var(--paper); }
.cs-legacy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
}
.cs-legacy-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.cs-observe {
  margin: 0;
  padding: 22px 24px;
  color: var(--paper);
  background: var(--tempered);
  border-radius: 16px;
}
.cs-observe-label {
  margin: 0 0 10px;
  color: var(--flow-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-observe p { margin: 0; font-size: 18px; line-height: 1.45; }
.cs-legacy-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  margin-top: 40px;
}
.cs-legacy-pair figure {
  margin: 0;
  padding: 28px;
  background: var(--ink);
  border-radius: 18px;
}
.cs-legacy-pair img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}
.cs-legacy-pair figcaption {
  margin-top: 16px;
  color: var(--flow-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-legacy-bar {
  margin: 36px 0 0;
  padding: 22px var(--gutter);
  color: var(--paper);
  background: var(--ink);
  font-size: 16px;
  text-align: center;
}

/* Process */
.cs-process {
  padding: var(--space-section) 0;
  color: var(--paper);
  background: var(--tempered);
}
.cs-process .cs-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.cs-process .cs-kicker { color: var(--flow-blue); }
.cs-process h2 {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: clamp(32px, 4vw, 52px);
}
.cs-process .cs-copy { color: color-mix(in srgb, var(--paper) 82%, var(--tempered)); }
.cs-process-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.cs-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--ink);
  border-radius: 14px;
}
.cs-steps span {
  color: var(--flow-blue);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.cs-steps strong {
  display: block;
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
}
.cs-steps p {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--paper) 62%, var(--tempered));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-fromto {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  margin: 0;
}
.cs-fromto figure {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  margin: 0;
  min-height: 180px;
  min-width: 0;
  padding: 22px;
  background: var(--ink);
  border-radius: 16px;
}
.cs-fromto figure.on-paper { background: var(--paper); }
.cs-fromto img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}
.cs-fromto-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: var(--flow-blue);
  font-size: 28px;
  font-weight: 700;
}

/* Mark anatomy */
.cs-mark {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: var(--ink);
  overflow: hidden;
}
.cs-mark-copy {
  padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 72px);
  color: var(--paper);
}
.cs-mark-copy .cs-kicker { color: var(--flow-blue); }
.cs-mark-copy h2 {
  margin: 0 0 24px;
  color: var(--paper);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.88;
}
.cs-mark-copy h2 span { color: var(--flow-blue); }
.cs-mark-copy .cs-copy { color: color-mix(in srgb, var(--paper) 76%, var(--tempered)); }
.cs-accent {
  margin: 28px 0 0;
  max-width: 36ch;
  color: var(--flow-blue);
  font-size: 17px;
  line-height: 1.5;
}
.cs-mark-figure {
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px) clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px);
}
.cs-mark-diagram {
  position: relative;
  width: min(520px, 100%);
}
.cs-mark-diagram img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1453 / 834;
}
.cs-anno {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--paper) 78%, var(--tempered));
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
  white-space: nowrap;
}
.cs-anno i {
  display: block;
  height: 2px;
  background: color-mix(in srgb, var(--paper) 50%, transparent);
  flex: 0 0 auto;
}
.cs-anno-g {
  top: 12%;
  left: 94%;
}
.cs-anno-g i { width: 52px; }
.cs-anno-f {
  top: 54%;
  left: 61%;
}
.cs-anno-f i { width: 220px; }

/* Identity */
.cs-identity { background: var(--paper); }
.cs-lockup-hero {
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  background: var(--tempered);
}
.cs-lockup-hero img { width: min(820px, 100%); height: auto; }
.cs-identity-notes {
  padding: 36px 0 72px;
  color: var(--paper);
  background: var(--ink);
}
.cs-identity-notes .cs-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
.cs-identity-notes h3 {
  margin: 0 0 10px;
  color: var(--flow-blue);
  font-family: var(--cs-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cs-identity-notes p { margin: 0; color: color-mix(in srgb, var(--paper) 84%, var(--tempered)); }

/* Color + type */
.cs-color { padding: var(--space-section) 0; background: var(--paper); }
.cs-color h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
}
.cs-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 56px;
}
.cs-swatch { margin: 0; }
.cs-chip {
  height: 110px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.cs-chip.flow { background: var(--flow-blue); }
.cs-chip.tempered { background: var(--tempered); }
.cs-chip.white { background: #fff; border-color: rgba(68, 118, 165, 0.28); }
.cs-chip.black { background: #000; }
.cs-swatch figcaption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.cs-swatch code,
.cs-swatch span {
  display: block;
  margin-top: 2px;
  font-family: var(--cs-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.cs-type-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 28px 32px;
  background: var(--tempered);
  border-radius: 18px;
}
.cs-type-split h3 {
  margin: 0 0 10px;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--paper);
}
.cs-type-split .label {
  margin: 0 0 8px;
  color: var(--flow-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-type-split .cs-copy { color: color-mix(in srgb, var(--paper) 86%, var(--tempered)); }
.cs-word-live {
  margin: 0;
  min-width: 0;
  color: var(--paper);
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: right;
}
.cs-word-live span:last-child { color: var(--flow-blue); }

/* System */
.cs-system { padding: 0 0 var(--space-section); background: var(--paper); }
.cs-system h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 52px);
}
.cs-system-top,
.cs-system-bottom {
  display: grid;
  gap: 16px;
}
.cs-system-top {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.95fr);
}
.cs-system-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
.cs-system-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 280px;
  padding: 28px 22px 18px;
  border-radius: 18px;
}
.cs-system-card.on-tempered { background: var(--tempered); }
.cs-system-card.on-black { background: var(--ink); }
.cs-system-card.on-paper {
  background: var(--paper);
  border: 1px solid var(--rule);
}
.cs-system-stage {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 180px;
  margin-bottom: 16px;
}
.cs-system-stage img { max-width: 82%; height: auto; }
.cs-system-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
  color: color-mix(in srgb, var(--paper) 78%, var(--tempered));
}
.cs-system-card.on-paper figcaption { color: var(--muted); }

/* Production */
.cs-production {
  padding: var(--space-section) 0;
  background: var(--paper);
}
.cs-production h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
}
.cs-prod-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  margin-top: 36px;
  align-items: start;
}
.cs-prod-construct {
  margin: 0;
}
.cs-construct-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px 28px;
  background: var(--ink);
  border-radius: 22px;
  overflow: hidden;
}
.cs-construct-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--flow-blue) 18%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--flow-blue) 18%, transparent) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  pointer-events: none;
}
.cs-construct-stage img {
  position: relative;
  z-index: 1;
  display: block;
  width: 86%;
  height: auto;
}
.cs-prod-construct figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.cs-prod-notes {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.cs-prod-notes h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cs-prod-notes p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Digital sizes */
.cs-digital { padding: var(--space-section) 0; background: var(--paper); }
.cs-digital h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
}
.cs-sizes {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-top: 36px;
  align-items: start;
}
.cs-sizes-side {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}
.cs-size-hero {
  margin: 0;
  padding: 18px;
  background: var(--tempered);
  border-radius: 22px;
}
.cs-size-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.cs-size-hero figcaption,
.cs-size-row figcaption {
  margin-top: 12px;
  color: var(--flow-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cs-size-hero figcaption { color: color-mix(in srgb, var(--paper) 86%, var(--tempered)); }
.cs-size-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cs-size-row figure { margin: 0; }
.cs-size-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--tempered);
  border-radius: 16px;
  overflow: hidden;
}
.cs-size-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-size-frame.on-black { background: var(--ink); }
.cs-size-frame.on-black img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  image-rendering: pixelated;
}
.cs-size-note {
  margin: 0;
  padding: 22px 24px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.55;
}

/* Social */
.cs-social { padding: 0 0 var(--space-section); background: var(--paper); }
.cs-social h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 52px);
}
.cs-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.cs-social-grid figure { margin: 0; min-width: 0; }
.cs-social-grid img {
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.cs-social-grid figcaption {
  margin-top: 12px;
  color: var(--tempered);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Outcome */
.cs-outcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 5vw, 72px);
  padding: clamp(32px, 4vw, 48px) 0;
  color: var(--paper);
  background: var(--tempered);
  overflow: hidden;
}
.cs-outcome-mark {
  overflow: hidden;
  min-height: 0;
}
.cs-outcome-mark img {
  display: block;
  width: 175%;
  max-width: none;
  height: auto;
  aspect-ratio: 1453 / 834;
  transform: translateX(-43%);
}
.cs-outcome .cs-shell {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: 0;
  margin-right: auto;
  padding-right: var(--gutter);
}
.cs-outcome .cs-kicker { color: var(--flow-blue); }
.cs-outcome h2 {
  margin: 0 0 22px;
  color: var(--paper);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
}
.cs-outcome .cs-copy { color: color-mix(in srgb, var(--paper) 82%, var(--tempered)); }
.cs-outcome-rule {
  width: 64px;
  height: 2px;
  margin: 32px 0;
  background: var(--flow-blue);
  border: 0;
}
.cs-outcome h3 {
  margin: 0 0 12px;
  color: var(--flow-blue);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}
.cs-outcome .cs-pills { margin-top: 32px; }
.cs-outcome .cs-pills .off {
  color: var(--ink);
  background: var(--flow-blue);
}
.cs-sign {
  margin: 28px 0 0;
  color: color-mix(in srgb, var(--paper) 70%, var(--tempered));
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-world="glassflow"] .footer {
  background: var(--paper);
  border-top-color: var(--rule);
}
html[data-world="glassflow"] .cs-pager {
  color: var(--text);
}
html[data-world="glassflow"] .cs-pager span { color: var(--muted); }
html[data-world="glassflow"] .cs-pager a:hover strong { color: var(--tempered); }

@media (max-width: 1100px) {
  .cs-system-top { grid-template-columns: 1fr 1fr; }
  .cs-system-top .cs-system-card:last-child { grid-column: 1 / -1; max-width: 420px; justify-self: center; width: 100%; }
  .cs-sizes { grid-template-columns: 1fr; }
  .cs-outcome {
    grid-template-columns: 1fr;
    padding-top: 0;
  }
  .cs-outcome-mark {
    display: grid;
    place-items: center;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 36px var(--gutter) 0;
  }
  .cs-outcome-mark img {
    width: min(68%, 280px);
    max-width: 100%;
    height: auto;
    transform: none;
  }
  .cs-outcome .cs-shell {
    max-width: min(760px, calc(100% - var(--gutter) * 2));
    margin-inline: auto;
    padding: clamp(48px, 7vw, 80px) 0;
  }
}
@media (max-width: 900px) {
  .cs-cover,
  .cs-snapshot .cs-shell,
  .cs-challenge .cs-shell,
  .cs-legacy-head,
  .cs-legacy-pair,
  .cs-mark,
  .cs-process .cs-shell,
  .cs-identity-notes .cs-shell,
  .cs-type-split,
  .cs-swatches,
  .cs-social-grid,
  .cs-prod-grid {
    grid-template-columns: 1fr;
  }
  .cs-word-live { text-align: left; }
  .cs-cover { min-height: 0; }
  .cs-cover-copy { padding-top: 32px; padding-bottom: 32px; }
  .cs-cover-visual {
    min-height: 220px;
    padding: 24px;
  }
  .cs-cover-visual img {
    width: min(70%, 280px);
    transform: none;
  }
  .cs-mark-copy { order: 1; }
  .cs-mark-figure { order: 2; min-height: 0; padding: 32px 28px 40px; }
  .cs-anno { display: none; }
  .cs-size-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  html.has-js .cs-partner img { max-width: min(148px, 34vw); }
}
@media (max-width: 600px) {
  .cs-swatches { grid-template-columns: 1fr 1fr; }
  .cs-system-top,
  .cs-system-bottom { grid-template-columns: 1fr; }
  .cs-system-top .cs-system-card:last-child { grid-column: auto; max-width: none; }
  .cs-system-card figcaption { flex-direction: column; gap: 4px; }
  .cs-social-grid { grid-template-columns: 1fr; }
  .cs-size-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-cover-copy h1 { font-size: clamp(36px, 11vw, 48px); }
  .cs-collab { font-size: 16px; }
  .cs-partner img { height: 18px; max-width: 132px; }
  .cs-fromto {
    flex-direction: column;
    max-width: 12rem;
    width: 100%;
    margin-inline: auto;
    justify-self: center;
  }
  .cs-fromto-arrow { transform: rotate(90deg); }
  .cs-fromto figure { width: 100%; flex: none; }
}

/* Graphic identity stays intact; editorial text carries less repetition. */
.cs-copy { max-width: 62ch; line-height: 1.75; }
.cs-brief { color: var(--ink); }
.cs-cover-sub { max-width: 42ch; }
.cs-process .cs-copy, .cs-outcome .cs-copy { color: var(--paper); }
.cs-production .cs-prod-notes p, .cs-identity-notes p { font-size: 16px; line-height: 1.7; }
.cs-social-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.cs-social-grid img { height: auto; max-height: none; object-fit: contain; }
.cs-size-frame.on-black img[src$="favicon-32.png"] { width: 32px; height: 32px; }
.cs-size-frame.on-black img[src$="favicon-16.png"] { width: 16px; height: 16px; }
.cs-step p, .cs-prod-notes p, .cs-size-note { font-size: 16px; }
.cs-outcome h3 { color: var(--paper); }
@media (max-width: 900px) {
 .cs-social-grid { grid-template-columns: 1fr; gap: 36px; }
 .cs-social-grid figure { max-width: 620px; }
}
@media (max-width: 600px) {
 .cs-brand { gap: 8px; }
 .cs-partner img { max-width: 31vw; }
 .cs-sizes-side { min-width: 0; }
 .cs-size-row { flex-wrap: wrap; }
}

/* Text contrast changes use the four approved colors; artwork is unchanged. */
.cs-observe .cs-observe-label, .cs-process .cs-kicker, .cs-type-split .label,
.cs-type-split .cs-copy, .on-tempered.cs-system-card figcaption span,
.cs-size-hero figcaption, .cs-outcome .cs-kicker, .cs-sign { color: var(--paper); }
.cs-size-row figcaption { color: var(--ink); }
.cs-word-sample { width: min(100%, 360px); height: auto; align-self: center; }
@media (max-width: 900px) {
 .cs-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .cs-system-top, .cs-system-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .cs-system-top .cs-system-card:first-child { grid-column: 1 / -1; }
 .cs-system-card { min-height: 220px; padding: 20px 16px; border-radius: 8px; }
 .cs-system-stage { min-height: 110px; }
 .cs-system-card figcaption { flex-direction: column; gap: 4px; }
}
