/* Neil Maclean homepage — mobile-first, scales to desktop */

.nm-homepage {
  --black: #0e0e0e;
  --charcoal: #1a1a1a;
  --dark: #242424;
  --mid: #3a3a3a;
  --grey: #888;
  --silver: #b0b0b0;
  --ltgrey: #d8d8d8;
  --offwhite: #f4f3f1;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", sans-serif;
  --section-max: 1200px;
  --pad-x: 24px;
  --gutter: max(var(--pad-x), calc((100vw - var(--section-max)) / 2));
  font-family: var(--sans);
  font-weight: 300;
  color: var(--black);
  background: var(--offwhite);
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}

.nm-homepage * {
  box-sizing: border-box;
}

.nm-homepage section,
.nm-homepage div,
.nm-homepage p,
.nm-homepage h1,
.nm-homepage h2,
.nm-homepage h3 {
  margin: 0;
}

.nm-homepage a {
  text-decoration: none;
  color: inherit;
}

/* Hero */
.nm-homepage .hero {
  height: 100svh;
  min-height: 520px;
  background: var(--black);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
}

.nm-homepage .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.nm-homepage .hero-eyebrow {
  position: relative;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ltgrey);
  font-weight: 500;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5), 0 1px 10px rgba(0, 0, 0, 0.35);
  padding: 0 var(--gutter);
  margin-bottom: 14px;
}

.nm-homepage .hero-title {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 10vw, 4.75rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  padding: 0 var(--gutter);
  margin-bottom: 18px;
}

.nm-homepage .hero-sub {
  position: relative;
  font-size: clamp(12px, 2.5vw, 15px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 var(--gutter);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 36em;
}

.nm-homepage .hero-ctas {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--gutter);
}

@media (min-width: 480px) {
  .nm-homepage .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 520px;
  }

  .nm-homepage .btn-primary,
  .nm-homepage .btn-secondary {
    flex: 1 1 160px;
  }
}

.nm-homepage .btn-primary,
.nm-homepage .btn-secondary {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 14px;
  text-align: center;
  display: block;
}

.nm-homepage .btn-primary {
  background: var(--white);
  color: var(--black);
}

.nm-homepage .btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Stats */
.nm-homepage .stats-bar {
  background: var(--charcoal);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nm-homepage .stat-item {
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nm-homepage .stat-item:last-child {
  border-right: 0;
}

.nm-homepage .stat-num {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 4vw, 2.25rem);
  color: var(--white);
  margin-bottom: 4px;
}

.nm-homepage .stat-lbl {
  font-size: clamp(7px, 1.2vw, 9px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .nm-homepage .stat-item {
    padding: 28px 20px;
  }
}

/* Sections — shared */
.nm-homepage .section {
  padding: 56px var(--gutter);
}

.nm-homepage .section-light {
  background: var(--offwhite);
}

.nm-homepage .eyebrow {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nm-homepage .eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.nm-homepage .section-title {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 6px;
}

.nm-homepage .section-body {
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.75;
  color: var(--grey);
  margin-top: 14px;
  max-width: 42em;
}

@media (min-width: 768px) {
  .nm-homepage .section {
    padding: 72px var(--gutter);
  }
}

@media (min-width: 1024px) {
  .nm-homepage {
    --pad-x: clamp(32px, 5vw, 80px);
  }

  .nm-homepage .section {
    padding: 88px var(--gutter);
  }
}

/* Services grid */
.nm-homepage .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .nm-homepage .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 36px;
  }
}

.nm-homepage .service-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  min-height: 200px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nm-homepage .service-card {
    aspect-ratio: 3 / 4;
    min-height: 280px;
  }
}

.nm-homepage .service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.nm-homepage .service-card:hover .service-card-bg {
  transform: scale(1.04);
}

.nm-homepage .service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.1) 55%);
}

.nm-homepage .service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 14px;
}

.nm-homepage .service-card-title {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 5px;
}

.nm-homepage .service-card-arrow {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nm-homepage .service-card-arrow::after {
  content: '→';
}

@media (hover: hover) and (pointer: fine) {
  .nm-homepage .service-card-arrow {
    transition: transform var(--nm-duration-fast) var(--nm-ease);
  }

  .nm-homepage .service-card:hover .service-card-arrow {
    transform: translateX(4px);
  }

  .nm-homepage .location-card-img img {
    transition: transform var(--nm-duration-mid) var(--nm-ease);
  }

  .nm-homepage .location-card:hover .location-card-img img {
    transform: scale(1.04);
  }

  .nm-homepage .location-cta {
    transition:
      color var(--nm-duration-fast) var(--nm-ease),
      border-color var(--nm-duration-fast) var(--nm-ease);
  }

  .nm-homepage .location-card:hover .location-cta {
    color: var(--charcoal);
    border-bottom-color: var(--charcoal);
  }
}

.nm-homepage .service-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  z-index: 1;
}

/* Gallery */
.nm-homepage .gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (min-width: 768px) {
  .nm-homepage .gallery-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.nm-homepage .gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--mid);
}

.nm-homepage .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Smash Balloon / Instagram feed — sits between image strip and footer bar */
.nm-homepage .home-instagram-feed {
  width: 100%;
  max-width: 100%;
  background: var(--offwhite);
  padding: clamp(28px, 5vw, 56px) var(--gutter);
  box-sizing: border-box;
}

.nm-homepage .home-instagram-feed #sb_instagram,
.nm-homepage .home-instagram-feed .sbi_wrap,
.nm-homepage .home-instagram-feed .cff-wrapper {
  max-width: var(--section-max);
  margin-left: auto;
  margin-right: auto;
}

.nm-homepage .gallery-footer {
  background: var(--black);
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nm-homepage .instagram-handle {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.nm-homepage .gallery-follow {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

/* Founder */
.nm-homepage .founder-section,
.nm-homepage .kerastase-section {
  background: var(--black);
  color: var(--white);
}

.nm-homepage .founder-section {
  padding: 56px var(--gutter);
}

.nm-homepage .founder-section .eyebrow,
.nm-homepage .founder-section .section-body {
  color: var(--silver);
}

/* Mobile: image between title and quote, edge-to-edge (break out of section horizontal padding) */
.nm-homepage .founder-img-wrap {
  width: calc(100% + 2 * var(--gutter));
  max-width: 100vw;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
}

.nm-homepage .founder-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep Neil's head in frame — portrait crops badly with center */
  object-position: center top;
  display: block;
}

.nm-homepage .founder-quote {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 1px solid var(--silver);
}

.nm-homepage .founder-cta {
  display: inline-flex;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 8px;
}

/* Desktop: copy left, image right (explicit rows so DOM order stays mobile-first) */
@media (min-width: 768px) {
  .nm-homepage .founder-section:has(.founder-img-wrap) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: clamp(32px, 5vw, 64px);
    row-gap: 16px;
    align-items: start;
    padding: 72px var(--gutter);
  }

  .nm-homepage .founder-section:has(.founder-img-wrap) .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .nm-homepage .founder-section:has(.founder-img-wrap) .section-title {
    grid-column: 1;
    grid-row: 2;
  }

  .nm-homepage .founder-section:has(.founder-img-wrap) .founder-quote {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  .nm-homepage .founder-section:has(.founder-img-wrap) .section-body {
    grid-column: 1;
    grid-row: 4;
  }

  .nm-homepage .founder-section:has(.founder-img-wrap) .founder-cta {
    grid-column: 1;
    grid-row: 5;
  }

  .nm-homepage .founder-section:has(.founder-img-wrap) .founder-img-wrap {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: center;
    aspect-ratio: 4 / 5;
    max-height: min(88vh, 640px);
  }
}

@media (min-width: 768px) {
  .nm-homepage .founder-section:not(:has(.founder-img-wrap)) {
    padding: 72px var(--gutter);
    max-width: 42rem;
  }
}

@media (min-width: 1024px) {
  .nm-homepage .founder-section:has(.founder-img-wrap) {
    padding: 88px var(--gutter);
    column-gap: 64px;
    row-gap: 20px;
  }
}

/* Reviews */
.nm-homepage .reviews-section {
  background: var(--offwhite);
  padding: 56px var(--gutter);
}

.nm-homepage .review-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .nm-homepage .reviews-section {
    padding: 72px var(--gutter);
  }

  .nm-homepage .review-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .nm-homepage .reviews-section {
    padding: 88px var(--gutter);
  }
}

.nm-homepage .review-card {
  background: var(--white);
  padding: 22px 20px;
  border-left: 2px solid var(--black);
}

.nm-homepage .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.nm-homepage .star {
  width: 12px;
  height: 12px;
  background: var(--black);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.nm-homepage .review-text {
  font-family: var(--serif);
  font-size: clamp(14px, 1.5vw, 17px);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 12px;
}

.nm-homepage .review-meta {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}

.nm-homepage .review-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--black);
}

@media (min-width: 768px) {
  .nm-homepage .review-summary {
    max-width: 480px;
  }
}

.nm-homepage .review-big-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--white);
}

.nm-homepage .review-summary-text p:first-child {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 3px;
}

.nm-homepage .review-summary-text p:last-child {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

/* Press */
.nm-homepage .press-section {
  background: var(--white);
  padding: 40px var(--gutter);
  text-align: center;
}

@media (min-width: 768px) {
  .nm-homepage .press-section {
    padding: 56px var(--gutter);
  }
}

.nm-homepage .press-eyebrow {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 400;
  margin-bottom: 24px;
}

.nm-homepage .press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.nm-homepage .press-logo {
  padding: 10px 16px;
  border: 1px solid var(--ltgrey);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.06em;
  font-style: italic;
}

.nm-homepage .press-logos--text {
  align-items: center;
  gap: 8px;
}

.nm-homepage .press-logos--text .press-logo {
  padding: 10px 16px;
  border: 1px solid var(--ltgrey);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mid);
}

.nm-homepage .press-celebrity {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--offwhite);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--grey);
  line-height: 1.6;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.nm-homepage .press-celebrity strong {
  color: var(--black);
  font-weight: 500;
}

/* Full-bleed visual break under press */
.nm-homepage .press-image-break {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--black);
}

.nm-homepage .press-image-break__bg {
  width: 100%;
  height: clamp(220px, 38vw, 460px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Kérastase (signed-off template: watermark, stacked items) */
.nm-homepage .kerastase-section {
  position: relative;
  overflow: hidden;
  padding: 56px var(--gutter);
}

.nm-homepage .kerastase-section::before {
  content: "K";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 280px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  font-style: italic;
}

@media (min-width: 1024px) {
  .nm-homepage .kerastase-section::before {
    font-size: min(42vw, 520px);
    right: -48px;
  }
}

.nm-homepage .kerastase-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 400;
  margin-bottom: 22px;
}

.nm-homepage .kerastase-section .section-title {
  position: relative;
  font-size: clamp(30px, 8vw, 42px);
  letter-spacing: -0.01em;
  color: var(--white);
}

.nm-homepage .kerastase-section .section-body {
  position: relative;
  font-size: 13px;
  font-weight: 300;
  color: var(--grey);
  max-width: none;
}

.nm-homepage .kerastase-items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
}

.nm-homepage .kerastase-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nm-homepage .kerastase-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  min-width: 40px;
}

.nm-homepage .kerastase-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
}

.nm-homepage .kerastase-label span {
  display: block;
  font-size: 10px;
  font-weight: 300;
  color: var(--grey);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* Locations */
.nm-homepage .locations-section {
  background: var(--offwhite);
  padding: 56px 0;
}

.nm-homepage .locations-section > .eyebrow,
.nm-homepage .locations-section > .section-title {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.nm-homepage .locations-section > .section-title {
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .nm-homepage .locations-section > .section-title {
    margin-bottom: 36px;
  }
}

.nm-homepage .locations-scroll {
  display: flex;
  overflow-x: auto;
  gap: 2px;
  padding: 0 var(--gutter) 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nm-homepage .locations-scroll::-webkit-scrollbar {
  display: none;
}

.nm-homepage .location-card {
  flex: 0 0 min(260px, 85vw);
  background: var(--white);
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  .nm-homepage .locations-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 16px;
    padding: 0 var(--gutter);
  }

  .nm-homepage .location-card {
    flex: unset;
    min-width: 0;
  }

  .nm-homepage .locations-indicator {
    display: none;
  }
}

.nm-homepage .location-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.nm-homepage .location-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-homepage .location-card-body {
  padding: 18px 16px;
}

.nm-homepage .location-name {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 4px;
}

.nm-homepage .location-address {
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  line-height: 1.5;
}

.nm-homepage .location-cta {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 600;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

.nm-homepage .locations-indicator {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
  padding: 0 var(--gutter);
}

.nm-homepage .ind-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ltgrey);
}

.nm-homepage .ind-dot.active {
  background: var(--black);
}

/* App (signed-off template: charcoal block, copy + phone mockup) */
.nm-homepage .app-section {
  background: var(--charcoal);
  color: var(--white);
  padding: 48px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .nm-homepage .app-section {
    gap: 48px;
    padding: 64px var(--gutter);
  }
}

@media (min-width: 1024px) {
  .nm-homepage .app-section {
    padding: 92px var(--gutter);
    grid-template-columns: minmax(0, 620px) minmax(190px, 240px);
    justify-content: space-between;
    gap: 48px;
  }
}

.nm-homepage .app-eyebrow {
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
  font-weight: 400;
  margin-bottom: 10px;
}

.nm-homepage .app-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .nm-homepage .app-title {
    font-size: clamp(1.625rem, 3vw, 2rem);
  }
}

.nm-homepage .app-title em {
  font-style: italic;
}

.nm-homepage .app-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.nm-homepage .app-perk {
  font-size: 11px;
  color: var(--silver);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-homepage .app-perk::before {
  content: "—";
  color: var(--grey);
  flex-shrink: 0;
}

.nm-homepage .app-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.nm-homepage .app-mockup {
  width: 80px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.nm-homepage .app-mockup-inner {
  width: 80px;
  aspect-ratio: 9 / 18;
  background: var(--dark);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
}

@media (min-width: 768px) {
  .nm-homepage .app-mockup {
    width: 108px;
  }

  .nm-homepage .app-mockup-inner {
    width: 108px;
    border-radius: 16px;
    padding: 14px 10px;
  }
}

@media (min-width: 1024px) {
  .nm-homepage .app-mockup {
    width: 184px;
  }

  .nm-homepage .app-mockup-inner {
    width: 184px;
    border-radius: 22px;
    padding: 20px 14px;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
  }
}

.nm-homepage .app-mockup-logo {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--white);
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .nm-homepage .app-mockup-logo {
    font-size: 21px;
  }
}

.nm-homepage .app-mockup-btn {
  width: 100%;
  background: var(--white);
  color: var(--black);
  padding: 5px;
  font-size: 7px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .nm-homepage .app-mockup-btn {
    font-size: 10px;
    padding: 8px;
  }
}

@media (min-width: 1024px) {
  .nm-homepage .app-mockup::before {
    content: "";
    position: absolute;
    inset: -72px -56px;
    background: radial-gradient(
      ellipse 78% 72% at 50% 44%,
      rgba(255, 255, 255, 0.065) 0%,
      rgba(255, 255, 255, 0.028) 38%,
      rgba(255, 255, 255, 0.008) 58%,
      rgba(255, 255, 255, 0) 78%
    );
    filter: blur(28px);
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
  }
}

.nm-homepage .app-mockup-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 0;
}

.nm-homepage .app-mockup-text {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.nm-homepage .app-mockup-text--w70 {
  width: 70%;
  margin-top: 3px;
}

.nm-homepage .app-mockup-text--w85 {
  width: 85%;
  margin-top: 3px;
}

/* Hero — desktop centering */
@media (min-width: 900px) {
  .nm-homepage .hero {
    min-height: 85vh;
    padding-bottom: 64px;
  }

  .nm-homepage .hero-eyebrow,
  .nm-homepage .hero-title,
  .nm-homepage .hero-sub,
  .nm-homepage .hero-ctas {
    max-width: var(--section-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .nm-homepage .hero-ctas {
    max-width: min(var(--section-max), 560px);
  }
}

/* Safe area (notched devices) */
@supports (padding: max(0px)) {
  .nm-homepage {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* ------------------------------------------------------------------
   Black Friday hero takeover — inc/promo-banner.php
   Envelopes photo, fanned NM voucher cards, white offer panel.
------------------------------------------------------------------ */
.nm-homepage .hero.hero--promo.bf {
  height: auto;
  min-height: calc(100svh - var(--nm-promo-h, 0px));
  justify-content: center;
  padding: 104px 0 56px;
  background: #e6e7e6;
}

.bf .bf-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), var(--bf-bg-m) center / cover no-repeat;
}

.bf .bf-inner {
  position: relative;
  width: 100%;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  justify-items: center;
}

/* Fanned voucher cards */
.bf .bf-cards {
  position: relative;
  z-index: 2;
  width: min(380px, 84vw);
  aspect-ratio: 1.45;
  margin: 0 auto -54px;
}

.bf .bf-card {
  position: absolute;
  width: 74%;
  left: 13%;
  top: 16%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.35)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bf .bf-card--1 { transform: rotate(-15deg) translate(-16%, -10%); }
.bf .bf-card--2 { transform: rotate(-5deg) translate(-4%, -4%); }
.bf .bf-card--3 {
  transform: rotate(7deg) translate(10%, 8%);
  animation: bf-float 6s ease-in-out infinite;
}

@keyframes bf-float {
  0%, 100% { transform: rotate(7deg) translate(10%, 8%); }
  50%      { transform: rotate(6deg) translate(10%, 4%); }
}

/* White offer panel */
.bf .bf-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: var(--black);
  text-align: center;
  padding: 64px 24px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.bf .bf-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(14, 14, 14, 0.14);
  pointer-events: none;
}

.bf .bf-logo {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.bf .bf-logo span {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.44em;
  color: var(--grey);
}

.bf .bf-title {
  margin: 0;
  font-weight: 400;
}

.bf .bf-title__main {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.1rem, 14vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.bf .bf-title__kicker {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  text-transform: uppercase;
}

.bf .bf-lede {
  margin: 22px 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
}

.bf .bf-sub {
  margin: 0 auto 20px;
  max-width: 28em;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.bf .bf-offers {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nm-homepage a.bf-offer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 18px;
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bf .bf-offer__val {
  font-weight: 600;
}

.bf .bf-offer__for {
  color: #666;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.bf .bf-offer__for strong {
  color: var(--black);
  font-weight: 600;
}

.bf .bf-offer__save {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.nm-homepage a.bf-offer:hover,
.nm-homepage a.bf-offer:focus-visible {
  background: var(--black);
  color: #fff;
}

.nm-homepage a.bf-offer:hover .bf-offer__for,
.nm-homepage a.bf-offer:hover .bf-offer__for strong,
.nm-homepage a.bf-offer:focus-visible .bf-offer__for,
.nm-homepage a.bf-offer:focus-visible .bf-offer__for strong {
  color: #fff;
}

.nm-homepage a.bf-offer:hover .bf-offer__save,
.nm-homepage a.bf-offer:focus-visible .bf-offer__save {
  background: #fff;
  color: var(--black);
}

/* Blow-dry courses */
.bf .bf-courses {
  margin: 0 0 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(14, 14, 14, 0.12);
}

.bf .bf-courses__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bf .bf-courses__title em {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.bf .bf-courses__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bf .bf-courses__list li {
  padding: 12px 10px;
  border: 1px solid rgba(14, 14, 14, 0.16);
}

.bf .bf-courses__list strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bf .bf-courses__list span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #555;
}

.bf .bf-courses__note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #666;
}

/* Buttons */
.bf .bf-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.nm-homepage a.bf-btn {
  display: block;
  padding: 15px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nm-homepage a.bf-btn--solid {
  background: var(--black);
  color: #fff;
}

.nm-homepage a.bf-btn--solid:hover {
  opacity: 0.85;
}

.nm-homepage a.bf-btn--ghost {
  color: var(--black);
}

.nm-homepage a.bf-btn--ghost:hover {
  background: var(--black);
  color: #fff;
}

.bf .bf-small {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 380px) {
  .nm-homepage a.bf-offer {
    padding-left: 12px;
    letter-spacing: 0.05em;
    gap: 5px;
  }

  .bf .bf-offer__save {
    padding: 7px 9px;
    letter-spacing: 0.1em;
  }
}

@media (min-width: 960px) {
  .nm-homepage .hero.hero--promo.bf {
    padding: 120px 0 72px;
  }

  .bf .bf-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), var(--bf-bg);
  }

  .bf .bf-inner {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 0 var(--pad-x);
  }

  .bf .bf-cards {
    width: 100%;
    max-width: 560px;
    margin: 0;
  }

  .bf .bf-panel {
    padding: 44px 40px 34px;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf .bf-card--3 {
    animation: none;
  }
}

/* Campaign typography — matches Neil's Black Friday graphics
   (heavy tight italic headline, clean sans body, light stacked logo). */
.bf .bf-panel {
  --bf-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--bf-display);
}

.bf .bf-panel .bf-logo {
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.02;
}

.bf .bf-panel .bf-logo span {
  margin-top: 6px;
  font-size: 8px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: #333;
}

.bf .bf-panel .bf-title__main,
.bf .bf-panel .bf-title__kicker {
  display: block;
  margin: 0;
  padding: 0;
  font-family: var(--bf-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.5rem, 11.5vw, 3.9rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.bf .bf-panel .bf-lede {
  margin: 22px 0 6px;
  font-family: var(--bf-display);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #222;
}

.bf .bf-panel .bf-sub {
  font-size: 15px;
  color: #444;
}

.bf .bf-panel a.bf-offer {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.bf .bf-panel .bf-offer__val {
  font-weight: 700;
}

.bf .bf-panel .bf-offer__for {
  font-size: 14px;
  letter-spacing: 0;
}

.bf .bf-panel .bf-offer__save {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bf .bf-panel .bf-courses__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bf .bf-panel .bf-courses__title em {
  font-family: var(--bf-display);
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  color: #444;
}

.bf .bf-panel .bf-courses__list strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.bf .bf-panel .bf-courses__list span {
  font-size: 14px;
  color: #333;
}

.bf .bf-panel .bf-courses__note,
.bf .bf-panel .bf-small {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.nm-homepage .bf .bf-panel a.bf-btn {
  font-family: var(--bf-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Mobile: slimmer panel so more of the envelopes show around it */
@media (max-width: 959px) {
  .nm-homepage .hero.hero--promo.bf {
    padding: 96px 0 72px;
  }

  .bf .bf-inner {
    padding: 0 30px;
  }

  .bf .bf-cards {
    width: min(320px, 76vw);
    margin-bottom: -46px;
  }

  .bf .bf-panel {
    max-width: 420px;
    padding: 56px 18px 22px;
  }

  .bf .bf-panel::before {
    inset: 7px;
  }

  .bf .bf-panel .bf-logo {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .bf .bf-panel .bf-title__main,
  .bf .bf-panel .bf-title__kicker {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .bf .bf-panel .bf-lede {
    margin-top: 16px;
    font-size: 1.2rem;
  }

  .bf .bf-panel .bf-sub {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .bf .bf-offers {
    gap: 6px;
    margin-bottom: 18px;
  }

  .nm-homepage .bf .bf-panel a.bf-offer {
    padding: 4px 4px 4px 14px;
    font-size: 12px;
    gap: 5px;
  }

  .bf .bf-panel .bf-offer__for {
    font-size: 13px;
  }

  .bf .bf-panel .bf-offer__save {
    padding: 7px 10px;
    font-size: 10px;
  }

  .bf .bf-courses {
    margin-bottom: 18px;
    padding-top: 16px;
  }

  .bf .bf-courses__list li {
    padding: 10px 6px;
  }

  .bf .bf-panel .bf-courses__list strong,
  .bf .bf-panel .bf-courses__list span {
    font-size: 13px;
  }

  .bf .bf-panel .bf-courses__note,
  .bf .bf-panel .bf-small {
    font-size: 12px;
  }

  .nm-homepage .bf .bf-panel a.bf-btn {
    padding: 13px 6px;
    font-size: 11px;
  }
}
