/* Elvie Fox portfolio — complements Bootstrap */

:root {
  --elvie-teal: #1b3b32;
  --elvie-teal-alt: #16332a;
  --elvie-peach: #f7a8a8;
  --elvie-bg: #ffffff;
  --elvie-text: #111111;
  /* Fixed hero portrait width (row height = photo height on large screens) */
  --hero-photo-width: 370px;
  /* Contact thank-you banner: smaller portrait than home hero */
  --contact-thank-photo-width: 220px;
  /* Matches title/tagline to hero green edge (letter-spacing / font vs flat fill) */
  --header-edge-nudge: -0.05em;
  /* Case study: main title + body section headings (muted pink, ref comp) */
  --case-study-heading-pink: #d6a5b2;
  --contact-bar-bg: #f8e8ec;
  /* Reserve space for fixed site nav (taller on small screens when links wrap) */
  --site-fixed-nav-offset: 5.75rem;
  /* Reserve space for fixed site footer (contact strip; taller when items stack) */
  --site-fixed-footer-offset: 3.1rem;
}

/* Slightly more body offset below lg so fixed nav + toggler clear the title row */
@media (max-width: 991.98px) {
  :root {
    --site-fixed-nav-offset: 6.35rem;
  }
}

@media (min-width: 992px) {
  :root {
    --site-fixed-nav-offset: 3.85rem;
  }
}

@media (max-width: 575.98px) {
  /* Same breakpoint as .contact-info-bar-inner column stack — hide fixed strip */
  .site-footer {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
  /* Avoid horizontal jump when scrollbar appears (short vs long pages). */
  scrollbar-gutter: stable;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--elvie-text);
  background-color: var(--elvie-bg);
  padding-top: var(--site-fixed-nav-offset);
  padding-bottom: var(--site-fixed-footer-offset);
}

/* Navigation */
.site-nav .navbar-brand {
  display: none;
}

/* Home shortcut: only when collapsed nav (hamburger) is shown */
.site-nav-home {
  color: var(--elvie-text);
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.25rem 0.45rem;
  margin: -0.25rem 0 -0.25rem -0.25rem;
  border-radius: 0.25rem;
}

.site-nav-home:hover,
.site-nav-home:focus-visible {
  color: var(--elvie-text);
  opacity: 0.75;
}

.site-nav-home-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.site-nav .nav-link {
  color: var(--elvie-text) !important;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
  white-space: normal;
}

@media (min-width: 992px) {
  .site-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem;
  }
}

.site-nav .nav-link:hover {
  opacity: 0.75;
}

.site-nav .nav-link.active {
  font-weight: 700;
}

header .site-nav.navbar {
  /* Fixed: sticky on inner nav disappears once <header> scrolls out (nav is not a full-page ancestor). */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  z-index: 1030;
  background-color: var(--elvie-bg);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  /* Match Bootstrap .container + .px-3 .px-md-4 (same max-width steps + horizontal padding). */
  --site-nav-pad-x: 1rem;
  --site-nav-max-w: 100vw;
  padding-left: calc(
    (100vw - min(var(--site-nav-max-w), 100vw)) / 2 + var(--site-nav-pad-x)
  );
  padding-right: calc(
    (100vw - min(var(--site-nav-max-w), 100vw)) / 2 + var(--site-nav-pad-x)
  );
}

@media (min-width: 576px) {
  header .site-nav.navbar {
    --site-nav-max-w: 540px;
  }
}

@media (min-width: 768px) {
  header .site-nav.navbar {
    --site-nav-max-w: 720px;
    --site-nav-pad-x: 1.5rem;
  }
}

@media (min-width: 992px) {
  header .site-nav.navbar {
    --site-nav-max-w: 960px;
  }
}

@media (min-width: 1200px) {
  header .site-nav.navbar {
    --site-nav-max-w: 1140px;
  }
}

@media (min-width: 1400px) {
  header .site-nav.navbar {
    --site-nav-max-w: 1320px;
  }
}

/* Fixed footer — mirrors nav alignment + hairline edge (nav uses bottom shadow; footer uses top) */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background-color: var(--elvie-bg);
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
  --site-footer-pad-x: 1rem;
  --site-footer-max-w: 100vw;
  padding-left: calc(
    (100vw - min(var(--site-footer-max-w), 100vw)) / 2 + var(--site-footer-pad-x)
  );
  padding-right: calc(
    (100vw - min(var(--site-footer-max-w), 100vw)) / 2 + var(--site-footer-pad-x)
  );
}

@media (min-width: 576px) {
  .site-footer {
    --site-footer-max-w: 540px;
  }
}

@media (min-width: 768px) {
  .site-footer {
    --site-footer-max-w: 720px;
    --site-footer-pad-x: 1.5rem;
  }
}

@media (min-width: 992px) {
  .site-footer {
    --site-footer-max-w: 960px;
  }
}

@media (min-width: 1200px) {
  .site-footer {
    --site-footer-max-w: 1140px;
  }
}

@media (min-width: 1400px) {
  .site-footer {
    --site-footer-max-w: 1320px;
  }
}

.site-footer-inner {
  width: 100%;
  max-width: 100%;
}

.site-footer .contact-info-bar-inner {
  gap: 0.5rem 1rem;
}

.site-footer .contact-info-item {
  font-size: clamp(0.72rem, 1.45vw, 0.82rem);
  gap: 0.45rem;
  line-height: 1.2;
}

.site-footer .contact-info-icon {
  width: 1.55rem;
  height: 1.55rem;
}

.site-footer .contact-info-icon svg {
  width: 0.7rem;
  height: 0.7rem;
}

.site-nav .navbar-collapse {
  background-color: var(--elvie-bg);
}

/* Sit header a touch closer to the top of the viewport */
header.pt-3 {
  padding-top: 0.55rem !important;
}

@media (min-width: 768px) {
  header.pt-md-4 {
    padding-top: 1rem !important;
  }
}

@media (min-width: 992px) {
  .site-nav .navbar-nav .nav-item:first-child .nav-link {
    padding-left: 0;
  }
}

/* Header — title + portfolio on one row; tagline only under title (matches comp) */
.site-header-branding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: clamp(1.25rem, 4vw, 3rem);
  row-gap: 0.5rem;
  align-items: start;
  width: 100%;
}

/* First row, left: h1 (home) or <p> wrapping link (inner pages) */
.site-header-branding > :first-child {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: var(--header-edge-nudge);
}

.site-header-branding > .portfolio-label {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.site-header-branding > .site-tagline {
  grid-column: 1;
  grid-row: 2;
  max-width: 42rem;
  margin-left: var(--header-edge-nudge);
}

.site-title {
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

/* Home only (<h1>); inner pages use <a class="site-title site-title-subpage">. */
.site-header-branding h1.site-title {
  font-size: clamp(1.85rem, 6vw, 3.85rem);
  font-weight: 500;
}

.site-tagline {
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.portfolio-label {
  font-size: clamp(1.1rem, 2.8vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.08;
  text-align: right;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

/* Smaller name treatment on inner pages (still uppercase via .site-title) */
.site-title-subpage {
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* Home hero — tight to header; same horizontal gutters as header */
.hero-split-section {
  width: 100%;
  margin-top: clamp(0.25rem, 1.2vw, 0.65rem);
  margin-bottom: 0;
}

.hero-split {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.06);
}

/* Green panel + photo: photo is in-flow and sets hero height; green fills left (lg+) */
.stats-block {
  background: linear-gradient(
    160deg,
    var(--elvie-teal) 0%,
    var(--elvie-teal-alt) 100%
  );
  color: #fff;
}

.stats-block--hero {
  order: 1;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-split {
    display: block;
  }

  /* Out of flow so it does not stretch the row past the photo */
  .stats-block--hero {
    position: absolute;
    top: 0;
    left: 0;
    right: var(--hero-photo-width);
    bottom: 0;
    z-index: 0;
    order: unset;
    padding: clamp(1.25rem, 3vh, 2rem) clamp(1rem, 2.2vw, 1.5rem);
    align-items: center;
    justify-content: center;
  }
}

/* Stat groups: airy gaps on small screens; on lg+ fill green height + space-evenly */
.hero-stats-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 5vw, 2.35rem);
  width: 100%;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .hero-stats-stack {
    max-width: min(36rem, 100%);
    height: 100%;
    min-height: 0;
    justify-content: space-evenly;
    gap: 0;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 399.98px) {
  .hero-stats-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
    max-width: none;
    height: auto;
    justify-content: unset;
  }

  .hero-stats-stack .stat-row {
    margin-bottom: 0;
  }
}

.stat-row {
  width: 100%;
}

.hero-portrait-column {
  order: 2;
  width: min(100%, var(--hero-photo-width));
  max-width: var(--hero-photo-width);
  margin-left: auto;
  margin-right: auto;
  background: #000;
  line-height: 0;
}

@media (min-width: 992px) {
  .hero-portrait-column {
    position: relative;
    z-index: 1;
    width: var(--hero-photo-width);
    max-width: none;
    margin-left: auto;
    margin-right: 0;
    order: unset;
  }
}

.hero-portrait {
  display: block;
  width: var(--hero-photo-width);
  max-width: 100%;
  height: auto;
}

/* Hero stats typography — sized to fill more of the green panel */
.stats-block--hero .stat-value,
.case-study-results-panel .stat-value {
  color: var(--elvie-peach);
  font-size: clamp(1.35rem, 3.8vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stats-block--hero .stat-label,
.case-study-results-panel .stat-label {
  font-size: clamp(0.72rem, 1.65vw, 0.95rem);
  font-weight: 400;
  line-height: 1.32;
  color: #fff;
  opacity: 0.98;
  padding: 0 0.25rem;
}

@media (min-width: 992px) {
  .stats-block--hero .stat-value,
  .case-study-results-panel .stat-value {
    font-size: clamp(1.65rem, 3.1vw, 2.75rem);
    margin-bottom: 0.18rem;
  }

  .stats-block--hero .stat-label,
  .case-study-results-panel .stat-label {
    font-size: clamp(0.82rem, 1.35vw, 1.08rem);
  }
}

/* Home — about blurb below hero (right column matches hero portrait width) */
.about-intro-section {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.about-intro-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .about-intro-row {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vw, 2rem);
  }

  .about-intro-text-col {
    flex: 1 1 auto;
    min-width: 0;
  }

  .about-intro-aside {
    flex: 0 0 var(--hero-photo-width);
    width: var(--hero-photo-width);
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
  }
}

.about-intro-heading {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--elvie-teal);
  line-height: 1.15;
}

.about-intro-subhead {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--case-study-heading-pink);
}

.about-intro-text {
  font-size: 0.98rem;
  line-height: 1.65;
}

.about-intro-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.about-intro-list li {
  margin-bottom: 0.35rem;
}

.about-intro-list li:last-child {
  margin-bottom: 0;
}

.about-intro-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-intro-figure {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-intro-figure {
    margin-left: auto;
    margin-right: 0;
    position: sticky;
    top: 1rem;
  }
}

.about-intro-photo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Case study — heading band (same green as home stats; full width inside container margins) */
.case-study-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  padding: clamp(1.15rem, 2.8vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
  background: linear-gradient(
    160deg,
    var(--elvie-teal) 0%,
    var(--elvie-teal-alt) 100%
  );
  border-radius: 0.25rem;
}

.case-study-hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--case-study-heading-pink);
  text-transform: uppercase;
}

/* e.g. Contact — single title, no lead/role lines inside the band */
.case-study-hero > .case-study-hero-title:last-child {
  margin-bottom: 0;
}

.case-study-section-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--case-study-heading-pink);
  text-transform: uppercase;
}

.case-study-hero-lead {
  margin: 0 0 0.5rem;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  font-weight: 400;
  line-height: 1.45;
  color: #f0f0f0;
}

.case-study-hero-role {
  margin: 0;
  font-size: clamp(0.78rem, 1.45vw, 0.88rem);
  font-weight: 400;
  line-height: 1.45;
  color: #c8c8c8;
}

/* Case study — results block (green panel + stat rhythm aligned with home hero) */
.case-study-results-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 2.5vw, 1.5rem);
}

.case-study-results-title {
  margin: 0;
  width: 100%;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--case-study-heading-pink);
  text-transform: uppercase;
  text-align: center;
}

.case-study-results-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(1rem, 3vw, 1.5rem) clamp(0.85rem, 3vw, 1.75rem);
  width: 100%;
  max-width: min(38rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.case-study-results-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  min-width: 0;
}

/* Case study 3 — results bullets + tools strip inside green panel */
.case-study-results-bullets-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(0.65rem, 2vw, 1rem) clamp(0.85rem, 3vw, 1.35rem);
  width: 100%;
  color: #fff;
  font-size: clamp(0.78rem, 1.55vw, 0.92rem);
  font-weight: 400;
  line-height: 1.4;
}

.case-study-results-bullets-2col ul {
  margin: 0;
  padding-left: 1.15rem;
}

.case-study-results-bullets-2col li + li {
  margin-top: 0.45rem;
}

.case-study-results-tools-inset {
  background: #d9d9d9;
  padding: clamp(0.65rem, 2vw, 0.85rem) clamp(0.7rem, 2vw, 0.95rem);
  border-radius: 0.25rem;
  width: 100%;
}

.case-study-results-tools-heading {
  margin: 0 0 0.4rem;
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--elvie-teal);
  text-transform: uppercase;
}

/* Lighter well behind logo strip (matches mockup inner panel) */
.case-study-results-tools-logos {
  background: #f4f3f1;
  padding: clamp(0.45rem, 1.5vw, 0.65rem) clamp(0.5rem, 1.8vw, 0.75rem);
  border-radius: 0.1875rem;
}

.case-study-results-tools-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .case-study-results-bullets-2col {
    grid-template-columns: 1fr;
  }

  .case-study-results-bullets-2col li + li {
    margin-top: 0.35rem;
  }
}

/* Case study 3 — work examples strip (green bar + spaced image columns) */
.case-study-showcase-frame {
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.07);
}

.case-study-showcase-frame--flat {
  box-shadow: none;
}

.case-study-showcase-banner {
  background: linear-gradient(
    160deg,
    var(--elvie-teal) 0%,
    var(--elvie-teal-alt) 100%
  );
  color: #fff;
  text-align: center;
  padding: clamp(1rem, 2.8vw, 1.35rem) 0;
}

.case-study-showcase-title {
  font-size: clamp(0.78rem, 1.85vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin: 0;
  padding: 0 clamp(0.65rem, 2.5vw, 1.25rem);
}

/* White band between green title bar and image row */
.case-study-showcase-gap {
  height: clamp(1rem, 3.2vw, 1.85rem);
  min-height: 12px;
  background-color: var(--elvie-bg);
}

.case-study-showcase-board {
  background: transparent;
  padding: 0;
}

.case-study-showcase-figure {
  margin: 0;
}

.case-study-showcase-img {
  display: block;
  /* Natural file size up to column width — width: 100% was upscaling smaller assets */
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
}

/* Case study 4 — meta results + ad thumbnails (above examples strip) */
.cs4-meta-results-list {
  margin: 0;
  padding-left: 1.15rem;
  text-align: left;
  color: #fff;
  font-size: clamp(0.78rem, 1.55vw, 0.92rem);
  font-weight: 400;
  line-height: 1.45;
}

.cs4-meta-results-list li + li {
  margin-top: 0.4rem;
}

.cs4-meta-results-why-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--case-study-heading-pink);
  text-transform: uppercase;
}

/* Case study 1 — TikTok / Instagram boards (not the white gap under titles). Matches stats canvas. */
.case-study-showcase-board--cs1-tiktok,
.case-study-showcase-board--cs1-instagram {
  background-color: #f1f0f0;
  padding: clamp(1.25rem, 4vw, 2.25rem) clamp(0.75rem, 2.5vw, 1.5rem)
    clamp(1.5rem, 5vw, 2.75rem);
}

.case-study-showcase-board--cs1-tiktok .case-study-phone-mock,
.case-study-showcase-board--cs1-instagram .case-study-phone-mock {
  filter: none;
}

/* Case study 1 — Instagram: one phone + three insight screenshots in one row */
.case-study-showcase-board--cs1-instagram .case-study-cs1-instagram-stats-row > [class*="col-"] {
  display: flex;
}

.case-study-showcase-board--cs1-instagram .case-study-cs1-instagram-stat-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  line-height: 0;
}

/* Same asset height — lock display height so all three panels align */
.case-study-showcase-board--cs1-instagram .case-study-cs1-instagram-stat-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(8.5rem, 36vmin, 19.5rem);
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .case-study-showcase-board--cs1-instagram .case-study-cs1-instagram-stat-img {
    height: clamp(11rem, 28vw, 22rem);
  }
}

/* Case study 1 — stats: full width on small screens; match phone height + right inset from lg */
.case-study-showcase-board--cs1-tiktok .case-study-cs1-stats-figure {
  line-height: 0;
  width: 100%;
}

.case-study-showcase-board--cs1-tiktok .case-study-cs1-stats-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .case-study-showcase-board--cs1-tiktok .case-study-cs1-stats-col {
    min-height: 0;
    padding-inline-end: clamp(0.65rem, 2.2vw, 1.35rem);
  }

  .case-study-showcase-board--cs1-tiktok .case-study-cs1-stats-figure {
    flex: 1 1 0;
    min-height: 0;
  }

  .case-study-showcase-board--cs1-tiktok .case-study-cs1-stats-img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center right;
  }
}

.case-study-showcase-board--cs4-results {
  padding: clamp(1.25rem, 4vw, 2.75rem) 0 clamp(1.5rem, 5vw, 3rem);
}

.case-study-showcase-board--cs4-results .case-study-phone-mock {
  filter: none;
}

@media (min-width: 992px) {
  .case-study-showcase-board--cs4-results .cs4-results-stack {
    padding-inline: 0;
    margin-inline: 0;
  }

  .case-study-showcase-board--cs4-results .case-study-phone-mock--cs4-solo {
    width: min(17.25rem, 100%);
  }
}

/* Case study 4 — phone-style frame for vertical ad video */
.case-study-phone-mock {
  width: min(18rem, 88vw);
  max-width: 100%;
  margin-inline: auto;
  filter: drop-shadow(0 0.65rem 1.65rem rgba(0, 0, 0, 0.22));
}

.case-study-phone-mock--sidebar {
  width: min(15.75rem, 86vw);
}

.case-study-phone-mock__shell {
  position: relative;
  background: linear-gradient(165deg, #242424 0%, #0c0c0c 55%, #141414 100%);
  border-radius: 2.4rem;
  padding: 0.48rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.case-study-phone-mock__screen {
  position: relative;
  border-radius: 1.9rem;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.case-study-phone-mock__island {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  z-index: 2;
  width: min(38%, 6.75rem);
  height: 1.28rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #050505;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.case-study-phone-mock__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Case study 4 — results cards + pink pair row */
.cs4-results-stack {
  width: 100%;
  max-width: none;
}

.cs4-result-card--dark {
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.25rem);
  border-radius: 0.25rem;
  background: linear-gradient(
    160deg,
    var(--elvie-teal) 0%,
    var(--elvie-teal-alt) 100%
  );
  color: #fff;
}

.cs4-result-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(0.72rem, 1.45vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.38;
  color: var(--case-study-heading-pink);
}

.cs4-result-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: clamp(0.75rem, 1.4vw, 0.88rem);
  line-height: 1.45;
  color: #fff;
}

.cs4-result-card__list li + li {
  margin-top: 0.35rem;
}

.cs4-result-card--pink {
  padding: clamp(0.85rem, 2.2vw, 1.1rem) clamp(0.95rem, 2.5vw, 1.2rem);
  border-radius: 0.25rem;
  background: #fceaea;
  border: 1px solid rgba(27, 59, 50, 0.35);
  max-width: 94%;
}

.cs4-result-card--pink-pair {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.cs4-result-card__list--dark {
  color: var(--elvie-text);
}

/* Inner pages */
.page-lead {
  max-width: 42rem;
}

/* Contact page — detail strip under hero */
.contact-info-bar {
  background-color: var(--contact-bar-bg);
  padding: clamp(0.85rem, 2.2vw, 1.2rem) clamp(1rem, 3vw, 1.75rem);
  border-radius: 0.25rem;
}

.contact-info-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.75rem;
}

@media (max-width: 575.98px) {
  .contact-info-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.contact-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--elvie-text);
  text-decoration: none;
  font-size: clamp(0.8rem, 1.75vw, 0.95rem);
  font-weight: 500;
  line-height: 1.25;
  min-width: 0;
}

.contact-info-item:hover {
  color: var(--elvie-teal);
}

.contact-info-item--linkedin {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-info-item--linkedin:hover {
  text-decoration: underline;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    var(--elvie-teal) 0%,
    var(--elvie-teal-alt) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: #fff;
}

/* Contact page — full-width thank-you banner (home-hero layout, shorter photo) */
.contact-thank-section {
  width: 100%;
}

.contact-thank-split {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.06);
}

.contact-thank-stats {
  order: 1;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 1.65rem) clamp(1rem, 2.5vw, 1.5rem);
}

.contact-thank-copy {
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

@media (min-width: 992px) {
  .contact-thank-split {
    display: block;
  }

  .contact-thank-stats {
    position: absolute;
    top: 0;
    left: 0;
    right: var(--contact-thank-photo-width);
    bottom: 0;
    z-index: 0;
    order: unset;
    padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.2vw, 1.5rem);
    align-items: center;
    justify-content: center;
  }

  .contact-thank-copy {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }
}

.contact-thank-portrait-column {
  order: 2;
  width: min(100%, var(--contact-thank-photo-width));
  max-width: var(--contact-thank-photo-width);
  margin-left: auto;
  margin-right: auto;
  background: #000;
  line-height: 0;
}

@media (min-width: 992px) {
  .contact-thank-portrait-column {
    position: relative;
    z-index: 1;
    width: var(--contact-thank-photo-width);
    max-width: none;
    margin-left: auto;
    margin-right: 0;
    order: unset;
  }
}

.contact-thank-portrait {
  display: block;
  width: var(--contact-thank-photo-width);
  max-width: 100%;
  height: auto;
}

.contact-thank-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--case-study-heading-pink);
}

.contact-thank-body {
  margin: 0 0 0.85rem;
  font-size: clamp(0.85rem, 1.75vw, 0.98rem);
  font-weight: 400;
  line-height: 1.5;
  color: #f0f0f0;
}

.contact-thank-signature {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}
