/*
 * EIGHT HOME MARKETING UX RC1
 * Local CSS-only candidate / 2026-11-02
 * Scope: public home page only. No generated text, no asset substitution.
 */

body.home {
  --e-mkt-white: #fff;
  --e-mkt-cream: #f7f2ec;
  --e-mkt-cream-soft: #fbf8f4;
  --e-mkt-ink: #2e2a2a;
  --e-mkt-rose: #b8315c;
  --e-mkt-pink: #e66a8e;
  --e-mkt-line: rgba(184, 49, 92, .2);
  --e-mkt-shadow: 0 22px 56px rgba(70, 53, 43, .11);
  --e-mkt-width: 1320px;
  color: var(--e-mkt-ink);
  background: var(--e-mkt-white);
}

body.home :where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--e-mkt-rose);
  outline-offset: 4px;
}

/* Header: preserve labels/order and clarify the existing controls. */
body.home .header_inner {
  width: min(calc(100% - 48px), var(--e-mkt-width));
  margin-inline: auto;
}

body.home .header .link,
body.home .header .btn_text {
  letter-spacing: .015em;
}

body.home #top.eight-top-r3:is(#top) {
  overflow: visible;
  background: var(--e-mkt-white);
}

body.home #top.eight-top-r3:is(#top) :where(
  .e249_bringin_inner,
  #top-hero .mv_inner,
  #purpose .e2_section_inner,
  #purpose .e217_works__inner,
  #signage .v21_inner,
  #xtool .e2_xtool_feature__inner,
  #consultation-hub .e235_hub_inner,
  #total-store-produce .ts_total__inner,
  #spec-11-news .e241_news_inner,
  #spec-12-blog .e241_journal_inner,
  #access .access_inner
) {
  width: min(calc(100% - 64px), var(--e-mkt-width));
  margin-inline: auto;
}

/* Hero: clearer editorial hierarchy without changing its content or imagery. */
body.home #top.eight-top-r3:is(#top) #bring-in-fast {
  padding-block: clamp(72px, 8vw, 118px);
  background:
    linear-gradient(90deg, rgba(230, 106, 142, .12) 0 7px, transparent 7px),
    linear-gradient(135deg, var(--e-mkt-cream-soft), var(--e-mkt-cream));
}

body.home #top.eight-top-r3:is(#top) .e249_bringin_inner {
  gap: clamp(46px, 6vw, 98px);
  padding: clamp(44px, 5vw, 78px);
  border: 1px solid rgba(184, 49, 92, .11);
  border-radius: 34px 8px 34px 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--e-mkt-shadow);
}

body.home #top.eight-top-r3:is(#top) .e249_bringin_heading h1 {
  max-width: 10.5em;
  color: var(--e-mkt-ink);
  font-size: clamp(52px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

body.home #top.eight-top-r3:is(#top) .e261_bringin_visual {
  overflow: hidden;
  min-height: 620px;
  border-radius: 32px 7px 32px 7px;
  box-shadow: 24px 28px 0 rgba(230, 106, 142, .14);
}

body.home #top.eight-top-r3:is(#top) .e249_bringin_actions {
  gap: 12px;
}

body.home #top.eight-top-r3:is(#top) .e249_bringin_action {
  min-height: 52px;
  border-radius: 12px;
}

body.home #top.eight-top-r3:is(#top) .e249_bringin_action--reservation {
  border-color: var(--e-mkt-rose);
  background: var(--e-mkt-rose);
}

/* Store sales: a distinct white chapter following the cream Hero. */
body.home #top.eight-top-r3:is(#top) #top-hero {
  padding-block: clamp(74px, 8vw, 118px);
  background: var(--e-mkt-white);
}

body.home #top.eight-top-r3:is(#top) #top-hero .mv_inner {
  padding: clamp(38px, 5vw, 72px);
  border: 1px solid var(--e-mkt-line);
  border-radius: 8px 34px 8px 34px;
  background: var(--e-mkt-cream-soft);
  box-shadow: 0 18px 48px rgba(70, 53, 43, .08);
}

body.home #top.eight-top-r3:is(#top) #top-hero :where(.e229_hero_price_primary, .mv_title) {
  color: var(--e-mkt-ink);
}

/* Purpose: large photographic surfaces and consistent, clickable cards. */
body.home #top.eight-top-r3:is(#top) #purpose {
  padding-block: clamp(88px, 9vw, 138px);
  background: var(--e-mkt-cream);
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_section_inner > :where(.e253_purpose_badge, #e2-purpose-title, .e2_handnote, .e2_section_lead) {
  max-width: 880px;
}

body.home #top.eight-top-r3:is(#top) #purpose #e2-purpose-title {
  margin-bottom: 18px;
  color: var(--e-mkt-ink);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.05em;
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_section_lead {
  margin-bottom: clamp(42px, 6vw, 72px);
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_grid {
  gap: clamp(22px, 3vw, 38px);
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card {
  min-height: 100%;
  padding: 0 0 32px;
  overflow: hidden;
  border: 1px solid rgba(46, 42, 42, .09);
  border-top: 6px solid var(--e-mkt-pink);
  border-radius: 0 0 22px 22px;
  background: var(--e-mkt-white);
  box-shadow: 0 16px 36px rgba(70, 53, 43, .08);
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card > :not(.e2_purpose_card_image):not(.e2_purpose_card_visuals) {
  margin-inline: 28px;
}

body.home #top.eight-top-r3:is(#top) #purpose :where(.e2_purpose_card_image, .e2_purpose_card_visuals) {
  width: 100%;
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card_image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_number {
  margin-top: 26px;
  color: var(--e-mkt-rose);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .13em;
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_title {
  margin-top: 12px;
  color: var(--e-mkt-ink);
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 800;
  line-height: 1.3;
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_text {
  margin-top: 14px;
  color: #534d4d;
  font-size: 14px;
  line-height: 1.8;
}

/* Purpose cards: make the existing link arrow unmistakably actionable. */
body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card .e2_purpose_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 68px;
  min-width: 68px;
  height: 48px;
  margin: auto 28px 0 auto;
  padding: 0;
  border: 2px solid var(--e-mkt-rose);
  border-radius: 999px;
  color: var(--e-mkt-white);
  background: var(--e-mkt-rose);
  box-shadow: 0 9px 20px rgba(184, 49, 92, .24);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card:is(:hover, :focus-visible) .e2_purpose_arrow {
  color: var(--e-mkt-white);
  background: #8f2849;
  box-shadow: 0 11px 24px rgba(143, 40, 73, .3);
  transform: translateX(5px);
}

@media (max-width: 767px) {
  body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card .e2_purpose_arrow {
    width: 64px;
    min-width: 64px;
    height: 46px;
    margin-right: 20px;
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card .e2_purpose_arrow {
    transition: none;
  }
}

/* Works: preserve all nine real examples and make the gallery the dark accent. */
body.home #top.eight-top-r3:is(#top) #purpose #production-works {
  margin-top: clamp(86px, 10vw, 148px);
  padding-block: clamp(74px, 8vw, 116px);
  border-radius: 0;
  background: #17191d;
  color: var(--e-mkt-white);
  box-shadow: none;
}

body.home #top.eight-top-r3:is(#top) #purpose #production-works :where(h2, p, .e217_works__note) {
  color: var(--e-mkt-white);
}

body.home #top.eight-top-r3:is(#top) #purpose #production-works .e217_works__grid {
  gap: clamp(10px, 1.5vw, 18px);
}

body.home #top.eight-top-r3:is(#top) #purpose #production-works .e217_works__item {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  background: #25282d;
}

body.home #top.eight-top-r3:is(#top) #purpose #production-works .e217_works__button {
  min-height: 54px;
  border-color: var(--e-mkt-rose);
  background: var(--e-mkt-rose);
}

/* Long-page chapters: alternating surfaces make position and category clear. */
body.home #top.eight-top-r3:is(#top) .top-same-day,
body.home #top.eight-top-r3:is(#top) #signage,
body.home #top.eight-top-r3:is(#top) #total-store-produce,
body.home #top.eight-top-r3:is(#top) #spec-11-news,
body.home #top.eight-top-r3:is(#top) #access {
  background: var(--e-mkt-cream-soft);
}

body.home #top.eight-top-r3:is(#top) :where(#gift, .e216_online_shop, #xtool, #consultation-hub, #spec-12-blog) {
  background: var(--e-mkt-white);
}

body.home #top.eight-top-r3:is(#top) :where(#signage, #xtool, #consultation-hub, #total-store-produce, #spec-11-news, #spec-12-blog, #access) {
  padding-block: clamp(82px, 9vw, 132px);
}

body.home #top.eight-top-r3:is(#top) :where(
  #signage .v21_heading,
  #xtool .e2_xtool_feature__request,
  #consultation-hub h2,
  #total-store-produce .ts5_intro h2,
  #spec-11-news h2,
  #spec-12-blog h2,
  #access h2
) {
  font-weight: 800;
  letter-spacing: -.045em;
}

body.home #top.eight-top-r3:is(#top) #signage .e231_signage_role,
body.home #top.eight-top-r3:is(#top) #total-store-produce .ts5_routes > li {
  border: 1px solid rgba(46, 42, 42, .09);
  border-top: 5px solid var(--e-mkt-pink);
  border-radius: 0 0 18px 18px;
  background: var(--e-mkt-white);
  box-shadow: 0 14px 34px rgba(70, 53, 43, .07);
}

body.home #top.eight-top-r3:is(#top) #xtool .e2_xtool_feature__inner {
  padding: clamp(38px, 5vw, 70px);
  border: 1px solid var(--e-mkt-line);
  border-radius: 32px 8px 32px 8px;
  background: var(--e-mkt-cream-soft);
}

body.home #top.eight-top-r3:is(#top) #xtool :where(h2, h3, p, li) {
  color: var(--e-mkt-ink);
}

body.home #top.eight-top-r3:is(#top) #consultation-hub .e235_hub_inner {
  overflow: hidden;
  border-radius: 30px 7px 30px 7px;
  background: #17191d;
  box-shadow: var(--e-mkt-shadow);
}

body.home #top.eight-top-r3:is(#top) #consultation-hub :where(h2, p, .e235_hub_kicker) {
  color: var(--e-mkt-white);
}

body.home #top.eight-top-r3:is(#top) #consultation-hub .e235_hub_customer {
  background: var(--e-mkt-rose);
  color: var(--e-mkt-white);
}

/* News, journal and access: editorial rhythm with readable rows. */
body.home #top.eight-top-r3:is(#top) .e241_section_header {
  padding-bottom: 24px;
  border-bottom: 2px solid var(--e-mkt-ink);
}

body.home #top.eight-top-r3:is(#top) .e241_kicker {
  color: var(--e-mkt-rose);
}

body.home #top.eight-top-r3:is(#top) .e241_news_row {
  min-height: 76px;
  border-bottom-color: rgba(46, 42, 42, .14);
}

body.home #top.eight-top-r3:is(#top) #access .access_inner {
  padding: clamp(36px, 5vw, 70px);
  border: 1px solid rgba(46, 42, 42, .09);
  border-radius: 8px 34px 8px 34px;
  background: var(--e-mkt-white);
  box-shadow: var(--e-mkt-shadow);
}

body.home #top.eight-top-r3:is(#top) .e28_featured_services {
  margin-block: 0;
  padding-block: clamp(82px, 9vw, 132px);
  background: var(--e-mkt-cream);
}

body.home #top.eight-top-r3:is(#top) #eight-profile-link-home {
  width: min(calc(100% - 64px), var(--e-mkt-width));
  margin: clamp(82px, 9vw, 132px) auto;
}

/* Fixed actions and footer remain functionally unchanged. */
body.home .mobile_fixed_action,
body.home .mobile_phone_floating,
body.home .mobile_visit_floating {
  min-height: 44px;
}

@media (max-width: 1024px) {
  body.home .header_inner,
  body.home #top.eight-top-r3:is(#top) :where(
    .e249_bringin_inner,
    #top-hero .mv_inner,
    #purpose .e2_section_inner,
    #purpose .e217_works__inner,
    #signage .v21_inner,
    #xtool .e2_xtool_feature__inner,
    #consultation-hub .e235_hub_inner,
    #total-store-produce .ts_total__inner,
    #spec-11-news .e241_news_inner,
    #spec-12-blog .e241_journal_inner,
    #access .access_inner
  ) {
    width: min(calc(100% - 40px), var(--e-mkt-width));
  }

  body.home #top.eight-top-r3:is(#top) .e249_bringin_inner {
    padding: 38px;
  }

  body.home #top.eight-top-r3:is(#top) .e261_bringin_visual {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  body.home .header_inner,
  body.home #top.eight-top-r3:is(#top) :where(
    .e249_bringin_inner,
    #top-hero .mv_inner,
    #purpose .e2_section_inner,
    #purpose .e217_works__inner,
    #signage .v21_inner,
    #xtool .e2_xtool_feature__inner,
    #consultation-hub .e235_hub_inner,
    #total-store-produce .ts_total__inner,
    #spec-11-news .e241_news_inner,
    #spec-12-blog .e241_journal_inner,
    #access .access_inner
  ) {
    width: calc(100% - 32px);
  }

  body.home #top.eight-top-r3:is(#top) :where(#bring-in-fast, #top-hero, #purpose, #signage, #xtool, #consultation-hub, #total-store-produce, #spec-11-news, #spec-12-blog, #access) {
    padding-block: 58px;
  }

  body.home #top.eight-top-r3:is(#top) .e249_bringin_inner,
  body.home #top.eight-top-r3:is(#top) #top-hero .mv_inner,
  body.home #top.eight-top-r3:is(#top) #xtool .e2_xtool_feature__inner,
  body.home #top.eight-top-r3:is(#top) #access .access_inner {
    padding: 26px 20px;
    border-radius: 22px 5px 22px 5px;
  }

  body.home #top.eight-top-r3:is(#top) .e249_bringin_heading h1 {
    max-width: none;
    font-size: clamp(35px, 10.4vw, 46px);
    line-height: 1.08;
  }

  body.home #top.eight-top-r3:is(#top) .e261_bringin_visual {
    min-height: 0;
    border-radius: 20px 4px 20px 4px;
    box-shadow: 12px 14px 0 rgba(230, 106, 142, .13);
  }

  body.home #top.eight-top-r3:is(#top) .e249_bringin_actions {
    grid-template-columns: 1fr;
  }

  body.home #top.eight-top-r3:is(#top) #purpose #e2-purpose-title {
    font-size: clamp(37px, 11vw, 50px);
  }

  body.home #top.eight-top-r3:is(#top) .e28_featured_services {
    padding-block: 58px;
  }

  body.home #top.eight-top-r3:is(#top) #eight-profile-link-home {
    width: calc(100% - 32px);
    margin-block: 58px;
  }

  body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card {
    padding-bottom: 25px;
    border-radius: 0 0 16px 16px;
  }

  body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card > :not(.e2_purpose_card_image):not(.e2_purpose_card_visuals) {
    margin-inline: 20px;
  }

  body.home #top.eight-top-r3:is(#top) #purpose .e2_purpose_card_image {
    aspect-ratio: 4 / 3;
  }

  body.home #top.eight-top-r3:is(#top) #purpose #production-works {
    margin-top: 64px;
    padding-block: 58px;
  }

  body.home #top.eight-top-r3:is(#top) #purpose #production-works .e217_works__inner {
    width: calc(100% - 24px);
  }

  body.home #top.eight-top-r3:is(#top) #purpose #production-works .e217_works__grid {
    gap: 7px;
  }

  body.home #top.eight-top-r3:is(#top) #consultation-hub .e235_hub_inner {
    border-radius: 22px 5px 22px 5px;
  }

  body.home #top.eight-top-r3:is(#top) .e241_news_row {
    min-height: 0;
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home *,
  body.home *::before,
  body.home *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}

/* ========================================================================== */
/* RC1.1 Hero-only visual QA hotfix / 2026-11-02                              */
/* RC1 remains frozen. No content, assets, behavior, or non-Hero rules change. */
/* ========================================================================== */

/* The support row must be allowed to shrink inside the Hero grid. */
body.home #top.eight-top-r3:is(#top) #bring-in-fast :where(
  .e249_bringin_support,
  .e249_bringin_note
) {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
}

body.home #top.eight-top-r3:is(#top) #bring-in-fast .e249_bringin_note {
  overflow-wrap: anywhere;
}

/* RC1 measured 8–9px later than baseline at the two wide viewports. */
@media (min-width: 1025px) {
  body.home #top.eight-top-r3:is(#top) #bring-in-fast {
    padding-block: clamp(62px, calc(8vw - 10px), 108px);
  }
}

/* 1024px remains a two-column layout. Remove only RC1's added box inset and
   excess row gap, and let the existing 3:2 image ratio determine its height. */
@media (min-width: 901px) and (max-width: 1024px) {
  body.home #top.eight-top-r3:is(#top) #bring-in-fast {
    padding-block: clamp(60px, 6.9vw, 71px);
  }

  body.home #top.eight-top-r3:is(#top) #bring-in-fast .e249_bringin_inner {
    column-gap: 30px;
    row-gap: 24px;
    padding: 0;
  }

  body.home #top.eight-top-r3:is(#top) #bring-in-fast .e261_bringin_visual {
    min-height: 0;
  }

  body.home #top.eight-top-r3:is(#top) #bring-in-fast .e249_bringin_note {
    display: block;
  }

  body.home #top.eight-top-r3:is(#top) #bring-in-fast .e249_bringin_note span {
    display: block;
    margin-bottom: 4px;
  }
}

/* At 768px the production DOM is already single-column. RC1's 46px row gap
   accounts for the measured CTA regression, so retain the design and restore
   the established compact rhythm only. */
@media (min-width: 768px) and (max-width: 900px) {
  body.home #top.eight-top-r3:is(#top) #bring-in-fast .e249_bringin_inner {
    gap: 28px;
  }
}

/* Mobile: preserve order, imagery, typography, and 44px targets while
   removing RC1's excess vertical spacing. */
@media (max-width: 767px) {
  body.home #top.eight-top-r3:is(#top) #bring-in-fast {
    padding-block: 44px;
  }

  body.home #top.eight-top-r3:is(#top) #bring-in-fast .e249_bringin_inner {
    gap: 22px;
    padding: 24px 18px;
  }
}
