/* ==========================================================================
   Shai Shiloni — UX Consulting
   Design tokens live in :root. Change colors and fonts in one place.
   ========================================================================== */

:root {
  /* Color */
  --bg: #ffffff;
  --panel-top: #f1f1ef;       /* soft gray panels (hero, CTA) */
  --panel-bottom: #fbfbfa;
  --card: #f6f6f4;            /* service & quote cards */
  --ink: #121212;
  --ink-2: #2b2b2b;
  --muted: #565656;           /* 7.3:1 on white */
  --line: #e8e8e5;
  --accent: #4b3ff0;          /* the one accent color — 6.1:1 on white */
  --accent-soft: #efeefe;

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1160px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: clamp(8px, 1vw, 14px);   /* gap between panels and the window edge */
  --section: clamp(80px, 10vw, 140px);
  --radius: 20px;
  --radius-lg: 32px;
  --nav-h: 64px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px -6px rgba(0,0,0,.08);
  --shadow-photo: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px -12px rgba(0,0,0,.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 40px); }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: calc(var(--narrow) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section) 0; }

/* Soft gray rounded panel (hero, CTA) */
.panel {
  margin-inline: var(--edge);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bottom) 70%, #fff 100%);
}
.panel--up { background: linear-gradient(0deg, var(--panel-top) 0%, var(--panel-bottom) 70%, #fff 100%); }

.eyebrow {
  display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); display: grid; gap: 16px; justify-items: center; }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 14px;
  font-weight: 600; font-size: 0.9875rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px -8px rgba(0,0,0,.45); }
.btn-primary:hover { background: #2c2c2c; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid #d6d6d2; box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; border-radius: 12px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: rgba(18,18,18,.25); color: var(--ink);
  transition: text-decoration-color .2s var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .arrow { transition: transform .2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Floating nav ---------- */
.site-header { position: sticky; top: var(--edge); z-index: 50; padding-inline: var(--edge); margin-bottom: var(--edge); }
.nav {
  display: flex; align-items: center; gap: 8px; height: var(--nav-h);
  padding: 0 10px 0 14px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700;
}
.brand-dot { color: var(--accent); }
.nav-links { display: flex; gap: 2px; list-style: none; padding: 0; margin-right: 8px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s var(--ease);
}
.nav-links a:hover { background: #f2f2f0; }
.nav-links a[aria-current="page"] { background: #f2f2f0; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle:hover { background: #f2f2f0; }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 799px) {
  .brand-name { display: none; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-cta { order: 2; }
  .nav-links {
    position: absolute; top: calc(var(--nav-h) + 8px); left: var(--edge); right: var(--edge); margin: 0;
    flex-direction: column; gap: 0; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.05);
  }
  .nav-links a { width: 100%; min-height: 52px; font-size: 1.0625rem; }
  .js .nav-links:not(.is-open) { display: none; }
}
@media (min-width: 420px) and (max-width: 799px) { .brand-name { display: inline; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(56px, 7vw, 96px); text-align: center; }
.hero-inner { display: grid; justify-items: center; }
.availability {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink-2);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #17924f; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #17924f; opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 { font-size: clamp(2.6rem, 7.6vw, 6.25rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .line { display: block; }
/* Small tilted photo inside the headline */
.face {
  display: inline-block; vertical-align: -0.08em;
  width: 0.92em; height: 0.92em; margin: 0 0.06em;
  border-radius: 0.18em; overflow: hidden; background: var(--accent-soft);
  border: 0.045em solid #fff; box-shadow: var(--shadow-photo);
  transform: rotate(-6deg); transition: transform .4s var(--ease);
}
.face:hover { transform: rotate(0deg) scale(1.06); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub { margin-top: 28px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46ch; line-height: 1.6; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.scroll-cue {
  margin-top: clamp(48px, 6vw, 72px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), background-color .2s;
}
.scroll-cue:hover { transform: translateY(4px); background: rgba(0,0,0,.04); }

/* ---------- Logo strip ---------- */
.logos { padding-top: clamp(48px, 6vw, 72px); text-align: center; }
.logos-label { margin-bottom: 24px; }
.logos-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px clamp(28px, 5vw, 64px); list-style: none; padding: 0; }
.logo-item { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.03em; color: #8d8d8a; transition: color .2s var(--ease); }
.logo-item:hover { color: var(--ink); }
.logo-item.is-placeholder { font-family: var(--font-sans); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0; border: 1px dashed #c9c8c2; border-radius: 8px; padding: 8px 12px; color: var(--muted); }
.logo-item img { height: 34px; width: auto; filter: grayscale(1); opacity: .85; transition: opacity .2s, filter .2s; }
.logo-item img:hover { filter: none; opacity: 1; }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 16px; list-style: none; padding: 0; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(28px, 3.2vw, 40px); background: var(--card); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-photo); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.service-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.service-card h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.service-card p { color: var(--muted); max-width: 44ch; }
.services-foot { margin-top: 32px; text-align: center; color: var(--muted); }
@media (min-width: 1000px) { .services-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.service-list { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.service-list li { padding-left: 18px; position: relative; }
.service-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.service-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.hero-eyebrow { margin-bottom: 20px; max-width: 64rem; line-height: 1.6; }

/* ---------- Work cards ---------- */
.work-grid { display: grid; gap: clamp(48px, 5vw, 64px) 28px; list-style: none; padding: 0; }
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work-card { position: relative; display: flex; flex-direction: column; }
.work-card-cover { overflow: hidden; border-radius: var(--radius-lg); background: var(--card); aspect-ratio: 4 / 3; margin-bottom: 22px; }
.work-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .work-card-cover img { transform: scale(1.04); }
/* Category label takes its color from --label on each card (keep it dark enough for 4.5:1 on white) */
.work-card-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label, var(--accent)); margin-bottom: 8px; }
.work-card h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; }
.work-card h3 a { text-decoration: none; }
.work-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.work-card h3 a:focus-visible { outline: none; }
.work-card h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 8px; }
.work-card p { color: var(--muted); margin-top: 10px; max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 16px; }
.tag { font-size: 0.8125rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--card); color: var(--ink-2); }

/* ---------- Numbers ---------- */
.stats { display: grid; list-style: none; padding: 0; text-align: center; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 28px 16px; }
.stat + .stat { border-top: 1px solid var(--line); }
@media (min-width: 800px) { .stat + .stat { border-top: 0; border-left: 1px solid var(--line); } }
.stat-value { font-family: var(--font-display); font-size: clamp(3.5rem, 7.5vw, 6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value .unit { color: var(--accent); }
.stat-label { margin-top: 12px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 16px; list-style: none; padding: 0; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 3vw, 36px); background: var(--card); border-radius: var(--radius-lg); }
.quote-card blockquote p { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); }
.quote-mark { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: .7; color: var(--accent); height: 28px; display: block; }
.quote-person { display: flex; align-items: center; gap: 14px; }
.quote-avatar { width: 46px; height: 46px; border-radius: 12px; background: #fff; flex: none; object-fit: cover; transform: rotate(-4deg); box-shadow: var(--shadow-sm); }
.quote-person strong { display: block; font-size: 0.9375rem; }
.quote-person span { font-size: 0.875rem; color: var(--muted); }
.quote-featured { margin: 0 auto; max-width: 900px; padding: clamp(32px, 5vw, 64px); background: var(--card); border-radius: var(--radius-lg); display: grid; gap: 28px; }
.quote-featured blockquote p { font-family: var(--font-display); font-size: clamp(1.375rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.quote-highlights { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .quote-highlights { grid-template-columns: repeat(3, 1fr); } }
.quote-highlights li { padding: 14px 16px; background: #fff; border-radius: 14px; font-size: 0.9375rem; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.quote-initials { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; transform: rotate(-4deg); }

/* ---------- About (home + about page) ---------- */
.about h2 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); margin-bottom: 28px; }
.about-body { display: flow-root; color: var(--ink-2); font-size: 1.0625rem; }
.about-body p + p { margin-top: 1.1em; }
.tilted-photo {
  float: right; width: clamp(140px, 30%, 240px); margin: -12px 0 24px clamp(20px, 4vw, 40px);
  border-radius: 18px; overflow: hidden; border: 6px solid #fff; background: var(--accent-soft);
  box-shadow: var(--shadow-photo); transform: rotate(4deg); transition: transform .4s var(--ease);
}
.tilted-photo:hover { transform: rotate(0deg); }
.tilted-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-more { margin-top: 24px; }

/* ---------- Contact CTA ---------- */
.cta { margin-top: var(--section); padding: clamp(72px, 10vw, 128px) 0; text-align: center; }
.cta-inner { display: grid; justify-items: center; }
.cta h2 { margin-top: 18px; font-size: clamp(2.5rem, 6.4vw, 5.25rem); letter-spacing: -0.025em; line-height: 1; max-width: 15ch; }
.cta-sub { margin-top: 24px; font-size: 1.125rem; color: var(--muted); max-width: 44ch; }
.cta-actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.cta-email { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.cta-email:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.social { display: flex; gap: 8px; list-style: none; padding: 0; }
.social a {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid #d6d6d2; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { border-color: var(--ink); transform: translateY(-1px); }
.social svg { width: 20px; height: 20px; }
.site-footer .social a { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto auto; gap: 40px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; }
.footer-links a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Placeholder marker (remove the span when content is real) ---------- */
.ph { background: #fff4cc; outline: 1px dashed #d4b244; border-radius: 4px; padding: 0 3px; }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.cs-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.cs-hero .container { display: grid; justify-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; margin-bottom: 20px; }
.back-link:hover { color: var(--ink); }
.cs-label-top { color: var(--label, var(--accent)); }
.cs-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 17ch; margin-top: 16px; }
.cs-summary { margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.cs-hero .tags { justify-content: center; margin-top: 24px; }

.cs-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 56px); width: 100%; max-width: 900px; text-align: left; }
@media (min-width: 800px) { .cs-meta { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.cs-meta > div { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.cs-meta dt { font-size: 0.75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cs-meta dd { margin-top: 4px; font-weight: 500; font-size: 0.9375rem; }

.cs-cover { margin-top: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.cs-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.cs-section { padding-top: clamp(64px, 8vw, 104px); }
.cs-section .num { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.cs-section h2 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.cs-body { display: grid; gap: 18px; font-size: 1.125rem; color: var(--ink-2); }
.cs-body .lead { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--ink); font-weight: 500; }
.cs-body ul { padding-left: 1.2em; display: grid; gap: 10px; }
.cs-body .note { font-size: 0.9375rem; color: var(--muted); }

.callout { padding: 22px 26px; border-radius: var(--radius); background: var(--card); }
.callout strong { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--font-display); font-size: 1.125rem; }

.decisions { display: grid; gap: clamp(48px, 6vw, 72px); margin-top: 16px; counter-reset: decision; }
.decision { display: grid; gap: 14px; }
.shot { margin: 0 0 8px; }
.cs-body .shot { margin: 8px 0 0; }
.shot-frame { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 24px); padding: clamp(16px, 3vw, 32px); background: var(--card); border-radius: var(--radius-lg); }
.shot-frame img { display: block; width: auto; max-width: 100%; height: auto; max-height: 720px; border-radius: 10px; box-shadow: var(--shadow-sm); background: #fff; }
.shot-frame--row img { min-width: 0; max-width: calc((100% - clamp(12px, 2vw, 24px)) / 2); }
.shot figcaption { padding: 12px 4px 0; font-size: 0.875rem; color: var(--muted); text-align: center; }
.decision h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); color: var(--ink); }
.decision h3::before { counter-increment: decision; content: "Decision " counter(decision); display: block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.decision p { color: var(--ink-2); font-size: 1.0625rem; }

.results { display: grid; gap: 12px; list-style: none; padding: 0; }
.results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.result { padding: 26px; border-radius: var(--radius); background: var(--card); text-align: center; }
.result-value { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.result-label { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }

.cs-quote { margin: 8px 0 0; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--card); text-align: center; }
.cs-quote p { font-family: var(--font-display); font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.cs-quote footer { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; }

.next-project { display: grid; justify-items: center; gap: 14px; text-align: center; text-decoration: none; margin-top: var(--section); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.next-project-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; max-width: 22ch; transition: color .2s; }
.next-project .arrow-circle { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .3s var(--ease); }
.next-project:hover .arrow-circle { transform: translateX(6px); }
.next-project:hover .next-project-title { color: var(--accent); }

/* ---------- Simple content pages (About, Accessibility) ---------- */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.035em; max-width: 15ch; margin: 16px auto 0; }
.prose { display: grid; gap: 18px; font-size: 1.0625rem; color: var(--ink-2); }
.prose h2 { font-size: 1.625rem; margin-top: 24px; color: var(--ink); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; gap: 2px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 700px) { .timeline li { grid-template-columns: 160px 1fr; } }
.timeline .when { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.015em; }
.timeline span { color: var(--muted); }

.values { display: grid; gap: 12px; list-style: none; padding: 0; }
.values li { padding: 24px 28px; background: var(--card); border-radius: var(--radius); }
@media (min-width: 640px) { .values--2 { grid-template-columns: repeat(2, 1fr); } }
.values h3 { font-size: 1.375rem; margin-bottom: 6px; }
.values p { color: var(--muted); }

/* ---------- Scroll reveal (only when JS is on; respects reduced motion) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .pulse::after { animation: none; }
}
