/* Case-study and About presentation. Loaded only on those pages. */
.cs-page {
  /* Side padding shared by the header bar and the footer content. Same value as .home-page in home-v2.css. */
  --site-gutter: clamp(24px, 3.4vw, 48px);
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: clamp(24px, 2.4vw, 32px);
  --space-xl: clamp(36px, 3.4vw, 48px);
  --space-2xl: clamp(52px, 5vw, 72px);
  /* Anda baseline, measured at 1440: section 103.68px, major 128px, marker 16px, heading 24px, media 48px. */
  --cs-section-gap: clamp(64px, 7.2vw, 104px);
  --cs-section-gap-major: clamp(80px, 9vw, 128px);
  --cs-marker-gap: 16px;
  --cs-heading-gap: 24px;
  --cs-media-gap: clamp(36px, 3.4vw, 48px);
  --space-section: var(--cs-section-gap);
  --space-section-major: var(--cs-section-gap-major);
  margin: 0;
  background: #fff;
  color: #181818;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

.cs-page a { color: inherit; text-decoration: none; }
.cs-page :focus-visible { outline: 2px solid #181818; outline-offset: 3px; border-radius: 2px; }

.cs-page main { min-width: 0; }

/* Shared nav. One full-width bar, same as the homepage header; wings only on hover and keyboard focus,
   the current page is bold only. Keep these values in step with .home-page .site-header in home-v2.css. */
.cs-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  background: #fff;
  border-bottom: 1px solid rgba(20, 36, 59, 0.14);
}
.cs-page .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  width: 100%;
  max-width: none;
  height: auto;
  margin-inline: auto;
  padding: 22px var(--site-gutter);
  box-sizing: border-box;
}
.cs-page .site-header__brand {
  display: block;
  width: auto;
  height: auto;
  margin-right: auto;
  overflow: visible;
  color: inherit;
}
.cs-page .site-header__chrome {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.cs-page .site-header__nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-weight: 400;
}
.cs-page .site-header a.site-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  color: rgba(20, 36, 59, 0.72);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.2;
  text-decoration: none;
}
.cs-page .site-header a.site-header__link:hover,
.cs-page .site-header a.site-header__link:focus-visible,
.cs-page .site-header a.site-header__link[aria-current="page"] {
  color: #14243b;
}
.cs-page .site-header .gem-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  outline: none;
}
.cs-page .site-header .gem-link__text {
  position: relative;
  display: inline-grid;
}
.cs-page .site-header .gem-link__sizer,
.cs-page .site-header .gem-link__label {
  grid-area: 1 / 1;
  text-align: center;
}
.cs-page .site-header .gem-link__sizer {
  font-weight: 500;
  visibility: hidden;
}
.cs-page .site-header .gem-link__label { font-weight: 400; }
.cs-page .site-header .gem-link:hover .gem-link__label,
.cs-page .site-header .gem-link:focus-visible .gem-link__label {
  font-weight: 500;
}
.cs-page .site-header .gem-link.is-on .gem-link__label,
.cs-page .site-header .gem-link[aria-current="page"] .gem-link__label {
  font-weight: 700;
}
.cs-page .site-header .gem-link__arrow {
  margin-left: 6px;
  transition: transform 0.24s ease;
}
.cs-page .site-header .gem-link:hover .gem-link__arrow,
.cs-page .site-header .gem-link:focus-visible .gem-link__arrow {
  transform: translateX(14px);
}
.cs-page .site-header .gem-wing {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  background: url("../assets/home/decor/focus-state.png") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.24s ease;
}
.cs-page .site-header .gem-wing--l {
  right: calc(100% + 4px);
  left: auto;
  transform: translateY(-50%) translateX(-3px);
}
.cs-page .site-header .gem-wing--r {
  left: calc(100% + 4px);
  right: auto;
  transform: translateY(-50%) translateX(3px) scaleX(-1);
}
.cs-page .site-header .gem-link:hover .gem-wing--l,
.cs-page .site-header .gem-link:focus-visible .gem-wing--l {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.cs-page .site-header .gem-link:hover .gem-wing--r,
.cs-page .site-header .gem-link:focus-visible .gem-wing--r {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scaleX(-1);
}
/* "← All work" in the case-study sidebar. Its default weight (500) comes from the
   inline style, so hover/focus steps up to the nav's bold weight (700). Weight only. */
.cs-page .cs-aside a[data-scroll-to="my-work"]:hover,
.cs-page .cs-aside a[data-scroll-to="my-work"]:focus-visible {
  font-weight: 700 !important;
}
.cs-page .site-header__link:focus-visible,
.cs-page .site-header__brand:focus-visible {
  outline: 2px solid #14243b;
  outline-offset: 4px;
}
@media (min-width: 1100px) {
  .cs-page .cs-aside {
    top: 93px !important;
    height: calc(100vh - 93px) !important;
  }
}
@media (max-width: 640px) {
  .cs-page .site-header__inner {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .cs-page .site-header__chrome { height: 44px; }
  .cs-page .site-header__nav { gap: 16px; }
  .cs-page .site-header a.site-header__link {
    min-height: 44px;
    font-size: 16px;
  }
}
.cs-page main.about-frame {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 0 clamp(24px, 8.7vw, 112px) var(--space-2xl);
  box-sizing: border-box;
}
.cs-page main.about-frame > * { width: 100%; min-width: 0; box-sizing: border-box; }

.cs-aside { display: none !important; }
@media (min-width: 1100px) {
  .cs-aside { display: flex !important; }
}

.cs-idx__link {
  display: grid;
  grid-template-columns: 20px 16px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f4;
  font: 400 10.5px/1.45 "Satoshi", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #707070;
}
.cs-idx__n {
  font: 400 italic 14px/15px "AQ Garamond", "Apple Garamond", "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  color: #aaa;
}
.cs-idx__dot {
  display: block;
  margin-top: 7px;
  width: 6px;
  height: 1px;
  background: #dcdcdc;
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}
.cs-idx__link[aria-current="location"] { color: #181818; font-weight: 500; }
.cs-idx__link[aria-current="location"] .cs-idx__n { color: #181818; }
.cs-idx__link[aria-current="location"] .cs-idx__dot { width: 16px; height: 1.5px; background: #181818; }

/* Sidebar block shown under the contents list while a case study is locked. Informational only. */
.toc-locked{display:flex;flex-direction:column;gap:14px;padding:14px 0 16px;
  border-bottom:1px solid #F4F4F4;cursor:var(--cursor-normal,default);user-select:none}
.toc-locked[hidden]{display:none}
.toc-locked__head{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:baseline}
.toc-locked__range{font:400 italic 14px/15px 'AQ Garamond','Apple Garamond','Cormorant Garamond',Georgia,serif;color:#AAAAAA}
.toc-locked__label{font:500 10.5px/1.45 'Satoshi',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#707070}
.toc-locked__bars{display:flex;flex-direction:column;gap:9px;padding-left:46px}
.toc-locked__bars span{display:block;height:5px;background:#F1F1F1}
.toc-locked__hint{font:400 italic 14px/1.35 'AQ Garamond','Apple Garamond','Cormorant Garamond',Georgia,serif;
  letter-spacing:-.01em;color:#707070}

@media (max-width: 719px) {
  .cs-page [data-scroll-shot] { aspect-ratio: auto !important; overflow: visible !important; }
  .cs-page [data-scroll-hint] { display: none !important; }
  .cs-page [data-wf] [role="row"] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 1279px) {
  .cs-page [data-flow] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cs-page [data-flow] li:nth-child(2) [aria-hidden] { visibility: hidden; }
}
@media (max-width: 519px) {
  .cs-page [data-flow] { grid-template-columns: minmax(0, 1fr) !important; }
  .cs-page [data-flow] li:nth-child(2) [aria-hidden] { visibility: visible; }
}
@media (max-width: 1099px) {
  .cs-page [data-sticky-wide] { position: static !important; }
}

.cs-board,
.cs-board-hint { display: none; }
.cs-board-mob {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) {
  .cs-board-mob { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .cs-board { display: block; height: 620px; }
  .cs-board-hint { display: block; }
  .cs-board-mob { display: none !important; }
}
.cs-board [data-polaroid] { touch-action: pan-y; }
@media (hover: hover) and (pointer: fine) {
  .cs-board [data-polaroid] { touch-action: none; cursor: var(--cursor-move, move); }
}
.cs-board [data-polaroid]:hover [data-cap],
.cs-board [data-polaroid]:focus-visible [data-cap],
.cs-board [data-polaroid]:focus-within [data-cap] {
  opacity: 1 !important;
  transform: none !important;
}

.cs-fan__slide {
  position: absolute;
  overflow: hidden;
  background: #f4f4f4;
}
.cs-fan__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cs-page [data-ro-demo] {
  --ro-ctl: 1;
  --ro-chip: 0;
  --ro-ctx: 1;
  --ro-box: rgba(24, 24, 24, 0.35);
  --ro-ed: 1;
  --ro-led: 1;
  --ro-lro: 0.4;
}
.cs-page [data-ro-demo].is-p1 {
  --ro-ctl: 0;
  --ro-chip: 0;
  --ro-ctx: 0.12;
  --ro-box: transparent;
  --ro-ed: 0.35;
  --ro-led: 0.4;
  --ro-lro: 0.4;
}
.cs-page [data-ro-demo].is-p2 {
  --ro-ctl: 0;
  --ro-chip: 1;
  --ro-ctx: 1;
  --ro-box: transparent;
  --ro-ed: 0.35;
  --ro-led: 0.4;
  --ro-lro: 1;
}

.cs-page [data-tf-mh-img]:not(.is-on) { opacity: 0 !important; pointer-events: none; }
.cs-page [data-tf-mh-img].is-on { opacity: 1 !important; }
.cs-page [data-tf-mh-go][aria-selected="false"] {
  color: #707070 !important;
  border-bottom-color: transparent !important;
  font-weight: 400;
}
.cs-page [data-tf-mh-go][aria-selected="true"] {
  color: #181818 !important;
  border-bottom-color: #181818 !important;
  font-weight: 500;
}
.cs-page [data-tf-mh-copy][aria-hidden="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
.cs-page [data-tf-mh-copy][aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
}
.cs-page [data-ex] {
  display: flex !important;
  flex-direction: column;
  transform: none !important;
  gap: 16px;
}
.cs-page [data-ex] > * { flex: none !important; width: 100% !important; position: relative !important; }

.cs-page [data-tf-comps] [data-comp].is-on { font-weight: 500; opacity: 1; }
.cs-page [data-tf-comps] [data-state].is-on { font-weight: 500; border-bottom-color: #181818; }
.cs-page [data-comp-panel][hidden] { display: none !important; }
.cs-page [data-state-img][hidden] { display: none !important; }

.cs-page .cs-handoff { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .cs-page .cs-handoff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cs-page .cs-handoff { grid-template-columns: minmax(0, 1fr); }
}

/* Next work. One system for every case study: four other projects, two full cards and a peek
   of the next at desktop widths. cs.js turns the rail into a loop (.is-loop): the same four cards are
   repositioned as it moves, nothing is cloned. Without script it is a plain snapping scroller. */
.cs-nw {
  --nw-max: 1080px;
  --nw-gutter: clamp(24px, 8.7vw, 112px);
  --nw-gap: 40px;
  padding: clamp(40px, 4vw, 56px) 0 clamp(48px, 4.4vw, 64px);
  font-family: "Satoshi", sans-serif;
  letter-spacing: -0.01em;
  color: #181818;
}
.cs-nw__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(calc(100% - 2 * var(--nw-gutter)), var(--nw-max));
  margin-inline: auto;
  container-type: inline-size;
}
.cs-nw__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #181818;
}
.cs-nw__eyebrow {
  font: 500 11px/1.3 "Satoshi", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #707070;
}
.cs-nw__heading {
  margin: 0;
  font: 400 clamp(38px, 3.6vw, 52px)/1 "AQ Garamond", "Apple Garamond", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.04em;
}
.cs-nw__rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
}
.cs-nw__rail::-webkit-scrollbar { display: none; }
.cs-nw__rail.is-loop {
  overflow: hidden;
  overflow: clip;
  scroll-snap-type: none;
  touch-action: pan-y;
}
.cs-nw__rail.is-loop .cs-nw__card { will-change: transform; }
.cs-nw__track {
  display: flex;
  align-items: flex-start;
  gap: var(--nw-gap);
  width: max-content;
  padding: 8px 0;
}
.cs-nw__card {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  /* 40% of the rail: two full cards, two gaps, and the rest is the next card's peek. */
  width: min(432px, 78vw);
  width: clamp(260px, 40cqw, 432px);
  color: #181818;
  scroll-snap-align: start;
}
.cs-nw__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 288px;
  height: clamp(174px, 26.7cqw, 288px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cs-nw__shot {
  display: block;
  width: auto;
  height: auto;
  max-width: min(360px, 66vw);
  max-width: clamp(216px, 33.3cqw, 360px);
  max-height: 220px;
  max-height: clamp(132px, 20.4cqw, 220px);
}
.cs-nw__phone {
  display: block;
  height: 240px;
  height: clamp(144px, 22.2cqw, 240px);
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 21px;
}
.cs-nw__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cs-nw__name {
  font: 400 clamp(28px, 2.4vw, 34px)/1.04 "AQ Garamond", "Apple Garamond", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.035em;
}
@media (hover: hover) and (pointer: fine) {
  .cs-nw__card:hover .cs-nw__media,
  .cs-nw__card:focus-visible .cs-nw__media { transform: translateY(-4px); }
}
/* Narrow screens: one full card and a peek of the next. */
@media (max-width: 820px) {
  .cs-nw { --nw-gap: 24px; }
  .cs-nw__card { width: min(432px, 78vw); width: min(432px, 78cqw); }
  .cs-nw__media { height: 240px; height: min(288px, 52cqw); }
  .cs-nw__shot {
    max-width: 64vw;
    max-width: min(360px, 65cqw);
    max-height: 180px;
    max-height: min(220px, 39.7cqw);
  }
  .cs-nw__phone { height: 200px; height: min(240px, 43.3cqw); }
}

/* A row of phone screens that fills the content column the way a desktop mockup does. */
.cs-page .cs-phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 860px) {
  .cs-page .cs-phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
    margin-inline: auto;
  }
}

/* Scrollable mockups that should carry only a hairline scrollbar. */
.cs-page .cs-scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 24, 24, 0.22) transparent;
}
@supports selector(::-webkit-scrollbar) {
  .cs-page .cs-scroll-thin { scrollbar-width: auto; scrollbar-color: auto; }
  .cs-page .cs-scroll-thin::-webkit-scrollbar { width: 4px; height: 4px; }
  .cs-page .cs-scroll-thin::-webkit-scrollbar-track { background: transparent; }
  .cs-page .cs-scroll-thin::-webkit-scrollbar-thumb { background: rgba(24, 24, 24, 0.22); border-radius: 4px; }
  .cs-page .cs-scroll-thin::-webkit-scrollbar-thumb:hover { background: rgba(24, 24, 24, 0.4); }
}

.cs-fs-local {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #dcdcdc;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #181818;
  font: 500 12px/1 "Satoshi", sans-serif;
  letter-spacing: 0.04em;
}
@media (hover: none), (pointer: coarse) {
  .cs-page [data-fs] { position: relative; }
  .cs-fs-local { display: flex; }
}

.cs-cursor {
  position: fixed;
  z-index: 80;
  left: 0;
  top: 0;
  display: none;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  color: #181818;
  font: 500 11px/1 "Satoshi", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: 0;
  white-space: nowrap;
}
.cs-cursor span[aria-hidden] {
  width: 14px;
  height: 14px;
  background: url("/assets/bag/gems.png") center / contain no-repeat;
}
.cs-cursor span[aria-hidden]:last-child { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .cs-cursor.is-on { display: inline-flex; }
  .cs-page p,
  .cs-page li,
  .cs-page dd,
  .cs-page figcaption,
  .cs-page blockquote { cursor: var(--cursor-text, text); }
  .cs-page a,
  .cs-page button,
  .cs-page [data-fs],
  .cs-page summary { cursor: var(--cursor-link, pointer); }
}

.cs-footer {
  position: relative;
  background: #fff;
  color: #181818;
  border-top: 1px solid #ececec;
  overflow: hidden;
}
.cs-footer__inner {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  padding: 40px var(--site-gutter) 92px;
  box-sizing: border-box;
}
.cs-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.cs-footer__intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.cs-footer__hello {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 400 13px/1 "Satoshi", sans-serif;
  color: #707070;
}
.cs-footer__hello img { width: 18px; height: 18px; display: block; }
.cs-footer__mail {
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: #181818;
  font: 400 clamp(26px, 2.8vw, 34px)/1 "AQ Garamond", "Apple Garamond", "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  padding-bottom: 4px;
  border-bottom: 1px solid #181818;
}
.cs-footer__mail::before,
.cs-footer__mail::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: url("/assets/bag/gems.png") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.cs-footer__mail::before { right: calc(100% + 8px); transform: translateY(-50%) translateX(6px) rotate(20deg); }
.cs-footer__mail::after { left: calc(100% + 8px); transform: translateY(-50%) translateX(-6px) scaleX(-1) rotate(20deg); }
.cs-footer__mail:hover::before,
.cs-footer__mail:focus-visible::before { opacity: 1; transform: translateY(-50%) rotate(0deg); }
.cs-footer__mail:hover::after,
.cs-footer__mail:focus-visible::after { opacity: 1; transform: translateY(-50%) scaleX(-1) rotate(0deg); }
.cs-footer__note,
.cs-footer__copy {
  margin: 0;
  font: 300 13px/1.4 "Satoshi", sans-serif;
  color: #707070;
}
.cs-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.cs-footer__brand img { display: block; height: 48px; width: auto; }
.cs-footer__pit {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.cs-footer__pit img { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .cs-page *,
  .cs-page *::before,
  .cs-page *::after {
    transition: none !important;
    animation: none !important;
  }
}
