/* Rob Cressey portfolio — shared styles
   10px baseline, Sora + Newsreader, body 14/20 everywhere. */

:root {
  --sky: #EDF3F8;
  --band: #DFEAF3;
  --ink: #17283A;
  --ink-2: #2F4357;
  --muted: #56697D;
  --blue: #2F86C9;
  --blue-press: #1F6AA5;
  --line: #CFDDE9;
  --pale: #9FB3C7;
  --dim: #A3A9B1;
  --white: #FFFFFF;
  --error: #B3261E;

  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --margin: 40px;
  --max: 1200px;
  --header: 72px;
  --band-pad: 100px;
  --radius: 16px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

@media (max-width: 599px) {
  :root { --margin: 20px; --header: 60px; --band-pad: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
strong, b { font-weight: 400; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display {
  font-weight: 700; font-size: 64px; line-height: 80px; letter-spacing: -0.02em;
}
.display em, .display .serif {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 70px; line-height: 80px; letter-spacing: 0; color: var(--blue);
}
.display .inline-serif { display: inline; }
.h-section { font-weight: 600; font-size: 30px; line-height: 40px; letter-spacing: -0.01em; }
.h-sub { font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.h-card { font-weight: 600; font-size: 20px; line-height: 30px; }
.h-statement { font-weight: 700; font-size: 36px; line-height: 50px; letter-spacing: -0.01em; }
.lead { font-weight: 200; font-size: 24px; line-height: 40px; }
.lead b, .lead strong { font-weight: 400; }
.lead-20 { font-weight: 300; font-size: 20px; line-height: 30px; }
.body b, .body strong, p b { font-weight: 400; }
.eyebrow { font-weight: 600; font-size: 16px; line-height: 20px; }
.label-serif { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 28px; line-height: 40px; color: var(--muted); }
.closing { font-weight: 600; font-size: 24px; line-height: 40px; letter-spacing: -0.01em; }
.small { font-size: 12px; line-height: 20px; }
.muted { color: var(--muted); }
.prose p + p { margin-top: 20px; }

.link {
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: color .15s ease-out;
}
.link:hover { color: var(--blue); }
.link:active { color: var(--blue-press); }
.link-blue { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-blue:hover { color: var(--blue-press); }

@media (max-width: 599px) {
  .display { font-size: 34px; line-height: 40px; }
  .display em, .display .serif { font-size: 36px; line-height: 40px; }
  .h-section { font-size: 24px; line-height: 30px; }
  .h-sub { font-size: 20px; line-height: 30px; }
  .h-statement { font-size: 28px; line-height: 40px; }
  .lead { font-size: 20px; line-height: 30px; }
  .lead-20 { font-size: 18px; line-height: 30px; }
  .label-serif { font-size: 24px; line-height: 30px; }
  .closing { font-size: 20px; line-height: 30px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header);
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.site-name {
  font-weight: 600; font-size: 20px; line-height: 20px; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
}
.menu-btn {
  position: absolute; left: calc(var(--margin) - 14px); top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 8px;
}
.menu-btn .bars { position: relative; width: 16px; height: 12px; }
.menu-btn .bars span {
  position: absolute; left: 0; height: 2px; width: 16px; background: var(--ink); border-radius: 1px;
  transition: transform .2s var(--ease), opacity .15s, background-color .15s, width .15s;
}
.menu-btn .bars span:nth-child(1) { top: 0; }
.menu-btn .bars span:nth-child(2) { top: 5px; }
.menu-btn .bars span:nth-child(3) { top: 10px; }
.menu-btn:hover .bars span { background: var(--blue); }
.menu-btn:hover .bars span:nth-child(2) { width: 11px; }
.menu-open .menu-btn .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn .bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 599px) { .site-name { font-size: 18px; } }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 49;
  background: var(--sky);
  display: none; flex-direction: column; justify-content: space-between;
  padding: 66px 0 34px; overflow-y: auto;
}
.menu-open .menu { display: flex; }
.menu-open body, body.menu-open { overflow: hidden; }
.menu ul li { border-bottom: 1px solid var(--line); }
.menu ul a {
  display: block; padding: 10px 0 4px;
  font-weight: 300; font-size: 56px; line-height: 70px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink); transition: color .15s ease-out;
}
.menu ul a[aria-current="page"] { font-weight: 700; }
.menu ul a:hover { color: var(--blue); }
.menu ul a:active { color: var(--blue-press); }
.menu-meta { display: flex; gap: 40px; margin-top: 60px; }
.menu-meta a { font-weight: 600; font-size: 12px; line-height: 20px; color: var(--muted); text-decoration: none; }
.menu-meta a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 599px) {
  .menu { padding-top: 60px; }
  .menu ul a { font-size: 34px; line-height: 50px; padding: 8px 0 8px; }
}

/* ---------- Bands & sections ---------- */
.band { background: var(--band); }
.band-white { background: var(--white); }
.section { padding: var(--band-pad) 0; }
.section-tight { padding: 60px 0; }
.stack > * + * { margin-top: 20px; }
.stack-40 > * + * { margin-top: 40px; }
.stack-60 > * + * { margin-top: 60px; }
.stack-100 > * + * { margin-top: 100px; }
@media (max-width: 599px) {
  .stack-60 > * + * { margin-top: 40px; }
  .stack-100 > * + * { margin-top: 60px; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px;
}
.card .icon { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 20px; }
.card .icon-64 { width: 64px; height: 64px; }
.card h3 { margin-bottom: 10px; }
.card .h-card-regular { font-weight: 400; font-size: 20px; line-height: 30px; margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 30px 30px; }
}

/* ---------- Media ---------- */
.media { border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; }
figure.zoomable { position: relative; cursor: zoom-in; }
figure.zoomable button.zoom-hit {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: zoom-in; padding: 0;
}
figure.zoomable .zoom-hint {
  position: absolute; right: 12px; bottom: 12px; pointer-events: none;
  background: rgba(23, 40, 58, .82); color: var(--white); border-radius: 20px;
  font-weight: 600; font-size: 12px; line-height: 20px; padding: 6px 12px;
  opacity: 0; transition: opacity .15s ease-out;
}
figure.zoomable:hover .zoom-hint, figure.zoomable:focus-within .zoom-hint { opacity: 1; }
@media (hover: none) { figure.zoomable .zoom-hint { opacity: 1; } }
figcaption.caption { margin-top: 10px; font-size: 12px; line-height: 20px; color: var(--muted); }

.video-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.video-card.playing { background: #000; }
.video-card img { width: 100%; transition: transform .4s var(--ease), filter .3s ease-out; }
.video-card .play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: rgba(23, 40, 58, .18); display: grid; place-items: center; transition: background-color .25s ease-out;
}
.video-card .play-icon {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent, var(--blue)); color: var(--band-c, var(--ink)); box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), box-shadow .25s ease-out;
}
.video-card .play-icon svg { width: 52px; height: 52px; fill: currentColor; display: block; }
.video-card .play:hover, .video-card .play:focus-visible { background: rgba(23, 40, 58, .38); }
.video-card .play:hover .play-icon, .video-card .play:focus-visible .play-icon { transform: scale(1.1); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.video-card:hover img { transform: scale(1.02); }
.video-card .play:active .play-icon { transform: scale(.96); }
.video-card .play:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
@media (max-width: 599px) { .video-card .play-icon { width: 72px; height: 72px; } .video-card .play-icon svg { width: 40px; height: 40px; } }
.video-card video { width: 100%; display: block; }

/* ---------- Zoom viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 90; background: rgba(13, 22, 32, .94);
  display: none;
}
.viewer.open { display: block; }
.viewer-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: grid; place-items: center; }
.viewer img { max-width: none; width: auto; height: auto; cursor: zoom-out; }
.viewer.fit img { max-width: calc(100vw - 80px); max-height: calc(100vh - 120px); cursor: zoom-in; }
.viewer-bar { position: fixed; top: 16px; right: 16px; display: flex; gap: 10px; z-index: 2; }
.viewer-bar button {
  border: 0; border-radius: 22px; height: 44px; padding: 0 18px; cursor: pointer;
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px;
}
.viewer-bar .close { width: 44px; padding: 0; font-size: 22px; line-height: 44px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: center; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel-dots button {
  width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%;
}
.carousel-dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background-color .15s; }
.carousel-dots button[aria-current="true"]::before { background: var(--muted); }
.quote-slide {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 36px; line-height: 40px; text-align: center; padding: 0 12%;
}
@media (max-width: 599px) { .quote-slide { font-size: 24px; line-height: 30px; padding: 0 4px; } }

/* ---------- Statement footer (home, work with me) ---------- */
.statement { background: var(--band); padding: 60px 0; }
.statement blockquote {
  max-width: 780px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 24px; line-height: 30px;
}
.statement p { margin-top: 30px; }
@media (max-width: 599px) { .statement blockquote { font-size: 22px; line-height: 30px; } }

/* ---------- Case study hero ---------- */
.cs-hero { --top-pad: 37px; position: relative; color: var(--white); }
.cs-hero .hero-top { background: var(--hero-top, transparent); padding-top: var(--top-pad); position: relative; z-index: 2; }
.cs-hero .hero-media { position: relative; z-index: 2; margin-bottom: calc(-1 * var(--overlap, 40px)); }
.cs-hero .hero-media img { margin: 0 auto; }
.cs-hero .hero-band { background: var(--band-c); position: relative; overflow: hidden; padding-top: var(--overlap, 40px); }
.cs-hero .hero-band .wrap { position: relative; padding-bottom: 60px; }
.cs-hero .hero-logo { position: absolute; z-index: 1; }
.cs-hero h1 { position: relative; z-index: 2; padding-top: var(--h1-offset, 255px); color: var(--white); }
.cs-hero h1 em { color: var(--accent); }
.impact { position: relative; z-index: 2; margin-top: 32px; }
.impact .impact-label { font-weight: 400; font-size: 14px; line-height: 20px; color: var(--accent); }
.impact ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2px; }
.impact .fig { display: block; font-weight: 700; font-size: 72px; line-height: 90px; letter-spacing: -0.02em; color: var(--white); white-space: nowrap; }
.impact .lab { display: block; font-weight: 400; font-size: 20px; line-height: 25px; color: var(--accent); max-width: 220px; }
@media (max-width: 1023px) {
  .impact .fig { font-size: 52px; line-height: 70px; }
  .impact .lab { font-size: 16px; line-height: 20px; }
}
@media (max-width: 599px) {
  .cs-hero { --top-pad: 20px; }
  .cs-hero .hero-band .wrap { padding-bottom: 60px; }
  .cs-hero h1 { padding-top: var(--h1-offset-m, 140px); }
  .impact { margin-top: 40px; }
  .impact ul { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .impact .fig { font-size: 40px; line-height: 50px; }
  .impact .lab { font-size: 16px; line-height: 20px; margin-top: 4px; }
}

/* ---------- Case study sections ---------- */
.cs-section { padding: var(--band-pad) 0; }
.cs-section.band { background: var(--band); }
.two-col { display: grid; gap: 40px 60px; align-items: start; }
.challenge-grid { grid-template-columns: minmax(0, 776px) minmax(0, 356px); justify-content: space-between; }
.details { display: grid; grid-template-columns: 167px 1fr; gap: 0 15px; font-size: 11px; line-height: 30px; padding-top: 10px; border-bottom: 1px solid var(--line); padding-bottom: 20px; align-self: start; }
.details dt { font-weight: 300; text-align: right; }
.details dd { margin: 0; font-weight: 400; }
.details dd small { font-weight: 300; font-size: 10px; }
.role-grid { grid-template-columns: minmax(0, 340fr) minmax(0, 860fr); gap: 20px 0; }
@media (max-width: 1023px) {
  .challenge-grid, .role-grid { grid-template-columns: 1fr; }
  .details { max-width: 400px; }
  .details dt { text-align: left; }
}
@media (max-width: 599px) {
  .details { grid-template-columns: 130px 1fr; gap: 0 10px; }
}

.split { display: grid; gap: 40px 60px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr !important; }
  .split .order-first-m { order: -1; }
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-tile {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 30px 24px; min-height: 220px; display: flex; flex-direction: column;
}
.stat-tile .fig { font-weight: 700; font-size: 64px; line-height: 80px; letter-spacing: -0.02em; white-space: nowrap; }
.stat-tile .lab { font-weight: 600; font-size: 14px; line-height: 20px; margin-top: 10px; }
.stat-tile .src { margin-top: auto; padding-top: 20px; font-size: 11px; line-height: 20px; color: var(--muted); }
.stat-tile .src a { color: var(--muted); }
.stat-tile .src a:hover { color: var(--blue); }
.stat-tile blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 24px; line-height: 30px; margin-top: 6px; }
.stat-tile .attr { font-weight: 600; font-size: 11px; line-height: 20px; margin-top: auto; padding-top: 20px; }
.stat-tile .attr + .src { padding-top: 0; margin-top: 0; }
.stat-tile .wordmark { height: 90px; width: auto; object-fit: contain; object-position: left center; margin-top: 6px; }
@media (max-width: 1023px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-tile .fig { font-size: 48px; line-height: 60px; }
}
@media (max-width: 599px) {
  .stat-tile { padding: 20px; min-height: 0; }
  .stat-tile .fig { font-size: 32px; line-height: 40px; }
  .stat-tile blockquote { font-size: 20px; line-height: 30px; }
  .stat-tile .wordmark { height: 60px; }
}

.closing-wrap { display: flex; justify-content: flex-end; }
.closing-wrap .closing { max-width: 813px; }

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.logo-grid img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); background: var(--white); }
@media (max-width: 599px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* Quote panel (Kubik) */
.quote-panel { background: #0C1829; border-radius: var(--radius); color: var(--white); display: grid; grid-template-columns: minmax(0, 522fr) minmax(0, 400fr); gap: 40px; padding: 16px 60px 0 44px; align-items: center; overflow: hidden; }
.quote-panel img { align-self: end; }
.quote-panel blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 36px; line-height: 40px; text-align: center; position: relative; }
.quote-panel blockquote::before { content: "“"; position: absolute; left: 50%; top: -130px; transform: translateX(-50%); font-family: var(--sans); font-weight: 400; font-size: 400px; line-height: 1; color: rgba(255,255,255,.06); z-index: 0; pointer-events: none; }
.quote-panel cite { display: block; font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 11px; line-height: 20px; margin-top: 30px; }
@media (max-width: 899px) {
  .quote-panel { grid-template-columns: 1fr; padding: 30px 20px 0; gap: 30px; }
  .quote-panel blockquote { font-size: 24px; line-height: 30px; }
  .quote-panel img { order: 2; max-width: 360px; margin: 0 auto; }
}

/* Video blocks */
.video-row { display: grid; grid-template-columns: minmax(0, 796fr) minmax(0, 334fr); grid-template-rows: 1fr 1fr; grid-template-areas: "media title" "media body"; column-gap: 70px; }
.video-row.reverse { grid-template-columns: minmax(0, 337fr) minmax(0, 790fr); grid-template-areas: "title media" "body media"; }
.video-row .vt { grid-area: title; align-self: end; font-weight: 400; font-size: 24px; line-height: 30px; margin-bottom: 20px; }
.video-row .vm { grid-area: media; }
.video-row .vb { grid-area: body; align-self: start; }
.video-row .len { margin-top: 20px; }
@media (max-width: 1023px) {
  .video-row, .video-row.reverse { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "title" "media" "body"; }
  .video-row .vt { font-size: 20px; line-height: 30px; }
  .video-row .vb { margin-top: 20px; }
}

/* ---------- Next case footer ---------- */
.next-case { background: var(--band-c); color: var(--white); padding: 100px 0 40px; }
.next-case .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.next-case .eyebrow-s { font-weight: 600; font-size: 12px; line-height: 20px; color: var(--pale); }
.next-case .name { display: block; font-weight: 700; font-size: 64px; line-height: 70px; letter-spacing: -0.02em; color: var(--white); text-decoration: none; margin-top: 2px; }
.next-case .remit { font-weight: 300; font-size: 16px; line-height: 20px; color: var(--pale); margin-top: 10px; max-width: 520px; }
.next-btn {
  flex: none; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--band-c); text-decoration: none; font-size: 28px; line-height: 1;
  transition: transform .15s var(--ease), background-color .15s ease-out;
}
.next-btn span { transition: transform .15s var(--ease); display: block; }
.next-btn:hover span { transform: translateX(4px); }
.next-btn:hover { filter: brightness(.92); }
.next-btn:active { transform: scale(.96); }
.next-case .meta-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.9); margin-top: 76px; padding-top: 30px; gap: 20px; }
.next-case .meta-row a, .next-case .meta-row span { font-weight: 600; font-size: 12px; line-height: 20px; color: var(--pale); text-decoration: none; }
.next-case .meta-row a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 599px) {
  .next-case { padding: 60px 0 40px; }
  .next-case .name { font-size: 40px; line-height: 50px; }
  .next-btn { width: 60px; height: 60px; font-size: 22px; }
  .next-case .meta-row { flex-direction: column; gap: 10px; margin-top: 40px; }
}

/* ---------- Password dialog ---------- */
.pw-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(23, 40, 58, .6); display: none; }
.pw-open .pw-backdrop { display: block; }
.pw-dialog {
  position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 40px)); background: var(--white); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 50px 40px 40px; display: none;
}
.pw-open .pw-dialog { display: block; }
.pw-page .pw-dialog { display: block; position: static; transform: none; margin: 80px auto 100px; box-shadow: var(--shadow); }
.pw-dialog h2 { font-weight: 700; font-size: 28px; line-height: 40px; letter-spacing: -0.01em; padding-right: 30px; }
.pw-dialog .intro { margin-top: 15px; }
.pw-dialog label.field-label { display: block; font-weight: 600; font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 30px; margin-bottom: 4px; }
.pw-dialog input[type="password"] {
  width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px;
  font-family: var(--sans); font-weight: 400; font-size: 18px; color: var(--ink); background: var(--white);
}
.pw-dialog input[type="password"]:hover { border-color: var(--pale); }
.pw-dialog input[type="password"]:focus { outline: none; border: 2px solid var(--blue); padding: 0 15px; box-shadow: 0 0 0 3px rgba(47,134,201,.25); }
.pw-dialog.error input[type="password"] { border: 2px solid var(--error); padding: 0 15px; }
.pw-error { display: none; color: var(--error); font-weight: 400; margin-top: 15px; }
.pw-dialog.error .pw-error { display: block; }
.pw-check { display: flex; align-items: center; gap: 12px; margin-top: 22px; cursor: pointer; }
.pw-check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.btn-primary {
  display: block; width: 100%; height: 52px; margin-top: 20px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--ink); color: var(--white); font-weight: 600; font-size: 16px; line-height: 20px; text-decoration: none; text-align: center;
  transition: background-color .15s ease-out;
}
.btn-primary:hover { background: #2A3F55; }
.btn-primary:active { background: #0F1C29; }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
.pw-ask { text-align: center; margin-top: 25px; }
.pw-close { position: absolute; right: 30px; top: 30px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-close svg { width: 14px; height: 14px; }
@media (max-width: 599px) {
  .pw-dialog { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; border-radius: 16px 16px 0 0; padding: 32px 20px 40px; }
  .pw-dialog::before { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
  .pw-dialog h2 { font-size: 24px; }
  .pw-close { right: 10px; top: 10px; }
  .pw-page .pw-dialog { margin: 40px 20px; width: auto; border-radius: 16px; }
  .pw-page .pw-dialog::before { display: none; }
}

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

/* ---------- Home ---------- */
.home-hero { padding-top: 66px; }
.case-index {
  --active-band: #1E2427; --active-accent: #63DBC4;
  background: var(--active-band); color: var(--white); margin-top: 56px;
  padding: 68px 0 80px; transition: background-color .3s ease-out;
}
.ci-grid { position: relative; --lw: 620px; --gap: 60px; }
.ci-grid > div { width: var(--lw); }
.ci-cols, .ci-row a { display: grid; grid-template-columns: 150px 150px 1fr 52px; align-items: center; }
.ci-row .name { white-space: nowrap; }
.ci-cols { font-weight: 600; font-size: 13px; line-height: 16px; color: var(--pale); padding-bottom: 16px; border-bottom: 1px solid var(--pale); }
.ci-row a { text-decoration: none; color: var(--dim); padding: 24px 0 23px; border-bottom: 1px solid rgba(255,255,255,.9); min-height: 100px; }
.ci-row .stage { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 30px; }
.ci-row .client { font-weight: 600; font-size: 12px; line-height: 20px; letter-spacing: .03em; }
.ci-row .name { font-weight: 600; font-size: 30px; line-height: 34px; letter-spacing: -0.025em; }
.ci-row .open {
  width: 52px; height: 52px; border-radius: 50%; background: var(--active-accent); color: var(--active-band);
  display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity .2s ease-out, transform .2s var(--ease);
}
.ci-row .open svg { width: 24px; height: 24px; }
.ci-row.active a { color: var(--white); }
.ci-row.active .stage { color: var(--active-accent); }
.ci-row.active .open { opacity: 1; transform: none; }
.ci-row a:focus-visible { outline-offset: -2px; }
.ci-preview { display: none; }
.ci-row.active .ci-preview { display: block; position: absolute; left: calc(var(--lw) + var(--gap)); right: 0; top: 32px; }
.ci-preview img { width: 100%; aspect-ratio: 520 / 293; object-fit: cover; }
.ci-preview .strap { display: block; margin-top: 25px; text-align: center; font-weight: 700; font-size: 22px; line-height: 30px; letter-spacing: -0.03em; color: var(--white); }
.ci-preview .strap em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 25px; letter-spacing: 0; color: var(--active-accent); }
@media (max-width: 1199px) and (min-width: 900px) {
  .ci-grid { --lw: calc(50% - 20px); --gap: 40px; }
  .ci-cols, .ci-row a { grid-template-columns: 150px 1fr 52px; }
  .ci-cols span:nth-child(2), .ci-row .client { display: none; }
}
@media (max-width: 899px) and (min-width: 600px) {
  .ci-grid { --lw: calc(50% - 15px); --gap: 30px; }
  .ci-cols, .ci-row a { grid-template-columns: 1fr 44px; }
  .ci-cols span:nth-child(1), .ci-cols span:nth-child(2), .ci-row .client, .ci-row .stage { display: none; }
  .ci-row .name { font-size: 24px; line-height: 30px; }
  .ci-row .open { width: 44px; height: 44px; }
  .ci-preview .strap { font-size: 18px; line-height: 24px; }
  .ci-preview .strap em { font-size: 20px; line-height: 24px; }
}
@media (max-width: 599px) {
  .home-hero { padding-top: 38px; }
  .case-index { margin-top: 49px; padding: 20px 0 60px; }
  .ci-grid { display: block; }
  .ci-cols { display: none; }
  .ci-row a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "stage client" "name open" "prev prev"; column-gap: 10px; padding: 20px 0; min-height: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .ci-row .stage { grid-area: stage; font-size: 18px; }
  .ci-row .client { grid-area: client; font-size: 11px; text-align: right; }
  .ci-row .name { grid-area: name; font-size: 26px; line-height: 30px; }
  .ci-row .open { grid-area: open; width: 44px; height: 44px; display: none; }
  .ci-row.active .open { display: grid; }
  .ci-row.active .stage { font-size: 20px; }
  .ci-row.active .name { font-size: 30px; line-height: 40px; }
  .ci-row .ci-preview { grid-area: prev; }
  .ci-row.active .ci-preview { position: static; margin-top: 20px; }
  .ci-preview img { border-radius: var(--radius); aspect-ratio: 350 / 190; }
  .ci-preview .strap { text-align: left; font-size: 20px; margin-top: 18px; }
  .ci-preview .strap em { display: inline; font-size: 22px; }
}

/* ---------- Work with me ---------- */
.wwm-hero { padding-top: 66px; padding-bottom: 80px; }
.wwm-hero .lead-20 { max-width: 800px; margin-top: 24px; }
.stages { border-top: 1px solid var(--line); margin-top: 30px; }
.stage-row { display: grid; grid-template-columns: minmax(0, 300fr) minmax(0, 520fr) minmax(0, 300fr); gap: 0 40px; padding: 30px 0 40px; border-bottom: 1px solid var(--line); }
.stage-row .stage-name { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 30px; color: var(--muted); padding-top: 10px; }
.stage-row .voice { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; line-height: 30px; color: var(--muted); margin-top: 20px; }
.stage-row .what { margin-top: 15px; }
.stage-row .side { padding-top: 10px; }
.stage-row .side img { width: 100%; }
.stage-row .side .link { display: inline-block; margin-top: 20px; }
.hpp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.across .first { max-width: 560px; }
.across .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; margin-top: 40px; }
.across h3 { margin-bottom: 7px; }
.ways .card h3 { margin-bottom: 7px; }
.cta { margin-top: 80px; }
.cta h2 { font-weight: 700; font-size: 40px; line-height: 50px; letter-spacing: -0.02em; }
.cta h2 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; line-height: 50px; letter-spacing: 0; color: var(--blue); }
.cta .link { display: inline-block; margin-top: 20px; }
@media (max-width: 1023px) {
  .stage-row { grid-template-columns: 1fr 1fr; }
  .stage-row .stage-name { grid-column: 1 / -1; }
  .across .pair { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 599px) {
  .wwm-hero { padding-top: 38px; padding-bottom: 60px; }
  .stage-row { grid-template-columns: 1fr; padding: 30px 0; }
  .stage-row .side { padding-top: 30px; }
  .across .pair { grid-template-columns: 1fr; }
  .cta { margin-top: 60px; }
  .cta h2 { font-size: 30px; line-height: 40px; }
  .cta h2 em { font-size: 34px; line-height: 40px; }
}

/* ---------- CV ---------- */
.cv-hero { padding-top: 66px; padding-bottom: 60px; }
.cv-role { font-weight: 400; font-size: 20px; line-height: 30px; margin-top: 14px; }
.cv-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-weight: 600; font-size: 13px; line-height: 20px; }
.cv-contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cv-contact a:hover { color: var(--blue); border-color: var(--blue); }
.cv-contact span { color: var(--muted); }
.cv-label { font-weight: 600; font-size: 12px; line-height: 20px; color: var(--muted); }
.cv-profile { display: grid; grid-template-columns: 264px 1fr; border-top: 1px solid var(--ink); padding: 30px 0 70px; }
.cv-profile p { font-weight: 300; font-size: 20px; line-height: 30px; color: var(--ink-2); max-width: 900px; }
.cv-impact { background: var(--band); padding: 56px 0 60px; }
.cv-impact ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 23px; }
.cv-impact li { border-top: 1px solid var(--blue); padding-top: 17px; }
.cv-impact .big { font-weight: 700; font-size: 40px; line-height: 50px; letter-spacing: -0.02em; }
.cv-impact .big.s { font-size: 26px; line-height: 30px; }
.cv-impact p { font-size: 13px; line-height: 20px; color: var(--ink-2); margin-top: 6px; }
.cv-jobs { padding-top: 64px; padding-bottom: 20px; }
.job { display: grid; grid-template-columns: minmax(140px, 264px) minmax(0, 1fr) 280px; column-gap: 40px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.job .when { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 26px; line-height: 30px; color: var(--blue); }
.job .co { font-weight: 600; font-size: 24px; line-height: 30px; margin-top: 4px; }
.job .note { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 6px; }
.job .title { font-weight: 600; font-size: 16px; line-height: 20px; }
.job .summary { color: var(--ink-2); margin-top: 14px; }
.job ul { margin-top: 20px; }
.job li { position: relative; padding-left: 26px; color: var(--ink-2); }
.job li + li { margin-top: 10px; }
.job li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.job li b { color: var(--ink); font-weight: 600; }
.job aside > * + * { margin-top: 12px; }
.side-box { background: var(--white); padding: 18px 20px; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.side-box .logo { height: 28px; width: auto; }
.side-box .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.side-box .links { display: flex; gap: 10px; font-weight: 600; font-size: 12px; }
.side-box b { color: var(--ink); font-weight: 700; }
.side-box .meta { font-weight: 600; font-size: 12px; color: var(--muted); }
.side-img { width: 100%; }
.side-link { display: inline-block; font-weight: 600; font-size: 13px; line-height: 20px; }
.side-list { font-size: 13px; line-height: 20px; }
.side-list div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.side-list a { font-weight: 600; color: var(--ink); }
.cv-early { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; padding: 8px 0 80px; }
.cv-early h2 { font-weight: 600; font-size: 18px; line-height: 20px; margin-bottom: 14px; }
.cv-early p { color: var(--ink-2); }
.cv-early p + p { margin-top: 6px; }
.cv-early b { font-weight: 600; color: var(--ink); }
.cv-foot { background: var(--band); padding: 42px 0; }
.cv-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cv-foot .right { display: flex; align-items: center; gap: 40px; }
.cv-foot .right a.mail { color: var(--muted); text-decoration: none; }
.cv-foot .btn-primary { width: 180px; margin: 0; display: grid; place-items: center; }
@media (max-width: 1023px) {
  .job { grid-template-columns: 1fr; gap: 20px; }
  .job aside { max-width: 400px; }
  .cv-profile { grid-template-columns: 1fr; gap: 14px; }
  .cv-impact ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .cv-hero { padding-top: 38px; padding-bottom: 40px; }
  .cv-profile p { font-size: 18px; line-height: 30px; }
  .cv-impact ul { grid-template-columns: 1fr; gap: 24px; }
  .cv-early { grid-template-columns: 1fr; }
  .cv-foot .right { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.link-plain { text-decoration: underline; text-underline-offset: 3px; }
.link-plain:hover { color: var(--blue); }

/* ---------- Case hero geometry ---------- */
.cs-hero { --overlap: 40px; --overlap-m: 16px; --h1: 255px; --h1m: 140px; }
.cs-hero .hero-band { padding-top: var(--overlap); }
.cs-hero h1 { padding-top: calc(var(--h1) - var(--overlap)); }
.cs-hero .hero-logo { left: calc(var(--margin) + var(--lx, 0px)); top: calc(var(--ly, 0px) - var(--overlap)); width: var(--lw); max-width: none; }
.cs-hero .hero-media { margin-bottom: calc(-1 * var(--overlap)); }
.cs-hero .hero-media.bleed { padding: 0; max-width: 1379px; }
.cs-hero .hero-media.bleed img { width: 100%; }
.cs-hero .hero-texture { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.cs-hero .partners { position: relative; z-index: 2; margin-top: 34px; font-weight: 400; font-size: 20px; line-height: 25px; color: var(--accent); }
.siena-stats { position: relative; z-index: 2; margin-top: 10px; font-weight: 400; font-size: clamp(22px, 2.4vw, 31px); line-height: 60px; color: var(--white); display: flex; flex-wrap: nowrap; gap: 0 clamp(20px, 2.6vw, 34px); white-space: nowrap; }
.siena-stats b { font-weight: 700; font-size: clamp(40px, 4.8vw, 61px); line-height: 70px; letter-spacing: -0.02em; margin-right: 10px; vertical-align: -6px; }
.siena-stats span { white-space: nowrap; }
@media (max-width: 1023px) {
  .siena-stats { font-size: 24px; line-height: 50px; }
  .siena-stats b { font-size: 48px; line-height: 50px; vertical-align: -4px; }
}
@media (max-width: 599px) {
  .cs-hero .hero-band { padding-top: var(--overlap-m); }
  .cs-hero h1 { padding-top: calc(var(--h1m) - var(--overlap-m)); }
  .cs-hero .hero-media { margin-bottom: calc(-1 * var(--overlap-m)); }
  .cs-hero .hero-logo { left: calc(var(--margin) + var(--lx, 0px) * .55); top: calc(var(--ly, 0px) * .55 - var(--overlap-m)); width: calc(var(--lw) * .55); }
  .cs-hero .partners { font-size: 16px; line-height: 20px; margin-top: 30px; }
  .siena-stats { flex-direction: column; font-size: 20px; line-height: 40px; }
  .siena-stats b { font-size: 40px; line-height: 50px; }
}
.cs-section.sky { background: var(--sky); }
.text-col { max-width: 485px; }
.wide-col { max-width: 800px; }
.center-block { max-width: 1000px; margin-left: auto; margin-right: auto; }
.right-col { margin-left: auto; }
.cards-2 { margin-top: 60px; }
.so-what .h-statement { margin-top: 18px; max-width: 1000px; }
.so-what .body { margin-top: 20px; max-width: 485px; }
.so-what .stats-grid, .so-what .grid-3, .so-what .logo-grid { margin-top: 60px; }
.so-what .closing-wrap { margin-top: 60px; }
@media (max-width: 599px) { .so-what .stats-grid, .so-what .grid-3, .so-what .logo-grid, .so-what .closing-wrap { margin-top: 40px; } .cards-2 { margin-top: 40px; } }

/* ---------- Spacing utilities (desktop → mobile) ---------- */
.mt-5 { margin-top: 5px; } .mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; } .mt-50 { margin-top: 50px; } .mt-60 { margin-top: 60px; } .mt-70 { margin-top: 70px; } .mt-80 { margin-top: 80px; }
.mt-100 { margin-top: 100px; } .mt-140 { margin-top: 140px; } .mt-160 { margin-top: 160px; }
.pt-col { padding-top: 98px; }
.pt-0 { padding-top: 0 !important; }
.cont { padding-top: 30px !important; }
@media (max-width: 899px) { .pt-col { padding-top: 0; } }
@media (max-width: 599px) {
  .mt-50, .mt-60, .mt-70, .mt-80 { margin-top: 40px; }
  .mt-100, .mt-140, .mt-160 { margin-top: 60px; }
  .cont { padding-top: 20px !important; }
}

/* ---------- Siena ---------- */
.display em.inline-serif { display: inline; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.board-grid img { width: 100%; border-radius: 12px; }
.film-row { display: grid; grid-template-columns: minmax(0, 862fr) minmax(0, 275fr); gap: 56px; align-items: center; }
.film-cap { max-width: 590px; margin-left: 50px; }
.collage { position: relative; padding-bottom: 150px; }
.collage .c-a { width: 70%; border-radius: 12px; }
.collage .c-b { position: absolute; right: 0; bottom: 0; width: 37.7%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.api-intro { max-width: 629px; margin-left: 68px; }
.stagger { position: relative; }
.stagger .s-a { width: 66%; margin-left: auto; border-radius: 12px; }
.stagger .s-b { width: 66%; margin-top: -47px; position: relative; }
.stagger .s-b img { border-radius: 12px; }
.sw-cards h3 { font-weight: 300; font-size: 14px; line-height: 20px; }
.sw-cards .sw-meta { margin-top: 20px; }
.sw-cards img { margin-top: 30px; width: 100%; border-radius: 12px; }
.sw-cards img + p { margin-top: 30px; }
.sw-cards .sw-link { margin-top: 20px; }
@media (max-width: 899px) {
  .film-row { grid-template-columns: 1fr; gap: 20px; }
  .film-row > div:first-child { order: 2; }
  .film-cap, .api-intro { margin-left: 0; }
}
@media (max-width: 599px) {
  .collage { padding-bottom: 0; }
  .collage .c-a, .collage .c-b { position: static; width: 100%; }
  .collage .c-b { margin-top: 20px; }
  .stagger .s-a, .stagger .s-b { width: 100%; }
  .stagger .s-b { margin-top: 20px; }
}

/* ---------- Console ---------- */
.uc-wrap { position: relative; }
.uc-collage { position: relative; width: 84.3%; aspect-ratio: 1012 / 1212; }
.uc-collage figure { position: absolute; margin: 0; }
.uc-collage img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.uc-collage .uc1 { left: 6.3%; top: 6.6%; width: 60.2%; }
.uc-collage .uc2 { left: 0; top: 0; width: 38.7%; }
.uc-collage .uc3 { left: 61.3%; top: 67.7%; width: 38.7%; }
.uc-text { position: absolute; right: 0; top: 10.9%; width: 33%; }
.ann-wrap { position: relative; }
.live-head { position: absolute; z-index: 2; left: 62.5%; right: 0; top: 8%; }
.ann-home { margin-top: 0; }
.learn .icon-65 { width: 65px; height: auto; border-radius: 0; }
.carousel.concept .carousel-track { grid-auto-columns: 84%; gap: 30px; padding: 0 8%; }
.carousel.concept figure img { border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 1023px) {
  .uc-collage { width: 100%; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .uc-collage figure { position: static; width: auto !important; }
  .uc-collage .uc1 { grid-column: 1 / -1; order: 2; }
  .uc-text { position: static; width: auto; margin-top: 40px; }
  .uc-wrap { display: flex; flex-direction: column-reverse; }
  .uc-text { margin: 0 0 40px; }
  .live-head { position: static; margin-bottom: 40px; max-width: 560px; }
}
@media (max-width: 899px) {
  [style*="margin-left:101px"], [style*="margin-left:68px"] { margin-left: 0 !important; }
  [style*="padding-left:50px"], [style*="padding-left:36px"] { padding-left: 0 !important; }
  [style*="margin-right:53px"], [style*="margin-right:51px"] { margin-right: 0 !important; }
  .carousel.concept .carousel-track { grid-auto-columns: 100%; gap: 20px; padding: 0; }
}
.mt-25 { margin-top: 25px; }
.card .icon-64 { width: 64px; height: 64px; border-radius: 14px; }
@media (max-width: 899px) {
  [style*="margin-right:100px"] { margin-right: 0 !important; }
  [style*="padding-left:51px"] { padding-left: 0 !important; }
}

.carousel:not(.concept) { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.carousel:not(.concept) .carousel-track { grid-auto-columns: min(615px, 70vw); gap: 80px; padding: 0 calc(50vw - min(307.5px, 35vw)); }
.carousel:not(.concept) { margin-top: 120px !important; }
@media (max-width: 599px) { .carousel:not(.concept) { margin-top: 60px !important; } }
.carousel:not(.concept) .quote-slide { padding: 0; font-size: 36px; line-height: 40px; opacity: .3; transition: opacity .3s ease-out; cursor: pointer; }
.carousel:not(.concept) .quote-slide.is-current { opacity: 1; cursor: default; }
@media (max-width: 599px) {
  .carousel:not(.concept) .carousel-track { grid-auto-columns: 82vw; gap: 24px; padding: 0 9vw; }
  .carousel:not(.concept) .quote-slide { font-size: 22px; line-height: 30px; }
}

.quote-panel > * { min-width: 0; }

@media (max-width: 599px) { .cs-hero .hero-top { padding-top: min(var(--top-pad), 40px); } }
.viewer { background: var(--sky); }
.viewer-scroll { display: block; text-align: center; }
.viewer.fit .viewer-scroll { display: grid; place-items: center; }
.viewer:not(.fit) img { display: inline-block; margin: 80px 40px 40px; }
.viewer-bar button { background: var(--ink); color: var(--white); }

/* ---------- Tablet pass ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
  .display { font-size: 48px; line-height: 60px; }
  .display em, .display .serif { font-size: 52px; line-height: 60px; }
  .h-statement { font-size: 30px; line-height: 40px; }
  .lead { font-size: 20px; line-height: 30px; }
  .impact ul { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .cs-hero { --h1: 220px; }
  .cs-hero .hero-logo { width: calc(var(--lw) * .8); left: calc(var(--margin) + var(--lx, 0px) * .8); top: calc(var(--ly, 0px) * .8 - var(--overlap)); }
  .cta h2 { font-size: 34px; line-height: 40px; }
  .cta h2 em { font-size: 38px; line-height: 50px; }
}
@media (max-width: 1023px) {
  .siena-stats { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 40px; }
}
@media (max-width: 599px) {
  .siena-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; font-size: 18px; line-height: 40px; }
  .siena-stats b { font-size: 36px; }
}
.nowrap { white-space: nowrap; }

.hero-video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 830; object-fit: cover; border-radius: 12px; background: var(--band); }
.ci-preview video { display: block; width: 100%; aspect-ratio: 520 / 293; object-fit: cover; background: #000; }
@media (max-width: 599px) { .ci-preview video { border-radius: var(--radius); aspect-ratio: 350 / 190; } }

@media (max-width: 1199px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-tile .fig { font-size: clamp(32px, 5vw, 64px); line-height: 1.25; }
@media (max-width: 1199px) and (min-width: 1024px) {
  .job { grid-template-columns: 200px minmax(0, 1fr); }
  .job aside { grid-column: 2; margin-top: 30px; }
}
@media (max-width: 1199px) and (min-width: 600px) {
  .job aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; align-items: start; max-width: none; }
  .job aside > * + * { margin-top: 0; }
}
.job > div:nth-child(2) { max-width: 700px; }

html, body { overflow-x: clip; }
/* Challenge metadata: vertical divider on its left, as in Figma */
.details { border-bottom: 0; border-left: 1px solid var(--ink); padding: 0 0 0 30px; min-height: 190px; align-content: start; margin-top: 4px; }
@media (max-width: 1023px) {
  .details { border: 0; padding: 0; min-height: 0; }
}

/* Home previews: rounded media */
.ci-preview img, .ci-preview video { border-radius: 12px; }

/* ---------- Home case list on phones: every case open, tap to open the case ---------- */
@media (max-width: 599px) {
  .case-index { background: transparent; padding: 0; }
  .case-index .wrap { padding: 0; }
  .ci-row { background: var(--band); }
  .ci-row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "stage client" "name open" "prev prev"; column-gap: 12px; padding: 40px var(--margin) 44px; border-bottom: 0; min-height: 0; color: var(--white); }
  .ci-row a > * { min-width: 0; }
  .ci-row .stage, .ci-row.active .stage { color: var(--accent); font-size: 20px; }
  .ci-row .client { color: rgba(255,255,255,.75); }
  .ci-row .name, .ci-row.active .name { font-size: 30px; line-height: 40px; white-space: normal; }
  .ci-row .open, .ci-row.active .open { display: grid; opacity: 1; transform: none; background: var(--accent); color: var(--band); align-self: center; }
  .ci-row .ci-preview, .ci-row.active .ci-preview { display: block; position: static; margin-top: 20px; }
  .ci-preview img, .ci-preview video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
  .ci-preview .strap { text-align: left; font-size: 20px; line-height: 26px; margin-top: 18px; white-space: normal; }
  .ci-preview .strap em { display: block; font-size: 22px; line-height: 28px; color: var(--accent); }
  .ci-row a:active { filter: brightness(1.08); }
}
@media (max-width: 599px) { .ci-grid > div { width: auto; } }
