/* =========================================================
   DRT Portfolio — Home / Intro @ 1440
   Mapped from Figma: colors, 12-col grid, Newsreader + DM Sans
   ========================================================= */

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/Newsreader-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/Newsreader-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/DMSans-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Exact Figma tokens — Home / Intro / Master / Desktop / 1440 */
  --navy: #0b1849;
  --cream: #f5f4f0;
  --ink: #0b1849;
  --ink-soft: #3c496a;
  --paper: #ffffff;
  --paper-alt: #fafafb;
  --orange: #fd7c2e;
  --coral: #c41e3a;
  --blue: #0068f9;
  --blue-pressed: #004ac1;
  --btn-primary-bg: #ffffff;
  --btn-primary-hover: #d6e6ff;
  --btn-primary-text: #0b1849;
  --visa-bg: #0047ab;
  --pnc-bg: #273239;
  --kohls-bg: #670626;
  --about-bg: #012622;
  --green: #009852;
  --direction: #0b1849;
  --shaping: #0b1849;
  --conviction: #0b1849;
  --about-heading: #ffffff;
  --dot-active: #f2abde;
  --lang-fill: #172452;
  --lang-border: rgba(255, 255, 255, 0.1);
  --lang-hover: #515b7d;
  --secondary: #515b7d;
  --side-nav-indicator: rgba(245, 244, 240, 0.55);
  --side-nav-indicator-active: var(--dot-active);
  --side-nav-label: rgba(245, 244, 240, 0.72);
  --side-nav-label-active: var(--cream);
  --side-nav-scroll-offset: 0px;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;

  /* 12-column system — artboard 1440
     Measured content: x 156–1284 (1128px)
     columns 72px + gutters 24px */
  --page: 1440px;
  --margin: 156px;
  --gutter: 24px;
  --cols: 12;
  --col: 72px;
  --content: calc(var(--page) - (var(--margin) * 2));

  --header-h: 184px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-y: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[data-section-panel] {
  scroll-margin-top: var(--side-nav-scroll-offset);
}

/* Nav targets fill at least one viewport so scroll-to never peeks the next panel.
   Contact/footer is excluded — it should stay content-sized. */
#hero,
#agent-marketplace,
#subscriptions,
#loyalty,
#guides,
#about {
  min-height: 100svh;
  min-height: 100dvh;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--navy);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Centered 12-column canvas ---------- */

.shell {
  width: min(100%, var(--page));
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--margin);
  box-sizing: border-box;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
  width: 100%;
}

@media (max-width: 1200px) {
  :root {
    --margin: clamp(1.5rem, 5vw, 6rem);
  }
}

@media (max-width: 900px) {
  :root {
    --margin: clamp(1.25rem, 5vw, 2rem);
  }
}

/* ---------- Buttons (Figma Component States 22:84) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 60px;
  height: 60px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  font-variation-settings: "opsz" 14;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

/* Primary — Default: white / navy · Hover: #f2f2f2 / navy */
.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  width: 182px;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}

.btn--primary:active {
  background: var(--btn-primary-hover);
}

/* Secondary — Default: #515b7d · Hover: #0068f9 */
.btn--secondary {
  background: var(--secondary);
  color: var(--paper);
  border: 2px solid rgba(255, 255, 255, 0.1);
  width: 182px;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--blue);
  border-color: transparent;
}

.btn--secondary:active {
  background: var(--blue);
}

/* Primary Icon Button — Default: white circle · Hover: #f2f2f2 */
.btn--icon {
  width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn--icon:hover,
.btn--icon:focus-visible {
  background: var(--btn-primary-hover);
}

.btn--icon:active {
  background: var(--btn-primary-hover);
}

.btn--icon__icon {
  width: 20px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--cream);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 60px;
  padding-bottom: 46px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  color: inherit;
  line-height: 0;
}

.brand__logo {
  width: 105px;
  height: 78px;
  display: block;
}

.brand__logo--footer {
  width: 804px;
  height: auto;
  max-width: none;
}

.header-meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 40px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 32px;
}

.meta-link:hover,
.footer__meta a:hover,
.footer__email:hover {
  opacity: 0.75;
}

.meta-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-location img,
.icon-pin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-clock,
[data-clock] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 5.5rem;
  text-transform: none;
}

.lang-switch {
  position: relative;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 115px;
  height: 50px;
  justify-content: center;
  border: 2px solid var(--lang-border);
  border-radius: 20px;
  background: var(--lang-fill);
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  color: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lang-switch__btn img {
  width: 16px;
  height: 16px;
}

.lang-switch__btn .chevron {
  width: 10px;
  height: 6px;
}

.lang-switch__btn:hover,
.lang-switch__btn[aria-expanded="true"] {
  background: var(--lang-hover);
  border-color: var(--lang-border);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(4, 24, 63, 0.18);
}

.lang-switch__menu li {
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.lang-switch__menu li:hover,
.lang-switch__menu li[aria-selected="true"] {
  background: var(--paper-alt);
}

/* ---------- Section dots (hidden in current Figma desktop) ---------- */

/* ---------- Side navigation (desktop) ---------- */
/* Scoped to #side-nav so mobile-nav rules cannot override desktop styling. */

#side-nav.side-nav {
  position: fixed;
  left: max(20px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: block;
  pointer-events: none;
}

#side-nav .side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: auto;
}

#side-nav .side-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 1.5rem;
  padding: 0.1rem 0.4rem 0.1rem 0;
  color: var(--side-nav-label);
  outline: none;
}

#side-nav .side-nav__indicator {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--side-nav-indicator);
  /* Size animates; color swaps instantly so contrast never fades through */
  transition:
    width 0.2s var(--ease),
    height 0.2s var(--ease);
}

#side-nav .side-nav__label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  /* Instant color on theme change — avoids cream-on-white “pink dots only” */
  transition: font-weight 0.2s var(--ease);
}

#side-nav .side-nav__link.is-active {
  color: var(--side-nav-label-active);
}

#side-nav .side-nav__link.is-active .side-nav__indicator {
  width: 8px;
  height: 8px;
  background: var(--side-nav-indicator-active);
}

#side-nav .side-nav__link.is-active .side-nav__label {
  font-weight: 700;
  color: #ffffff;
}

#side-nav .side-nav__link:hover .side-nav__indicator,
#side-nav .side-nav__link:focus-visible .side-nav__indicator {
  width: 8px;
  height: 8px;
  background: var(--dot-active);
}

#side-nav .side-nav__link:hover .side-nav__label,
#side-nav .side-nav__link:focus-visible .side-nav__label {
  color: var(--dot-active);
  font-weight: 700;
}

#side-nav .side-nav__link.is-active:hover .side-nav__label,
#side-nav .side-nav__link.is-active:focus-visible .side-nav__label {
  color: var(--dot-active);
}

#side-nav .side-nav__link:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--dot-active);
}

body.side-nav-theme-dark {
  --side-nav-indicator: rgba(245, 244, 240, 0.5);
  --side-nav-indicator-active: var(--dot-active);
  --side-nav-label: rgba(245, 244, 240, 0.72);
  --side-nav-label-active: #ffffff;
}

body.side-nav-theme-light {
  --side-nav-indicator: rgba(11, 24, 73, 0.35);
  --side-nav-indicator-active: var(--dot-active);
  --side-nav-label: #0b1849;
  --side-nav-label-active: #0b1849;
}

body.side-nav-theme-light #side-nav .side-nav__link.is-active .side-nav__label {
  color: #0b1849;
}

@media (prefers-reduced-motion: reduce) {
  #side-nav .side-nav__indicator,
  #side-nav .side-nav__label {
    transition: none;
  }
}

/* ---------- Mobile section navigation ---------- */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(11, 24, 73, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav__dock {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(17.5rem, calc(100% - 2rem));
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.mobile-nav__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(0.5rem);
  transition:
    grid-template-rows 0.35s var(--ease),
    opacity 0.25s var(--ease),
    transform 0.35s var(--ease);
  pointer-events: none;
}

.mobile-nav__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid #626b8a;
  border-radius: 1rem;
  background: rgba(11, 24, 73, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(11, 24, 73, 0.28);
}

.mobile-nav .side-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 1.5rem;
  padding: 0.1rem 0.4rem 0.1rem 0;
  color: rgba(245, 244, 240, 0.72);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav .side-nav__indicator {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 244, 240, 0.5);
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    background-color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.mobile-nav .side-nav__label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color 0.25s var(--ease),
    font-weight 0.25s var(--ease);
}

/* Current section — same as desktop default active: pink dot + bold white */
.mobile-nav .side-nav__link.is-active {
  color: #ffffff;
}

.mobile-nav .side-nav__link.is-active .side-nav__indicator {
  width: 8px;
  height: 8px;
  background: var(--dot-active);
}

.mobile-nav .side-nav__link.is-active .side-nav__label {
  font-family: var(--sans);
  font-weight: 700;
  color: #ffffff;
}

/* Pressed — pink dot + bold pink text */
.mobile-nav .side-nav__link:active .side-nav__indicator,
.mobile-nav .side-nav__link.is-active:active .side-nav__indicator {
  width: 8px;
  height: 8px;
  background: var(--dot-active);
}

.mobile-nav .side-nav__link:active .side-nav__label,
.mobile-nav .side-nav__link.is-active:active .side-nav__label {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--dot-active);
}

.mobile-nav__toggle {
  pointer-events: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid #626b8a;
  border-radius: 999px;
  background: rgba(11, 24, 73, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(11, 24, 73, 0.28);
  color: var(--dot-active);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition:
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.mobile-nav__toggle:hover,
.mobile-nav__toggle:focus-visible {
  background: rgba(11, 24, 73, 0.92);
}

.mobile-nav__toggle:focus-visible {
  box-shadow:
    0 0 0 2px var(--dot-active),
    0 8px 24px rgba(11, 24, 73, 0.28);
}

.mobile-nav__current {
  font-family: var(--sans);
  color: inherit;
}

.mobile-nav.is-open {
  pointer-events: auto;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav.is-open .mobile-nav__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav.is-open .mobile-nav__dock {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav__backdrop,
  .mobile-nav__panel,
  .mobile-nav__toggle,
  .mobile-nav .side-nav__indicator,
  .mobile-nav .side-nav__label {
    transition: none;
  }
}

/* ---------- Hero — 900px ---------- */

.hero {
  min-height: 900px;
  display: flex;
  align-items: flex-start;
  padding: var(--header-h) 0 200px;
  background: var(--navy);
  color: var(--cream);
}

.hero__inner {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 124px;
  justify-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__headline {
  margin: 0;
  font-size: 68px;
  font-weight: 600;
  line-height: 78px;
  color: var(--cream);
  text-align: center;
  max-width: 1128px;
}

.hero__line {
  display: block;
}

@media (min-width: 1100px) {
  .hero__line {
    white-space: nowrap;
  }
}

.hero__lede {
  max-width: 1128px;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: var(--cream);
  text-align: center;
  font-variation-settings: "opsz" 14;
}

.hero__mobile,
.hero__lede-mobile,
.hero__lede-tablet {
  display: none;
}

.accent-green { color: var(--green); }
.accent-orange { color: var(--orange); }
.accent-coral { color: var(--coral); }
.accent-blue { color: var(--blue); }

/* Hero headline accents — desktop, tablet, and mobile share these spans. */
.hero .accent-coral { color: #f7525b; }
.hero .accent-blue { color: #4f8aff; }

/* ---------- Work — 900px brand-colored projects ---------- */

.work {
  background: var(--paper);
  padding: 0;
}

.project {
  min-height: 900px;
  display: flex;
  align-items: stretch;
  overflow: clip;
  color: var(--paper);
}

.project--visa {
  background: var(--visa-bg);
  /* Shared top inset so all project images start on the same vertical line */
  padding: 63px 0;
}

.project--pnc {
  background: var(--pnc-bg);
  padding: 63px 0;
}

.project--kohls {
  background: var(--kohls-bg);
  padding: 63px 0;
}

.project__layout {
  display: flex;
  gap: 120px;
  align-items: flex-start;
  width: 100%;
}

.project__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.project--visa .project__copy {
  flex: 0 1 552px;
  width: 552px;
  max-width: 552px;
  padding-top: 84px;
  padding-bottom: 98px;
}

.project--pnc .project__copy {
  padding-top: 137px;
  padding-bottom: 147px;
}

.project--kohls .project__copy {
  padding-top: 106px;
  padding-bottom: 122px;
}

.project__media {
  flex: 0 0 360px;
  width: 360px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}

.project--visa .project__media--bleed {
  /* Grow to the viewport’s right edge; image stays full-width and left-aligned */
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.project__logo {
  height: auto;
  width: 105px;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.project__logo--pnc {
  width: 128px;
  height: 38px;
}

.project__logo--kohls {
  width: 159px;
  height: 24px;
}

.project h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  color: var(--paper);
  max-width: none;
  line-height: 48px;
}

.project__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  width: 100%;
}

.project p {
  color: var(--paper);
  max-width: none;
  margin: 0;
  font-size: 20px;
  line-height: 26px;
}

.project__tags {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--paper) !important;
  margin: 0 !important;
  line-height: 26px !important;
}

.mockup {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.mockup img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.mockup--phone {
  width: 360px;
  max-width: 360px;
  margin: 0;
  border-radius: 30px;
}

.mockup--phone img {
  width: 100%;
  height: auto;
  max-height: 774px;
  object-fit: cover;
  object-position: top center;
  border-radius: 30px;
}

.project--pnc .mockup--phone {
  height: 774px;
}

.project--pnc .mockup--phone img {
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: top center;
}

.mockup--phone.mockup--crop {
  border-radius: 30px;
  box-shadow: none;
  height: 735px;
}

.mockup--phone.mockup--crop img {
  border-radius: 30px;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: top center;
}

.mockup--desktop {
  width: 100%;
  max-width: 939px;
  border-radius: 20px;
  border: 1px solid #ebebeb;
  box-shadow: none;
}

.mockup--desktop img {
  border-radius: 20px;
}

.project--visa .mockup--bleed {
  /* Full design width — viewport clips the right edge; wider screens reveal more */
  flex: 0 0 auto;
  width: 939px;
  min-width: 939px;
  max-width: none;
  height: auto;
  border-radius: 20px;
  border: 1px solid #ebebeb;
  box-shadow: none;
}

.project--visa .mockup--bleed img {
  border-radius: 20px;
  width: 939px;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

/* ---------- Guides ---------- */
/* Figma Section / How I Work 01: pt 200, gap 90 to principle row, pb 268 */

.guides {
  padding: 200px 0 0;
  background: var(--paper);
}

.guides__heading {
  margin: 0 0 90px;
  font-size: 44px;
  line-height: 48px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  max-width: 744px;
}

/* ---------- Principles ---------- */

.principle {
  min-height: 900px;
  display: flex;
  align-items: flex-start;
  padding: 246px 0 268px;
  background: var(--paper);
  color: var(--navy);
}

.principle--direction {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 268px;
}

.principle--shaping {
  padding-top: 246px;
  padding-bottom: 268px;
}

.principle--conviction {
  padding-top: 246px;
  padding-bottom: 242px;
}

.principle--alt {
  background: var(--paper-alt);
}

.principle__row {
  display: flex;
  gap: 216px;
  align-items: flex-start;
  width: 100%;
}

.principle__main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.principle__heading-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principle__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 0;
}

.principle__icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
}

.principle__icon--mariposa {
  width: 98px;
  height: 77px;
  object-fit: cover;
  object-position: center top;
}

.principle__eyebrow {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 400;
  line-height: 26px;
  white-space: nowrap;
}

.principle h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  max-width: 457px;
  line-height: 48px;
  color: var(--navy);
}

.principle--shaping h2 {
  max-width: 552px;
}

.principle__main > p:last-child {
  max-width: none;
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 26px;
}

.principle__skills {
  flex: 0 0 360px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 80px;
}

.principle--shaping .principle__skills {
  padding-top: 57px;
}

.principle--conviction .principle__skills {
  padding-top: 78px;
}

.principle__skills h3 {
  margin: 0;
  padding-top: 31px;
  font-size: 40px;
  font-weight: 600;
  line-height: 46px;
  color: var(--navy);
  white-space: nowrap;
}

.principle__skills ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.principle__skills li {
  display: flex;
  gap: 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 46px;
  align-items: flex-start;
}

.principle__skills li span {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 24px;
  color: var(--navy);
  min-width: 43px;
  width: 43px;
  line-height: 46px;
  flex-shrink: 0;
}

/* ---------- Career ---------- */

.career {
  padding: 6rem 0 4rem;
  background: var(--paper);
}

.career__intro {
  grid-column: 2 / span 6;
}

.career__intro h2 {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  color: var(--navy);
}

.career__intro p {
  max-width: 38ch;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.4;
}

.timeline {
  position: relative;
  grid-column: 2 / span 10;
  padding: 4rem 0 2rem;
  min-height: 48rem;
}

.timeline__vine {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(280px, 36vw);
  height: 100%;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
  z-index: 0;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.75rem, 5vw, 4.25rem);
  position: relative;
  z-index: 1;
}

.timeline__item {
  width: calc(50% - 4rem);
}

.timeline__item--left {
  margin-right: auto;
  text-align: left;
}

.timeline__item--right {
  margin-left: auto;
  text-align: left;
}

.timeline__meta,
.timeline__dates {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.timeline__dates {
  margin-bottom: 0.35rem;
}

.timeline__item h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: var(--navy);
}

/* ---------- About ---------- */

.about {
  padding: 200px 0;
  background: var(--about-bg);
  color: var(--paper);
  min-height: 1032px;
}

.about__layout {
  display: flex;
  gap: 120px;
  align-items: flex-start;
  width: 100%;
}

.about__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 46px;
  align-items: flex-start;
}

.about__copy h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  line-height: 48px;
  color: var(--about-heading);
  max-width: 548px;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

.about__copy p {
  color: var(--paper);
  font-size: 20px;
  line-height: 26px;
  max-width: none;
  margin: 0;
}

.about__photo {
  flex: 0 0 456px;
  width: 456px;
  margin: 0;
}

.about__photo img {
  width: 456px;
  height: 560px;
  max-width: 456px;
  aspect-ratio: 456 / 560;
  object-fit: cover;
  border-radius: 30px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--about-bg);
  color: var(--paper);
  padding: 0;
  overflow: hidden;
  height: 471px;
}

.footer__layout {
  display: flex;
  gap: 120px;
  align-items: center;
  width: min(100%, var(--page));
  max-width: var(--page);
  margin-inline: auto;
  min-height: 471px;
}

.brand--footer-logo {
  flex: 0 0 804px;
  width: 804px;
  height: 471px;
  margin: 0;
  overflow: visible;
}

.brand--footer-logo .brand__logo--footer {
  width: 804px;
  max-width: none;
  height: 471px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.footer__legal {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  opacity: 1;
}

.footer__legal-break {
  display: none;
}

.footer__contact {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  text-align: left;
  padding-right: var(--margin);
  height: 180px;
}

.footer__cta {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--paper);
  line-height: 48px;
}

.footer__email {
  font-size: 24px;
  font-weight: 900;
  color: var(--paper);
  line-height: 46px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__headline,
  .hero__lede,
  .project,
  .principle,
  .about {
    animation: rise 0.9s var(--ease) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive / tablet ---------- */
/* Home / Intro / Tablet / 834 — Figma 876:66
   Range: 721–1100 (mobile owns ≤720; desktop owns ≥1101) */

@media (max-width: 1100px) {
  /* Dot-only on the desktop side-nav; mobile sheet keeps full labels */
  #side-nav .side-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #side-nav .side-nav__link {
    justify-content: center;
    min-width: 1.5rem;
    padding-inline: 0.35rem;
  }
}

@media (max-width: 1100px) and (min-width: 721px) {
  :root {
    --page: 834px;
    --margin: 40px;
    --header-h: 184px;
  }

  .shell {
    width: 100%;
    max-width: none;
    padding-inline: 40px;
  }

  .grid-12 {
    display: block;
  }

  /* —— Header —— */
  .site-header .shell {
    padding-top: 60px;
    padding-bottom: 46px;
    min-height: var(--header-h);
  }

  .brand__logo {
    width: 105px;
    height: 78px;
  }

  .header-meta {
    gap: 40px;
    font-size: 14px;
    letter-spacing: 1.4px;
    font-weight: 700;
    line-height: 32px;
  }

  .btn--icon {
    width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .btn--primary {
    width: 182px;
    min-height: 60px;
    height: 60px;
    padding: 14px 28px;
    font-size: 20px;
    line-height: 32px;
  }

  /* —— Hero —— */
  .hero {
    min-height: 900px;
    align-items: flex-start;
    padding: var(--header-h) 0 200px;
  }

  .hero__inner {
    padding-top: 124px;
    gap: 24px;
    text-align: center;
    width: 100%;
  }

  .hero__headline {
    margin: 0;
    font-size: 68px;
    line-height: 78px;
    font-weight: 600;
    max-width: none;
  }

  .hero__lede-desktop,
  .hero__lede-mobile {
    display: none;
  }

  .hero__lede-tablet {
    display: block;
  }

  .hero__lede {
    max-width: none;
    margin: 0;
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
    font-variation-settings: "opsz" 14;
  }

  /* —— Projects —— */
  .project,
  .project--visa,
  .project--pnc,
  .project--kohls {
    min-height: 900px;
    align-items: flex-start;
  }

  .project--visa {
    padding: 116px 0;
    height: auto;
  }

  .project--pnc,
  .project--kohls {
    padding: 130px 0;
  }

  .project__layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
  }

  .project__copy {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .project h2 {
    margin: 0;
    font-size: 44px;
    line-height: 48px;
    max-width: none;
  }

  .project__body {
    gap: 24px;
    margin: 0;
    width: 100%;
  }

  .project p {
    max-width: none;
    margin: 0;
    font-size: 20px;
    line-height: 26px;
  }

  .project__tags {
    font-size: 20px !important;
    font-weight: 700;
    line-height: 26px !important;
    margin: 0 !important;
  }

  .project__media {
    flex: 0 0 360px;
    width: 360px;
    margin: 0;
    justify-content: flex-start;
  }

  /* Visa — stacked, contained media (no desktop bleed) */
  .project--visa .project__layout {
    flex-direction: column;
    gap: 56px;
  }

  .project--visa .project__copy {
    flex: none;
    width: 100%;
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
  }

  .project--visa .project__media--bleed {
    flex: none;
    width: 100%;
    margin-right: 0;
    overflow: visible;
  }

  .project--visa .mockup--desktop,
  .project--visa .mockup--bleed,
  .mockup--desktop,
  .mockup--bleed {
    flex: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 0.8px solid #ebebeb;
    box-shadow: none;
    overflow: hidden;
  }

  .project--visa .mockup--bleed img,
  .mockup--desktop img,
  .mockup--bleed img {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    object-position: left top;
  }

  /* PNC — side-by-side */
  .project--pnc .project__copy {
    padding-top: 30px;
    padding-bottom: 108px;
  }

  .project--pnc .project__media {
    padding-top: 31px;
  }

  .mockup--phone,
  .project--pnc .mockup--phone {
    width: 360px;
    max-width: 360px;
    height: 774px;
    margin: 0;
    border-radius: 30px;
  }

  .mockup--phone img,
  .project--pnc .mockup--phone img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 30px;
    object-fit: cover;
    object-position: top center;
  }

  /* Kohl’s — side-by-side */
  .project--kohls .project__copy {
    padding-top: 0;
    padding-bottom: 122px;
  }

  .mockup--phone.mockup--crop,
  .project--kohls .mockup--phone.mockup--crop {
    width: 360px;
    height: 740px;
    border-radius: 30px;
  }

  .mockup--phone.mockup--crop img,
  .project--kohls .mockup--phone.mockup--crop img {
    border-radius: 30px;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* —— Guides + principles —— */
  .guides {
    padding: 130px 0 0;
    background: var(--paper);
  }

  .guides__heading {
    margin: 0 0 20px;
    font-size: 44px;
    line-height: 48px;
    text-align: center;
    max-width: none;
  }

  .principle,
  .principle--shaping,
  .principle--conviction {
    min-height: 900px;
    align-items: flex-start;
  }

  .principle--direction {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 254px;
  }

  .principle--shaping {
    padding: 130px 0 150px;
  }

  .principle--conviction {
    padding: 130px 0;
  }

  .principle__row {
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
    width: 100%;
  }

  .principle__main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .principle__heading-group {
    gap: 24px;
  }

  .principle__label {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
  }

  .principle__icon {
    width: 100px;
    height: 100px;
  }

  .principle__icon--mariposa {
    width: 98px;
    height: 77px;
    object-fit: cover;
    object-position: center top;
  }

  .principle__eyebrow {
    margin: 0;
    font-size: 24px;
    line-height: 26px;
    white-space: nowrap;
  }

  .principle h2 {
    margin: 0;
    font-size: 44px;
    line-height: 48px;
    max-width: 457px;
  }

  .principle--shaping h2 {
    max-width: 552px;
  }

  .principle__main > p:last-child {
    max-width: none;
    margin: 0;
    font-size: 20px;
    line-height: 26px;
  }

  .principle__skills {
    flex: 0 0 360px;
    width: 360px;
    padding-top: 80px;
    gap: 15px;
  }

  .principle--shaping .principle__skills {
    padding-top: 57px;
  }

  .principle--conviction .principle__skills {
    padding-top: 78px;
  }

  .principle__skills h3 {
    font-size: 40px;
    line-height: 46px;
    padding-top: 31px;
    white-space: nowrap;
  }

  .principle__skills ol {
    gap: 8px;
  }

  .principle__skills li {
    gap: 12px;
    font-size: 20px;
    line-height: 46px;
    align-items: center;
  }

  .principle__skills li span {
    font-weight: 900;
    font-size: 24px;
    min-width: 48px;
    width: 48px;
    line-height: 46px;
  }

  /* —— About —— */
  .about {
    padding: 130px 0;
    min-height: 1032px;
  }

  .about__layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
  }

  .about__copy {
    flex: 1 1 0;
    min-width: 0;
    gap: 46px;
  }

  .about__copy h2 {
    margin: 0;
    font-size: 44px;
    line-height: 48px;
    max-width: 548px;
  }

  .about__body {
    gap: 26px;
  }

  .about__copy p {
    font-size: 20px;
    line-height: 26px;
    max-width: none;
  }

  .about__photo {
    flex: 0 0 300px;
    width: 300px;
    margin: 0;
  }

  .about__photo img {
    width: 300px;
    height: 368.421px;
    max-width: 300px;
    aspect-ratio: 300 / 368.421;
    object-fit: cover;
    border-radius: 19.737px;
  }

  /* —— Footer — contact above logo —— */
  .site-footer {
    padding: 56px 0 64px;
    height: auto;
  }

  .footer__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding-inline: 40px;
    box-sizing: border-box;
  }

  .footer__contact {
    order: 1;
    flex: none;
    align-self: stretch;
    align-items: flex-start;
    text-align: left;
    padding-inline: 0;
    gap: 17px;
    height: auto;
    width: 100%;
  }

  .brand--footer-logo {
    order: 2;
    align-self: center;
    margin: 0;
    width: 100%;
    max-width: 754px;
    flex: none;
    height: auto;
  }

  .brand--footer-logo .brand__logo--footer {
    width: 100%;
    max-width: 754px;
    height: auto;
    aspect-ratio: 754 / 441.709;
    display: block;
    object-fit: contain;
    object-position: center center;
  }

  .footer__cta {
    font-size: 44px;
    line-height: 48px;
  }

  .footer__email {
    font-size: 24px;
    font-weight: 900;
    line-height: 46px;
  }

  .footer__legal {
    font-size: 20px;
    line-height: 26px;
  }

  .footer__legal-break {
    display: block;
  }
}

@media (max-width: 720px) {
  #side-nav.side-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

/* ---------- Mobile / 390 — Figma Home / Intro / Mobile / 390 ---------- */

@media (max-width: 720px) {
  :root {
    --margin: 24px;
    --page: 390px;
  }

  .shell {
    width: 100%;
    max-width: none;
    padding-inline: 24px;
  }

  .grid-12 {
    display: block;
  }

  /* —— Header (nav: px 24, py 28; logo 88×65.37) —— */
  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding-bottom: 0;
  }

  .site-header .shell {
    align-items: center;
    padding-top: 28px;
    padding-bottom: 28px;
    min-height: 0;
  }

  .brand__logo {
    width: 88px;
    height: 65.371px;
  }

  .header-meta {
    gap: 20px;
    font-size: 12px;
    letter-spacing: 1.2px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
  }

  .btn--icon {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  /* Figma Mail icon sits in a 24×24 frame; keep 20×16 envelope aspect (no square squash) */
  .btn--icon__icon {
    width: 20px;
    height: 16px;
  }

  .btn--primary {
    min-height: 56px;
    height: 56px;
    width: auto;
    min-width: 0;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
  }

  /* —— Hero (spacing reduced ~20% from Figma 844 / pt 72 / pb 88 / gap 32) —— */
  .hero {
    min-height: 675px;
    align-items: flex-start;
    padding: 0;
  }

  .hero__inner {
    padding-top: calc(28px + 65.371px + 28px + 58px);
    padding-bottom: 70px;
    text-align: center;
    gap: 26px;
  }

  .hero__headline {
    margin: 0;
    font-size: 40px;
    line-height: 45px;
    font-weight: 600;
    max-width: none;
  }

  .hero__desktop,
  .hero__lede-desktop,
  .hero__lede-tablet {
    display: none;
  }

  .hero__mobile,
  .hero__lede-mobile {
    display: block;
  }

  .hero__lede {
    max-width: none;
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    opacity: 1;
    font-variation-settings: "opsz" 14;
  }

  /* —— Projects (Figma 758:112 Visa — py 72, gap 40) —— */
  .project,
  .project--visa,
  .project--pnc,
  .project--kohls {
    min-height: 0;
    align-items: flex-start;
    padding: 72px 0;
    overflow: visible;
  }

  .project__layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .project__copy,
  .project--visa .project__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: none;
    width: 100%;
    max-width: none;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .project__logo {
    height: 33.98px;
    width: 105px;
    margin: 0;
  }

  .project__logo--pnc {
    width: 128px;
    height: 38px;
  }

  .project__logo--kohls {
    width: 159px;
    height: 24px;
  }

  .project h2 {
    margin: 0;
    font-size: 34px;
    line-height: 38px;
    max-width: none;
  }

  .project__body {
    gap: 24px;
    margin: 0;
    width: 100%;
  }

  .project p {
    max-width: none;
    margin: 0;
    font-size: 18px;
    line-height: 26px;
  }

  .project__tags {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 26px !important;
    margin: 0 !important;
  }

  .project__copy .btn {
    margin-top: 0;
  }

  .project__media,
  .project--visa .project__media--bleed {
    width: 100%;
    flex: none;
    margin: 0;
    justify-content: center;
  }

  /* Visa desktop mock — 342×243.3, radius 12 */
  .project--visa .mockup--desktop,
  .project--visa .mockup--bleed,
  .mockup--desktop,
  .mockup--bleed {
    flex: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 243.3px;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    box-shadow: none;
    overflow: hidden;
  }

  .project--visa .mockup--bleed img,
  .mockup--desktop img,
  .mockup--bleed img {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    max-height: none;
    border-radius: 12px;
    object-fit: cover;
    object-position: left top;
  }

  /* PNC phone — 288×619.2, centered, radius 24 */
  .mockup--phone,
  .project--pnc .mockup--phone {
    max-width: none;
    width: 288px;
    height: 619.2px;
    margin: 0 auto;
    border-radius: 24px;
    border: 0;
    overflow: hidden;
  }

  .mockup--phone img,
  .project--pnc .mockup--phone img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 24px;
    object-fit: cover;
    object-position: top center;
  }

  /* Kohl’s phone — 288×592, centered, radius 24 */
  .mockup--phone.mockup--crop,
  .project--kohls .mockup--phone.mockup--crop {
    border: 0;
    border-radius: 24px;
    width: 288px;
    height: 592px;
  }

  .mockup--phone.mockup--crop img,
  .project--kohls .mockup--phone.mockup--crop img {
    border-radius: 24px;
    object-fit: cover;
    object-position: top center;
  }

  /* —— Guides + principles —— */
  .guides {
    padding: 72px 0 0;
    background: var(--paper);
  }

  .guides__heading {
    margin: 0 0 56px;
    font-size: 34px;
    line-height: 38px;
    text-align: left;
    max-width: none;
  }

  .principle,
  .principle--shaping,
  .principle--conviction {
    min-height: 0;
    align-items: flex-start;
    padding: 72px 0;
  }

  .principle--direction {
    padding-top: 0;
    padding-bottom: 72px;
  }

  .principle__row {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .principle__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .principle__heading-group {
    gap: 24px;
  }

  .principle__label {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
  }

  .principle--shaping .principle__label,
  .principle--conviction .principle__label {
    gap: 16px;
  }

  .principle__icon {
    width: 80px;
    height: 80px;
  }

  .principle__icon--mariposa {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
  }

  .principle__eyebrow {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    white-space: normal;
  }

  .principle h2 {
    margin: 0;
    font-size: 34px;
    line-height: 38px;
    max-width: none;
  }

  .principle__main > p:last-child {
    max-width: none;
    margin: 0;
    font-size: 18px;
    line-height: 25px;
  }

  .principle__skills {
    width: 100%;
    flex: none;
    padding-top: 0 !important;
    gap: 16px;
  }

  .principle__skills h3 {
    font-size: 28px;
    line-height: 34px;
    padding-top: 0;
    white-space: normal;
  }

  .principle__skills ol {
    gap: 8px;
  }

  .principle__skills li {
    gap: 12px;
    font-size: 18px;
    line-height: 32px;
    align-items: center;
  }

  .principle__skills li span {
    font-weight: 900;
    font-size: 18px;
    min-width: 34px;
    width: 34px;
    line-height: 32px;
  }

  /* —— About (pt 72, gap 32; portrait centered to mobile content width) —— */
  .about {
    padding: 72px 0 17px;
    min-height: 0;
  }

  .about .shell {
    padding-inline: 24px;
  }

  .about__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .about__copy {
    gap: 32px;
    width: 100%;
    align-self: stretch;
  }

  .about__body {
    gap: 26px;
  }

  .about__copy h2 {
    margin: 0;
    font-size: 34px;
    line-height: 38px;
    max-width: none;
  }

  .about__copy p {
    font-size: 18px;
    line-height: 26px;
    max-width: none;
  }

  .about__photo {
    width: 100%;
    max-width: none;
    flex: none;
    align-self: center;
    margin-inline: auto;
  }

  .about__photo img {
    display: block;
    max-width: none;
    width: 100%;
    height: 420px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
    border-radius: 24px;
  }

  /* —— Footer (contact + logo left-aligned, 24px left inset) —— */
  .site-footer {
    /* Extra bottom padding clears the sticky nav; keep #012622 (no white body gap) */
    padding: 24px 0 calc(40px + 4.5rem + env(safe-area-inset-bottom, 0px));
    height: auto;
    background: #012622;
  }

  .footer__layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  .footer__contact {
    order: 1;
    align-self: flex-start;
    align-items: flex-start;
    text-align: left;
    padding-inline: 0;
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
    height: auto;
    width: 100%;
  }

  .brand--footer-logo {
    order: 2;
    align-self: flex-start;
    margin: 0;
    margin-left: 0;
    width: 100%;
    max-width: none;
    flex: none;
    height: 211px;
  }

  .brand--footer-logo .brand__logo--footer {
    width: 100%;
    max-width: none;
    height: 211px;
    display: block;
    object-fit: contain;
    object-position: left center;
  }

  .footer__cta {
    font-size: 34px;
    line-height: 38px;
  }

  .footer__email {
    font-size: 22px;
    font-weight: 900;
    line-height: 32px;
  }

  .footer__legal {
    font-size: 16px;
    line-height: 22px;
    opacity: 1;
  }

  .footer__legal-break {
    display: block;
  }
}

/* ---------- Password gate (Figma 22:512 desktop · 789:117 mobile) ---------- */

.password-page {
  background: var(--navy);
  color: var(--cream);
}

.password-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cream);
}

.password-gate__shell {
  width: min(100%, var(--page));
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--margin);
  box-sizing: border-box;
}

.password-gate__layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 648px);
  grid-template-rows: auto auto;
  column-gap: 120px;
  align-items: start;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content);
}

.password-gate__logo {
  grid-column: 1;
  grid-row: 1;
  width: 264px;
  height: 196px;
  max-width: none;
  display: block;
}

.password-gate__intro {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 648px;
  padding-top: 0;
}

.password-gate__form {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 360px;
  margin-top: 66px;
}

.password-gate__label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 24px;
}

.password-gate__lock {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.password-gate__label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  font-variation-settings: "opsz" 14;
  color: #ffffff;
}

.password-gate__input {
  width: 360px;
  max-width: 100%;
  height: 50px;
  margin-top: 16px;
  padding: 0 13px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 36, 82, 0.99);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  font-variation-settings: "opsz" 14;
  outline: none;
  box-sizing: border-box;
}

.password-gate__input::placeholder {
  color: var(--secondary);
  opacity: 1;
}

.password-gate__input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.password-gate__submit {
  margin-top: 24px;
}

.password-gate__error {
  min-height: 1.25rem;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #f2abde;
}

.password-gate__headline {
  margin: 0;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.password-gate__lede {
  margin: 0;
  max-width: 552px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  font-variation-settings: "opsz" 14;
  color: var(--cream);
}

@media (max-width: 1200px) {
  .password-gate__layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 120px);
  }

  .password-gate__form,
  .password-gate__input {
    width: 100%;
  }

  .password-gate__logo {
    width: min(264px, 100%);
    height: auto;
    aspect-ratio: 264 / 196;
  }
}

/* Tablet: stack in mobile content order (logo → intro → form) */
@media (max-width: 900px) {
  .password-gate {
    align-items: flex-start;
    padding-block: 64px;
  }

  .password-gate__layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 40px;
  }

  .password-gate__logo,
  .password-gate__intro,
  .password-gate__form {
    grid-column: auto;
    grid-row: auto;
  }

  .password-gate__form {
    margin-top: 0;
    width: 100%;
  }

  .password-gate__headline {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.15;
  }

  .password-gate__lede {
    font-size: 18px;
    line-height: 24px;
    max-width: none;
  }
}

/* Mobile / 393 — Figma Home / Password / Mobile / 393 (789:117) */
@media (max-width: 720px) {
  .password-gate {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 92px 0 56px;
  }

  .password-gate__shell {
    width: 100%;
    max-width: none;
    padding-inline: 24px;
  }

  .password-gate__layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    row-gap: 0;
  }

  .password-gate__logo {
    width: 166px;
    height: 123px;
    aspect-ratio: auto;
    margin-bottom: 48px;
  }

  .password-gate__intro {
    gap: 24px;
    max-width: none;
    margin-bottom: 32px;
  }

  .password-gate__headline {
    font-size: 34px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: 0;
  }

  .password-gate__lede {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    max-width: none;
  }

  .password-gate__form {
    width: 100%;
    margin-top: 0;
  }

  .password-gate__input {
    width: 100%;
    padding: 0 12px;
  }

  /* Keep Figma Enter Site size; override shared mobile .btn--primary shrink */
  .password-gate__submit.btn--primary {
    width: 182px;
    min-width: 182px;
    min-height: 60px;
    height: 60px;
    padding: 0 28px;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
  }
}

/* =========================================================
   Case Study — Agent Marketplace / Desktop / 1440
   Mapped from Figma node 630:269
   ========================================================= */

.case-study {
  background: var(--paper);
  color: var(--ink);
}

.case-study .site-footer {
  height: 486px;
}

.case-study .footer__layout {
  min-height: 486px;
}

.case-study .brand--footer-logo {
  height: 486px;
}

.case-study .brand--footer-logo .brand__logo--footer {
  height: 486px;
}

.case-study .shell {
  width: min(100%, var(--page));
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--margin);
  box-sizing: border-box;
}

/* ---------- Case study header ---------- */

.cs-header {
  background: var(--cream);
  color: var(--ink);
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 216, 216, 0.45);
}

.cs-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 0;
}

.btn--contact {
  width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}

/* Figma Secondary Circle Hover #979db1 — used as pressed on touch */
.btn--contact:active {
  background: #979db1;
}

.btn--contact:focus-visible {
  background: #979db1;
}

@media (hover: hover) and (pointer: fine) {
  .btn--contact:hover {
    background: #979db1;
  }
}

.btn--contact img,
.btn--contact__icon {
  width: 20px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* Case study (cream header) — hover: #D5CEB9 fill, #0B1849 envelope */
.case-study .btn--contact {
  color: var(--paper);
}

.case-study .btn--contact:active,
.case-study .btn--contact:focus-visible {
  background: #d5ceb9;
  color: #0b1849;
}

@media (hover: hover) and (pointer: fine) {
  .case-study .btn--contact:hover {
    background: #d5ceb9;
    color: #0b1849;
  }
}

/* ---------- Hero ---------- */

.cs-hero {
  background: var(--cream);
  width: 100%;
}

.cs-hero__layout {
  width: min(100%, var(--page));
  max-width: var(--page);
  margin-inline: auto;
  padding-left: var(--margin);
  display: flex;
  align-items: stretch;
  gap: 0;
}

.cs-hero__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 124px;
  padding-bottom: 122px;
  padding-right: 24px;
  color: var(--ink);
}

.cs-hero__copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: -0.01em;
}

.cs-hero__lede {
  margin: 0;
  max-width: 456px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
  color: var(--ink);
}

.cs-hero__meta {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cs-hero__meta > div {
  width: 168px;
}

.cs-hero__meta-label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.cs-hero__meta-value {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.cs-hero__media {
  flex: 0 0 708px;
  width: 708px;
  height: 610px;
  overflow: hidden;
  align-self: stretch;
}

.cs-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---------- Project details ---------- */

.cs-details {
  background: var(--paper);
  padding: 100px 0 0;
}

.cs-details__row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.cs-detail {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.cs-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-detail__icon img {
  width: 24px;
  height: 24px;
}

.cs-detail__text h2 {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0;
  font-variation-settings: "opsz" 14;
}

.cs-detail__text p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
  color: var(--ink);
}

/* ---------- Case study body ---------- */

.cs-body {
  background: var(--paper);
  padding: 80px 0 100px;
}

.cs-body .shell {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.cs-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.cs-block--research {
  gap: 100px;
}

.cs-block__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  color: var(--ink);
}

.cs-block__text--research {
  gap: 40px;
}

.cs-block__text h2,
.cs-block__text--research h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: -0.01em;
}

.cs-block:first-child .cs-block__text h2 {
  line-height: 48px;
}

.cs-block__text p,
.cs-block__body p {
  margin: 0;
  max-width: 840px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.cs-block:nth-child(2) .cs-block__text p,
.cs-block__body {
  max-width: 744px;
}

.cs-block__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cs-figure {
  margin: 0;
  width: 100%;
}

.cs-figure--full {
  max-width: 1127px;
}

.cs-figure--full img,
.cs-figure--split img {
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #d8d8d8;
  border-radius: 20px;
  box-sizing: border-box;
}

.cs-figure--full img {
  width: 100%;
  max-width: 1127px;
  height: auto;
  aspect-ratio: 1127 / 700;
}

.cs-figure--split img {
  width: 100%;
  height: auto;
  aspect-ratio: 649 / 462;
}

.cs-split {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 2px;
}

.cs-split__copy {
  flex: 0 0 456px;
  width: 456px;
  max-width: 40.4%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--ink);
}

.cs-split__copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.01em;
}

.cs-split__copy p {
  margin: 0;
  max-width: 360px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.cs-split .cs-figure--split {
  flex: 1 1 0;
  min-width: 0;
}

/* ---------- Next project ---------- */

.cs-next {
  background: var(--cream);
  min-height: 265px;
  display: flex;
  align-items: center;
}

.cs-next__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding-block: 76px;
}

.cs-next__link {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  max-width: 836px;
  color: var(--ink);
  flex: 1 1 0;
  min-width: 0;
}

/* Next Project title hover — darker sand (cool undertone, not brown) */
.cs-next__link:active .cs-next__title {
  color: #8f8878;
}

@media (hover: hover) and (pointer: fine) {
  .cs-next__link:hover .cs-next__title {
    color: #8f8878;
  }
}

.cs-next__label {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cs-next__label span {
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 5.6px;
  text-transform: uppercase;
  font-variation-settings: "opsz" 14;
  width: 168px;
}

.cs-next__label img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.cs-next__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.01em;
}

.btn--home {
  flex-shrink: 0;
  width: 208px;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 0 24px;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}

/* Figma Primary Button hover #f2f2f2 — used as pressed on touch */
/* Back to home hover #D5CEB9 */
.btn--home:active {
  background: #d5ceb9;
}

.btn--home:focus-visible {
  background: #d5ceb9;
}

@media (hover: hover) and (pointer: fine) {
  .btn--home:hover {
    background: #d5ceb9;
  }
}

.btn--home img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
}

.btn--home span {
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Case study responsive ---------- */
/* Desktop → tablet stack @900 · Mobile fidelity @720 (Figma 804:879 / 393) */

@media (max-width: 1200px) {
  .cs-hero__media {
    flex: 0 1 708px;
    width: min(708px, 48%);
    height: auto;
    aspect-ratio: 708 / 610;
  }

  .cs-split__copy {
    flex-basis: min(456px, 38%);
    width: min(456px, 38%);
  }
}

@media (max-width: 900px) {
  .cs-header .shell {
    min-height: 120px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .cs-hero__layout {
    flex-direction: column;
    padding-right: var(--margin);
  }

  .cs-hero__copy {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-right: 0;
  }

  .cs-hero__copy h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .cs-hero__media {
    flex: none;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 708 / 610;
    align-self: stretch;
    margin-inline: calc(-1 * var(--margin));
    width: calc(100% + 2 * var(--margin));
  }

  .cs-details {
    padding-top: 64px;
  }

  .cs-details__row {
    flex-direction: column;
    gap: 40px;
  }

  .cs-body {
    padding: 64px 0 80px;
  }

  .cs-body .shell,
  .cs-block--research {
    gap: 64px;
  }

  .cs-block__text h2,
  .cs-block__text--research h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .cs-split {
    flex-direction: column;
    gap: 32px;
  }

  .cs-split__copy {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .cs-next__layout {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 48px;
    gap: 32px;
  }

  .cs-next__title {
    font-size: 28px;
    line-height: 34px;
  }
}

/* Agent Marketplace mobile — Figma 804:879 (393) */
@media (max-width: 720px) {
  .case-study .shell {
    width: 100%;
    max-width: none;
  }

  .case-study .brand__logo {
    width: 104.9px;
    height: 78.68px;
  }

  .cs-header .shell {
    min-height: 0;
    padding: 24px;
    align-items: center;
  }

  .cs-hero__layout {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .cs-hero__copy {
    padding: 32px 24px 40px;
    gap: 24px;
    width: 100%;
  }

  .cs-hero__copy h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 0;
    width: 100%;
  }

  .cs-hero__br {
    display: none;
  }

  .cs-hero__lede {
    max-width: none;
    width: 100%;
  }

  .cs-hero__meta {
    width: 100%;
    gap: 24px;
  }

  .cs-hero__meta > div {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .cs-hero__media {
    margin-inline: 0;
    width: 100%;
    aspect-ratio: 708 / 611;
    overflow: hidden;
  }

  .cs-hero__media img {
    width: 129.43%;
    max-width: none;
    height: 100%;
    margin-left: -29.41%;
    object-fit: cover;
    object-position: left top;
  }

  .cs-details {
    padding: 56px 0 64px;
  }

  .cs-details .shell {
    padding-inline: 24px;
  }

  .cs-details__row {
    gap: 40px;
  }

  .cs-detail {
    gap: 16px;
    width: 100%;
  }

  .cs-detail__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .cs-detail__text h2 {
    margin: 0;
  }

  .cs-body {
    padding: 0 0 64px;
  }

  .cs-body .shell {
    padding-inline: 24px;
    gap: 64px;
  }

  .cs-block {
    gap: 32px;
  }

  .cs-block--research {
    gap: 48px;
  }

  .cs-block__text--research {
    gap: 24px;
  }

  .cs-block__text h2,
  .cs-block__text--research h2 {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
  }

  .cs-block__text p,
  .cs-block__body p,
  .cs-block:nth-child(2) .cs-block__text p,
  .cs-block__body {
    max-width: none;
  }

  .cs-figure--full img,
  .cs-figure--split img {
    border: 1px solid rgba(11, 24, 73, 0.1);
    border-radius: 8px;
  }

  .cs-split {
    gap: 32px;
    padding-bottom: 0;
  }

  .cs-split__copy {
    gap: 24px;
  }

  .cs-split__copy h3 {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0;
  }

  .cs-split__copy p {
    max-width: none;
  }

  .cs-next {
    min-height: 0;
  }

  .cs-next__layout {
    padding: 40px 24px;
    gap: 24px;
  }

  .cs-next__link {
    max-width: none;
    width: 100%;
    gap: 24px;
  }

  .cs-next__label span {
    width: auto;
  }

  .cs-next__title {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0;
  }

  .btn--home {
    width: 208px;
    height: 60px;
    min-height: 60px;
    gap: 7px;
    padding: 0 24px;
    border-radius: 99px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .btn--home span {
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 32px;
  }

  .case-study .site-footer {
    height: auto;
    padding: 24px 0 40px;
  }

  .case-study .footer__layout {
    min-height: 0;
    gap: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .case-study .footer__contact {
    gap: 17px;
    padding-inline: 24px;
    width: 100%;
  }

  .case-study .footer__cta {
    font-size: 32px;
    line-height: 38px;
  }

  .case-study .footer__email {
    font-size: 22px;
    font-weight: 900;
    line-height: 32px;
  }

  .case-study .footer__legal {
    font-size: 16px;
    line-height: 22px;
  }

  .case-study .brand--footer-logo {
    height: 237.56px;
    width: 100%;
  }

  .case-study .brand--footer-logo .brand__logo--footer {
    width: 100%;
    height: 237.56px;
    object-fit: contain;
    object-position: left center;
  }
}

/* ---------- Subscription Manager case study ---------- */
/* Figma: Case Study 2 / Subscription Manager / Master / Desktop / 1440 */

.case-study--subscription .cs-hero__layout {
  min-height: 608px;
}

.case-study--subscription .cs-hero__copy {
  /* Figma Hero / Content is 728px from page edge incl. 156px margin */
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  gap: 32px;
  padding-top: 120px;
  padding-bottom: 108px;
  padding-right: 0;
}

.case-study--subscription .cs-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 552px;
  max-width: 100%;
}

.case-study--subscription .cs-hero__copy h1 {
  width: 552px;
  max-width: 100%;
  letter-spacing: 0;
}

.case-study--subscription .cs-hero__lede {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 456px;
  margin: 0;
}

.case-study--subscription .cs-hero__lede p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.case-study--subscription .cs-hero__tagline {
  font-weight: 600;
}

.case-study--subscription .cs-hero__media {
  flex: 0 0 712px;
  width: 712px;
  height: 608px;
}

.case-study--subscription .cs-details {
  padding: 96px 0 80px;
}

.case-study--subscription .cs-detail__text h2 {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
}

.case-study--subscription .cs-body {
  padding: 0 0 96px;
}

.case-study--subscription .cs-body .shell {
  gap: 96px;
}

.case-study--subscription .cs-block--simple {
  gap: 48px;
}

.case-study--subscription .cs-block--simple .cs-block__text h2 {
  width: 724px;
  max-width: 100%;
  line-height: 54px;
  letter-spacing: 0;
}

.case-study--subscription .cs-block--simple .cs-block__text p {
  max-width: 648px;
}

.cs-cards {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.cs-card {
  flex: 0 0 360px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.cs-card__media {
  margin: 0;
  width: 360px;
  height: 443px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--cream);
}

.cs-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Figma 627:124 — phone frames: top radius only, no stroke */
.case-study--subscription .cs-card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  box-sizing: border-box;
}

.case-study--subscription .cs-card__media img {
  width: 255px;
  height: 395px;
  border: 0;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  object-position: center top;
}

.cs-card__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  color: var(--ink);
}

.cs-card__copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

.cs-card__copy p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.case-study--subscription .cs-block--features {
  gap: 96px;
}

.case-study--subscription .cs-block__text--features h2 {
  width: 100%;
  line-height: 54px;
  letter-spacing: 0;
}

.cs-feature {
  display: flex;
  gap: 208px;
  align-items: flex-start;
  width: 100%;
  padding-right: 104px;
  box-sizing: border-box;
}

.cs-feature__copy {
  flex: 0 0 456px;
  width: 456px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  color: var(--ink);
}

.cs-feature__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.cs-feature__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  font-variation-settings: "opsz" 14;
}

.cs-feature__copy h3 {
  margin: 0;
  max-width: 428px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0;
}

.cs-feature__body {
  margin: 0;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  font-variation-settings: "opsz" 14;
}

.cs-feature__body p {
  margin: 0;
}

.cs-feature__body p + p {
  margin-top: 0;
}

.cs-feature__media {
  margin: 0;
  flex: 0 0 360px;
  width: 360px;
  height: 776px;
  border-radius: 30px;
  overflow: hidden;
}

.cs-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
}

/* Section 2 / 3 — Figma: 1px #D8D8D8, 30px radius */
.case-study--subscription .cs-feature__media,
.case-study--subscription .cs-gallery__item {
  border-radius: 30px;
  overflow: hidden;
}

.case-study--subscription .cs-feature__media img,
.case-study--subscription .cs-gallery__item img {
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  box-sizing: border-box;
}

/* Subscription tile + monthly total — same 30px + #D8D8D8 stroke as gallery */
.case-study--subscription .cs-gallery__item--tile,
.case-study--subscription .cs-gallery__item--total {
  border-radius: 30px;
}

.case-study--subscription .cs-gallery__item--tile img,
.case-study--subscription .cs-gallery__item--total img {
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  box-sizing: border-box;
}

.case-study--subscription .cs-block--gallery {
  gap: 48px;
  align-items: center;
}

.case-study--subscription .cs-block__text--center {
  align-items: center;
  text-align: center;
  width: 100%;
}

.case-study--subscription .cs-block__text--center h2 {
  width: 100%;
  font-size: 40px;
  line-height: 42px;
  letter-spacing: 0;
}

.case-study--subscription .cs-block__body--center {
  max-width: none;
  width: 100%;
  gap: 0;
}

.case-study--subscription .cs-block__body--center p {
  max-width: none;
}

.cs-gallery {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.cs-gallery__col {
  flex: 0 0 360px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.cs-gallery__item {
  margin: 0;
  width: 360px;
  overflow: hidden;
  border-radius: 30px;
}

.cs-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
}

.cs-gallery__item--tile {
  height: 376px;
  border-radius: 30px;
}

.cs-gallery__item--tile img {
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  box-sizing: border-box;
}

.cs-gallery__item--start {
  height: 780.458px;
}

.cs-gallery__item--status {
  height: 727px;
}

.cs-gallery__item--home {
  height: 776px;
}

.cs-gallery__item--notification {
  height: 294.962px;
}

.cs-gallery__item--merchant {
  height: 850px;
}

.cs-gallery__item--total {
  height: 296px;
  border-radius: 30px;
}

.cs-gallery__item--total img {
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  box-sizing: border-box;
}

.cs-gallery__item--cancel {
  height: 816px;
}

.cs-gallery__item--year {
  height: 772px;
}

@media (max-width: 1200px) {
  .case-study--subscription .cs-hero__media {
    flex: 0 1 712px;
    width: min(712px, 48%);
    height: auto;
    aspect-ratio: 712 / 608;
  }

  .cs-feature {
    gap: 64px;
    padding-right: 0;
  }

  .cs-card,
  .cs-gallery__col {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .cs-card__media,
  .cs-gallery__item {
    width: 100%;
  }

  .cs-feature__media {
    flex: 0 0 min(360px, 40%);
    width: min(360px, 40%);
    height: auto;
    aspect-ratio: 360 / 776;
  }
}

@media (max-width: 900px) {
  .case-study--subscription .cs-hero__copy {
    width: 100%;
    max-width: none;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .case-study--subscription .cs-hero__intro {
    width: 100%;
  }

  .case-study--subscription .cs-hero__media {
    flex: none;
    width: calc(100% + 2 * var(--margin));
    max-width: none;
    margin-inline: calc(-1 * var(--margin));
    aspect-ratio: 712 / 608;
  }

  .case-study--subscription .cs-details {
    padding: 64px 0;
  }

  .case-study--subscription .cs-body .shell,
  .case-study--subscription .cs-block--features {
    gap: 64px;
  }

  .cs-cards,
  .cs-gallery {
    flex-direction: column;
  }

  .cs-card,
  .cs-gallery__col {
    flex: none;
    width: 100%;
  }

  .cs-card__media {
    height: auto;
    aspect-ratio: 360 / 443;
  }

  .case-study--subscription .cs-card__media {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding-top: 48px;
  }

  .cs-feature {
    flex-direction: column;
    gap: 32px;
  }

  .cs-feature__copy {
    flex: none;
    width: 100%;
  }

  .cs-feature__media {
    flex: none;
    width: min(360px, 100%);
    height: auto;
    aspect-ratio: 360 / 776;
  }

  .cs-gallery__item--tile,
  .cs-gallery__item--start,
  .cs-gallery__item--status,
  .cs-gallery__item--home,
  .cs-gallery__item--notification,
  .cs-gallery__item--merchant,
  .cs-gallery__item--total,
  .cs-gallery__item--cancel,
  .cs-gallery__item--year {
    height: auto;
  }

  .cs-gallery__item--tile {
    aspect-ratio: 360 / 376;
  }

  .cs-gallery__item--start {
    aspect-ratio: 360 / 780;
  }

  .cs-gallery__item--status {
    aspect-ratio: 360 / 727;
  }

  .cs-gallery__item--home {
    aspect-ratio: 360 / 776;
  }

  .cs-gallery__item--notification {
    aspect-ratio: 360 / 295;
  }

  .cs-gallery__item--merchant {
    aspect-ratio: 360 / 850;
  }

  .cs-gallery__item--total {
    aspect-ratio: 360 / 296;
  }

  .cs-gallery__item--cancel {
    aspect-ratio: 360 / 816;
  }

  .cs-gallery__item--year {
    aspect-ratio: 360 / 772;
  }

  .case-study--subscription .cs-block__text--center h2 {
    font-size: 32px;
    line-height: 38px;
  }
}

/* Subscription Manager mobile — Figma 811:2065 (393) */
@media (max-width: 720px) {
  .case-study--subscription .brand__logo {
    width: 88px;
    height: 66px;
  }

  .case-study--subscription .cs-header .shell {
    min-height: 132px;
    padding: 0 24px;
    align-items: center;
  }

  .case-study--subscription .cs-hero__layout {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .case-study--subscription .cs-hero__copy {
    width: 100%;
    max-width: none;
    gap: 24px;
    padding: 32px 24px;
  }

  .case-study--subscription .cs-hero__intro {
    width: 100%;
    gap: 24px;
  }

  .case-study--subscription .cs-hero__copy h1 {
    width: 100%;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-hero__lede {
    gap: 0;
    max-width: none;
    width: 100%;
  }

  .case-study--subscription .cs-hero__meta {
    width: 100%;
    gap: 24px;
  }

  .case-study--subscription .cs-hero__meta > div {
    flex: none;
    width: 144px;
    min-width: 0;
  }

  .case-study--subscription .cs-hero__media {
    flex: none;
    margin-inline: 0;
    width: 100%;
    max-width: none;
    height: 262px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .case-study--subscription .cs-hero__media img {
    width: 100%;
    height: 100%;
    margin-left: 0;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .case-study--subscription .cs-details {
    padding: 56px 0 64px;
  }

  .case-study--subscription .cs-details .shell {
    padding-inline: 24px;
  }

  .case-study--subscription .cs-details__row {
    gap: 40px;
  }

  .case-study--subscription .cs-detail {
    gap: 20px;
    width: 100%;
  }

  .case-study--subscription .cs-detail__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .case-study--subscription .cs-detail__text h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
  }

  .case-study--subscription .cs-body {
    padding: 0;
  }

  .case-study--subscription .cs-body .shell {
    padding-inline: 24px;
    gap: 0;
  }

  .case-study--subscription .cs-block--simple {
    gap: 32px;
    padding-bottom: 64px;
  }

  .case-study--subscription .cs-block--simple .cs-block__text {
    gap: 24px;
  }

  .case-study--subscription .cs-block--simple .cs-block__text h2 {
    width: 100%;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-block--simple .cs-block__text p {
    max-width: none;
  }

  .case-study--subscription .cs-cards {
    flex-direction: column;
    gap: 40px;
  }

  .case-study--subscription .cs-card {
    flex: none;
    width: 100%;
    gap: 24px;
  }

  .case-study--subscription .cs-card__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding-top: 40px;
    border-radius: 20px 20px 0 0;
    background: var(--cream);
    overflow: hidden;
  }

  .case-study--subscription .cs-card__media img {
    width: 255px;
    max-width: 100%;
    height: 395px;
    border: 0;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
    object-position: center top;
    box-sizing: border-box;
  }

  .case-study--subscription .cs-card__copy {
    gap: 16px;
  }

  .case-study--subscription .cs-card__copy h3 {
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-card__copy h3 br {
    display: none;
  }

  .case-study--subscription .cs-block--features {
    gap: 48px;
    padding-bottom: 64px;
  }

  .case-study--subscription .cs-block__text--features h2 {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-block__text--features h2 br {
    display: none;
  }

  .case-study--subscription .cs-feature {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-right: 0;
  }

  .case-study--subscription .cs-feature__copy {
    flex: none;
    width: 100%;
    gap: 24px;
  }

  .case-study--subscription .cs-feature__eyebrow {
    letter-spacing: 3.6px;
  }

  .case-study--subscription .cs-feature__copy h3 {
    max-width: none;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-feature__copy h3 br {
    display: none;
  }

  .case-study--subscription .cs-feature__body br {
    display: none;
  }

  .case-study--subscription .cs-feature__media {
    flex: none;
    width: 321px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 321 / 691.933;
    border-radius: 30px;
  }

  .case-study--subscription .cs-feature__media img {
    border: 1px solid #d8d8d8;
    border-radius: 30px;
    box-sizing: border-box;
    object-fit: cover;
    object-position: center top;
  }

  .case-study--subscription .cs-block--gallery {
    gap: 32px;
    padding-bottom: 64px;
    align-items: stretch;
  }

  .case-study--subscription .cs-block__text--center h2 {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-gallery {
    flex-direction: column;
    gap: 24px;
  }

  .case-study--subscription .cs-gallery__col {
    display: contents;
  }

  .case-study--subscription .cs-gallery__item {
    width: 100%;
    border-radius: 30px;
  }

  .case-study--subscription .cs-gallery__item img {
    border: 1px solid #d8d8d8;
    border-radius: 30px;
    box-sizing: border-box;
  }

  .case-study--subscription .cs-gallery__item--tile,
  .case-study--subscription .cs-gallery__item--total {
    border-radius: 30px;
  }

  .case-study--subscription .cs-gallery__item--tile img,
  .case-study--subscription .cs-gallery__item--total img {
    border: 1px solid #d8d8d8;
    border-radius: 30px;
    box-sizing: border-box;
  }

  .case-study--subscription .cs-gallery__item--tile,
  .case-study--subscription .cs-gallery__item--start,
  .case-study--subscription .cs-gallery__item--status,
  .case-study--subscription .cs-gallery__item--home,
  .case-study--subscription .cs-gallery__item--notification,
  .case-study--subscription .cs-gallery__item--merchant,
  .case-study--subscription .cs-gallery__item--total,
  .case-study--subscription .cs-gallery__item--cancel,
  .case-study--subscription .cs-gallery__item--year {
    height: auto;
  }

  .case-study--subscription .cs-gallery__item--tile {
    aspect-ratio: 345 / 360.333;
  }

  .case-study--subscription .cs-gallery__item--start {
    aspect-ratio: 345 / 747.979;
  }

  .case-study--subscription .cs-gallery__item--status {
    aspect-ratio: 345 / 696.708;
  }

  .case-study--subscription .cs-gallery__item--home {
    aspect-ratio: 345 / 743.667;
  }

  .case-study--subscription .cs-gallery__item--notification {
    aspect-ratio: 345 / 282.708;
  }

  .case-study--subscription .cs-gallery__item--merchant {
    aspect-ratio: 345 / 814.583;
  }

  .case-study--subscription .cs-gallery__item--total {
    aspect-ratio: 345 / 283.667;
  }

  .case-study--subscription .cs-gallery__item--cancel {
    aspect-ratio: 345 / 782;
  }

  .case-study--subscription .cs-gallery__item--year {
    aspect-ratio: 345 / 739.833;
  }

  .case-study--subscription .cs-next__layout {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 24px;
    gap: 32px;
  }

  .case-study--subscription .cs-next__link {
    max-width: none;
    width: 100%;
    gap: 24px;
  }

  .case-study--subscription .cs-next__label {
    gap: 20px;
  }

  .case-study--subscription .cs-next__label span {
    width: auto;
    font-size: 12px;
    letter-spacing: 3.6px;
  }

  .case-study--subscription .cs-next__title {
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .case-study--subscription .cs-next__title br {
    display: none;
  }

  .case-study--subscription .btn--home {
    width: auto;
    height: 60px;
    min-height: 60px;
    gap: 8px;
    padding: 0 24px;
    border-radius: 100px;
    justify-content: flex-start;
  }

  .case-study--subscription .btn--home img {
    width: 24px;
    height: 24px;
  }

  .case-study--subscription .site-footer {
    height: auto;
    padding: 24px 0 40px;
  }

  .case-study--subscription .footer__layout {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .case-study--subscription .footer__contact {
    gap: 17px;
    padding-inline: 24px;
    width: 100%;
  }

  .case-study--subscription .footer__cta {
    font-size: 32px;
    line-height: 38px;
  }

  .case-study--subscription .footer__email {
    font-size: 22px;
    font-weight: 900;
    line-height: 32px;
  }

  .case-study--subscription .footer__legal {
    font-size: 16px;
    line-height: 22px;
  }

  .case-study--subscription .brand--footer-logo {
    height: 237.56px;
    width: 100%;
  }

  .case-study--subscription .brand--footer-logo .brand__logo--footer {
    width: 100%;
    height: 237.56px;
    object-fit: contain;
    object-position: left center;
  }
}

/* ---------- Kohl’s Loyalty case study ---------- */
/* Figma: Case Study 2 / Loyalty / Master / Desktop / 1440 (810:319) */

.case-study--loyalty .cs-hero__layout {
  min-height: 610px;
}

.case-study--loyalty .cs-hero__copy {
  gap: 24px;
  padding-top: 124px;
  padding-bottom: 122px;
  padding-right: 0;
}

.case-study--loyalty .cs-hero__copy h1 {
  letter-spacing: 0;
}

.case-study--loyalty .cs-hero__media {
  flex: 0 0 708px;
  width: 708px;
  height: 610px;
  position: relative;
}

.case-study--loyalty .cs-hero__media img {
  /* Figma store crop: 1544×1027 image offset within 708×610 frame */
  position: absolute;
  width: 218.08%;
  height: 168.36%;
  max-width: none;
  left: -51.84%;
  top: -20.49%;
  object-fit: cover;
  object-position: center center;
}

.case-study--loyalty .cs-details {
  padding: 94px 0;
}

.case-study--loyalty .cs-detail {
  gap: 16px;
}

.case-study--loyalty .cs-detail__text h2 {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
}

.case-study--loyalty .cs-body {
  padding: 0 0 96px;
}

.case-study--loyalty .cs-body .shell {
  gap: 96px;
}

.case-study--loyalty .cs-block--features {
  gap: 96px;
}

.case-study--loyalty .cs-feature {
  gap: 284px;
  padding-right: 0;
  justify-content: space-between;
}

.case-study--loyalty .cs-feature__copy {
  flex: 1 1 0;
  width: auto;
  max-width: 476px;
  gap: 16px;
}

.case-study--loyalty .cs-feature__heading {
  gap: 16px;
}

.case-study--loyalty .cs-feature__eyebrow {
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 5.6px;
}

.case-study--loyalty .cs-feature__copy h3 {
  max-width: 354px;
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: 0;
}

.case-study--loyalty .cs-feature:nth-child(2) .cs-feature__copy h3 {
  max-width: 260px;
}

.case-study--loyalty .cs-feature:nth-child(4) .cs-feature__copy h3 {
  max-width: none;
}

.case-study--loyalty .cs-feature:nth-child(5) .cs-feature__copy h3 {
  max-width: 258px;
}

.case-study--loyalty .cs-feature__body {
  max-width: 452px;
}

.case-study--loyalty .cs-feature__media {
  flex: 0 0 360px;
  width: 360px;
  height: 784px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.case-study--loyalty .cs-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.case-study--loyalty .cs-feature__media--complexity {
  height: 504px;
}

.case-study--loyalty .cs-feature__media--alerts {
  height: 779px;
}

/* Figma section 4 crop: image scaled 237.47% and offset top -55.5% */
.case-study--loyalty .cs-feature__media--dashboard img {
  position: absolute;
  inset: auto 0 auto 0;
  width: 100%;
  height: 237.47%;
  top: -55.5%;
  object-fit: cover;
  object-position: center top;
}

.case-study--loyalty .cs-block--gallery {
  gap: 24px;
  align-items: center;
}

.case-study--loyalty .cs-block__text--center {
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 24px;
}

.case-study--loyalty .cs-block__text--center h2 {
  width: 100%;
  max-width: 1127px;
  font-size: 40px;
  line-height: 42px;
  letter-spacing: 0;
}

.case-study--loyalty .cs-block__body--center {
  max-width: 1127px;
  width: 100%;
  gap: 0;
  align-items: center;
  text-align: center;
}

.case-study--loyalty .cs-block__body--center p {
  max-width: none;
  width: 100%;
  text-align: center;
}

.case-study--loyalty .cs-gallery {
  width: 100%;
}

.case-study--loyalty .cs-gallery__col {
  flex: 1 1 0;
  width: auto;
  max-width: 360px;
  gap: 24px;
}

.case-study--loyalty .cs-gallery__item {
  width: 100%;
  max-width: 360px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

.case-study--loyalty .cs-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.case-study--loyalty .cs-gallery__item--home,
.case-study--loyalty .cs-gallery__item--card,
.case-study--loyalty .cs-gallery__item--friends {
  height: 779px;
}

.case-study--loyalty .cs-gallery__item--cash {
  height: 360px;
}

.case-study--loyalty .cs-gallery__item--shopping {
  height: 658px;
}

.case-study--loyalty .cs-gallery__item--tall {
  height: 1851px;
}

.case-study--loyalty .cs-gallery__item--personalize {
  height: 243px;
}

@media (max-width: 1200px) {
  .case-study--loyalty .cs-hero__media {
    flex: 0 1 708px;
    width: min(708px, 48%);
    height: auto;
    aspect-ratio: 708 / 610;
  }

  .case-study--loyalty .cs-feature {
    gap: 48px;
  }

  .case-study--loyalty .cs-gallery__col {
    max-width: none;
  }

  .case-study--loyalty .cs-gallery__item {
    max-width: none;
  }

  .case-study--loyalty .cs-gallery__item--home,
  .case-study--loyalty .cs-gallery__item--card,
  .case-study--loyalty .cs-gallery__item--friends,
  .case-study--loyalty .cs-gallery__item--cash,
  .case-study--loyalty .cs-gallery__item--shopping,
  .case-study--loyalty .cs-gallery__item--tall,
  .case-study--loyalty .cs-gallery__item--personalize {
    height: auto;
  }

  .case-study--loyalty .cs-gallery__item--home,
  .case-study--loyalty .cs-gallery__item--card,
  .case-study--loyalty .cs-gallery__item--friends {
    aspect-ratio: 360 / 779;
  }

  .case-study--loyalty .cs-gallery__item--cash {
    aspect-ratio: 1;
  }

  .case-study--loyalty .cs-gallery__item--shopping {
    aspect-ratio: 360 / 658;
  }

  .case-study--loyalty .cs-gallery__item--tall {
    aspect-ratio: 360 / 1851;
  }

  .case-study--loyalty .cs-gallery__item--personalize {
    aspect-ratio: 360 / 243;
  }
}

@media (max-width: 900px) {
  .case-study--loyalty .cs-feature {
    flex-direction: column;
    gap: 40px;
  }

  .case-study--loyalty .cs-feature__copy {
    max-width: none;
    width: 100%;
  }

  .case-study--loyalty .cs-feature__copy h3,
  .case-study--loyalty .cs-feature:nth-child(2) .cs-feature__copy h3,
  .case-study--loyalty .cs-feature:nth-child(5) .cs-feature__copy h3 {
    max-width: none;
  }

  .case-study--loyalty .cs-feature__body {
    max-width: none;
  }

  .case-study--loyalty .cs-feature__media,
  .case-study--loyalty .cs-feature__media--complexity,
  .case-study--loyalty .cs-feature__media--alerts {
    flex: none;
    width: min(360px, 100%);
    height: auto;
    aspect-ratio: 360 / 784;
    align-self: center;
  }

  .case-study--loyalty .cs-feature__media--complexity {
    aspect-ratio: 360 / 504;
  }

  .case-study--loyalty .cs-feature__media--alerts {
    aspect-ratio: 360 / 779;
  }

  .case-study--loyalty .cs-feature__media--dashboard img {
    position: static;
    height: 100%;
    top: auto;
  }

  .case-study--loyalty .cs-gallery {
    flex-direction: column;
    align-items: center;
  }

  .case-study--loyalty .cs-gallery__col {
    width: min(360px, 100%);
  }
}

/* Loyalty mobile — Figma 875:993 (393) */
@media (max-width: 720px) {
  .case-study--loyalty .brand__logo {
    width: 96px;
    height: 72px;
  }

  .case-study--loyalty .cs-header .shell {
    min-height: 0;
    padding: 24px;
    align-items: center;
  }

  .case-study--loyalty .cs-hero__layout {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .case-study--loyalty .cs-hero__copy {
    width: 100%;
    max-width: none;
    gap: 24px;
    padding: 32px 24px 40px;
  }

  .case-study--loyalty .cs-hero__copy h1 {
    width: 100%;
    font-size: 38px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 0;
  }

  .case-study--loyalty .cs-hero__lede {
    max-width: none;
    width: 100%;
    font-size: 16px;
    line-height: 22px;
  }

  .case-study--loyalty .cs-hero__meta {
    width: 100%;
    gap: 24px;
  }

  .case-study--loyalty .cs-hero__meta > div {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .case-study--loyalty .cs-hero__media {
    flex: none;
    width: 100%;
    max-width: none;
    height: 320px;
    aspect-ratio: auto;
    overflow: hidden;
    position: relative;
  }

  /* Figma hero crop: 220.54% × 180.19%, offset left -47.19% / top -29.49% */
  .case-study--loyalty .cs-hero__media img {
    position: absolute;
    width: 220.54%;
    height: 180.19%;
    max-width: none;
    left: -47.19%;
    top: -29.49%;
    margin: 0;
    object-fit: cover;
    object-position: center center;
  }

  .case-study--loyalty .cs-details {
    padding: 56px 0;
  }

  .case-study--loyalty .cs-details .shell {
    padding-inline: 24px;
  }

  .case-study--loyalty .cs-details__row {
    gap: 40px;
  }

  .case-study--loyalty .cs-detail {
    gap: 16px;
    width: 100%;
  }

  .case-study--loyalty .cs-detail__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .case-study--loyalty .cs-detail__text h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
  }

  .case-study--loyalty .cs-body {
    padding: 0;
  }

  .case-study--loyalty .cs-body .shell {
    gap: 0;
    padding-inline: 24px;
  }

  .case-study--loyalty .cs-block--features {
    gap: 64px;
    padding-bottom: 64px;
  }

  .case-study--loyalty .cs-feature {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .case-study--loyalty .cs-feature__copy {
    flex: none;
    width: 100%;
    max-width: none;
    gap: 16px;
  }

  .case-study--loyalty .cs-feature__heading {
    gap: 16px;
  }

  .case-study--loyalty .cs-feature__eyebrow {
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 3.84px;
  }

  .case-study--loyalty .cs-feature__copy h3 {
    max-width: none;
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0;
  }

  .case-study--loyalty .cs-feature__copy h3 br {
    display: none;
  }

  .case-study--loyalty .cs-feature:nth-child(2) .cs-feature__copy h3,
  .case-study--loyalty .cs-feature:nth-child(4) .cs-feature__copy h3,
  .case-study--loyalty .cs-feature:nth-child(5) .cs-feature__copy h3 {
    max-width: none;
  }

  .case-study--loyalty .cs-feature__body {
    max-width: none;
    font-size: 16px;
    line-height: 22px;
  }

  .case-study--loyalty .cs-feature__media,
  .case-study--loyalty .cs-feature__media--complexity,
  .case-study--loyalty .cs-feature__media--alerts {
    flex: none;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 345 / 751.33;
    border-radius: 28px;
  }

  .case-study--loyalty .cs-feature__media--complexity {
    aspect-ratio: 345 / 483;
    border-radius: 20px;
  }

  .case-study--loyalty .cs-feature__media--alerts {
    aspect-ratio: 345 / 747.04;
  }

  /* Figma section 4 crop retained on mobile */
  .case-study--loyalty .cs-feature__media--dashboard {
    position: relative;
    overflow: hidden;
  }

  .case-study--loyalty .cs-feature__media--dashboard img {
    position: absolute;
    inset: auto 0 auto 0;
    width: 100%;
    height: 237.47%;
    top: -55.5%;
    object-fit: cover;
    object-position: center top;
  }

  .case-study--loyalty .cs-block--gallery {
    gap: 32px;
    padding-bottom: 64px;
    align-items: stretch;
  }

  .case-study--loyalty .cs-block__text--center {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .case-study--loyalty .cs-block__text--center h2 {
    max-width: none;
    font-size: 32px;
    line-height: 36px;
    letter-spacing: 0;
    text-align: left;
  }

  .case-study--loyalty .cs-block__body--center {
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .case-study--loyalty .cs-block__body--center p {
    text-align: left;
  }

  .case-study--loyalty .cs-gallery {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .case-study--loyalty .cs-gallery__col {
    display: contents;
    width: auto;
    max-width: none;
  }

  .case-study--loyalty .cs-gallery__item {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 28px;
  }

  .case-study--loyalty .cs-gallery__item--home,
  .case-study--loyalty .cs-gallery__item--card,
  .case-study--loyalty .cs-gallery__item--friends {
    aspect-ratio: 345 / 747.04;
  }

  .case-study--loyalty .cs-gallery__item--cash {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
  }

  .case-study--loyalty .cs-gallery__item--shopping {
    aspect-ratio: 345 / 630.58;
  }

  .case-study--loyalty .cs-gallery__item--tall {
    aspect-ratio: 345 / 1773.875;
  }

  .case-study--loyalty .cs-gallery__item--personalize {
    aspect-ratio: 345 / 232.875;
  }

  .case-study--loyalty .cs-gallery__item--shopping img {
    position: absolute;
    left: 0;
    top: -0.04%;
    width: 100%;
    height: 118.47%;
    object-fit: cover;
    object-position: center top;
  }

  .case-study--loyalty .cs-gallery__item--tall img {
    position: absolute;
    left: 0;
    top: -0.03%;
    width: 100%;
    height: 100.33%;
    object-fit: cover;
    object-position: center top;
  }

  .case-study--loyalty .cs-next__layout {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
  }

  .case-study--loyalty .cs-next__link {
    max-width: none;
    width: 100%;
    gap: 24px;
  }

  .case-study--loyalty .cs-next__label {
    gap: 16px;
  }

  .case-study--loyalty .cs-next__label span {
    width: 182px;
    font-size: 12px;
    line-height: 22px;
    letter-spacing: 3.84px;
  }

  .case-study--loyalty .cs-next__title {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: 0;
  }

  .case-study--loyalty .cs-next__title br {
    display: none;
  }

  .case-study--loyalty .btn--home {
    width: auto;
    height: 60px;
    min-height: 60px;
    gap: 8px;
    padding: 0 24px;
    border-radius: 99px;
    justify-content: flex-start;
  }

  .case-study--loyalty .btn--home img {
    width: 24px;
    height: 24px;
  }

  .case-study--loyalty .site-footer {
    height: auto;
    padding: 24px 0 40px;
  }

  .case-study--loyalty .footer__layout {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    gap: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .case-study--loyalty .footer__contact {
    gap: 17px;
    padding-inline: 24px;
    width: 100%;
  }

  .case-study--loyalty .footer__cta {
    font-size: 32px;
    line-height: 38px;
  }

  .case-study--loyalty .footer__email {
    font-size: 22px;
    font-weight: 900;
    line-height: 32px;
  }

  .case-study--loyalty .footer__legal {
    font-size: 16px;
    line-height: 22px;
  }

  .case-study--loyalty .brand--footer-logo {
    height: 237.56px;
    width: 100%;
  }

  .case-study--loyalty .brand--footer-logo .brand__logo--footer {
    width: 100%;
    height: 237.56px;
    object-fit: contain;
    object-position: left center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cs-hero__copy,
  .cs-detail,
  .cs-block,
  .cs-split,
  .cs-card,
  .cs-feature {
    animation: rise 0.9s var(--ease) both;
  }
}
