/* V9 mobile-first homepage editorial opening, friction image, and Client Notes. */
.hero-v9 {
  padding-top: var(--header-h, 88px);
  background: #fbf8f3;
  overflow: hidden;
}
.hero-v9-shell { padding-top: clamp(42px, 7vw, 84px); }
.hero-v9 .hero-statement { padding: 0; }
.hero-v9 .hero-statement h1 {
  max-width: 1180px;
  margin: 0;
  color: #68615d;
  font-family: var(--serif);
  font-size: clamp(68px, 8.7vw, 132px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.055em;
}
.hero-v9 .hero-statement h1 span { display: block; }
.hero-v9 .hero-statement h1 em {
  display: block;
  margin-top: .08em;
  color: var(--wine);
  font-style: normal;
  letter-spacing: -.045em;
}
.hero-v9-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 66px);
  padding-bottom: clamp(50px, 7vw, 90px);
}
.hero-v9 .hero-visual {
  min-height: 690px;
  overflow: hidden;
  border-radius: 30px;
  background: #dedddb;
}
.hero-v9 .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 27%;
}
.hero-action-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid rgba(58, 27, 24, .14);
  border-radius: 30px;
  background: #efe7de;
}
.hero-action-panel .kicker { margin-bottom: 12px; color: var(--wine); }
.hero-action-card {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 3px 14px;
  align-items: center;
  padding: 21px 20px;
  border: 1px solid rgba(58, 27, 24, .14);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero-action-card:hover { transform: translateY(-3px); border-color: var(--wine); }
.hero-action-card span { grid-row: 1 / 3; color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.hero-action-card strong { font-family: var(--serif); font-size: clamp(25px, 2.4vw, 35px); font-weight: 500; line-height: 1; }
.hero-action-card small { color: rgba(33,26,24,.62); font-size: 11px; line-height: 1.45; }
.hero-v9 .hero-dark { padding: clamp(70px, 8vw, 110px) 0; background: #191110; color: var(--paper); }
.hero-v9 .hero-dark-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 100px); align-items: end; }
.hero-v9 .hero-dark h2 { margin: 0; font-family: var(--serif); font-size: clamp(62px, 7vw, 104px); font-weight: 500; line-height: .91; letter-spacing: -.045em; }
.hero-v9 .hero-dark-copy p { margin: 0; color: rgba(255,247,238,.72); font-size: 17px; line-height: 1.8; }

.friction-phone-break {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 0;
  margin: 48px 0 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--espresso);
}
.friction-phone-break img { width: 100%; height: 520px; object-fit: cover; object-position: center 32%; }
.friction-phone-break figcaption { padding: clamp(30px, 5vw, 56px); color: rgba(255,247,238,.75); font-family: var(--serif); font-size: clamp(25px, 3vw, 39px); line-height: 1.18; }
.friction-phone-break figcaption span { display: block; margin-bottom: 18px; color: #e8c6bd; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.client-notes { margin-top: 78px; padding: clamp(34px, 6vw, 66px); border-radius: 30px; background: #201413; color: var(--paper); }
.client-notes[hidden] { display: none !important; }
.client-notes-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.client-notes-head h2 { max-width: 820px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 78px); font-weight: 500; line-height: .95; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-controls button { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: var(--paper); cursor: pointer; }
.client-notes-track { display: flex; gap: 16px; overflow-x: auto; margin-top: 36px; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.client-notes-track::-webkit-scrollbar { display: none; }
.client-note-card { flex: 0 0 min(520px, 82vw); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-radius: 24px; background: var(--paper); color: var(--ink); scroll-snap-align: start; }
.client-note-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(29px, 3vw, 42px); line-height: 1.1; }
.client-note-card footer { margin-top: 28px; padding: 0; color: var(--wine); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero-v9 .hero-statement h1 { font-size: clamp(62px, 11vw, 92px); }
  .hero-v9-stage { grid-template-columns: 1.05fr .95fr; }
  .hero-v9 .hero-visual { min-height: 610px; }
  .hero-action-panel { padding: 25px 20px; }
  .hero-action-card { padding: 17px 14px; grid-template-columns: 30px minmax(0,1fr); }
  .hero-action-card small { font-size: 10px; }
  .hero-v9 .hero-dark-inner, .friction-phone-break { grid-template-columns: 1fr; }
  .friction-phone-break img { height: 500px; }
}

@media (max-width: 620px) {
  .hero-v9 { padding-top: var(--header-h, 76px); }
  .hero-v9-shell { width: min(100% - 28px, 1200px); padding-top: 38px; }
  .hero-v9 .hero-statement h1 { font-size: clamp(48px, 13.6vw, 62px); line-height: .9; }
  .hero-v9-stage { grid-template-columns: minmax(0, 1.28fr) minmax(132px, .72fr); gap: 10px; margin-top: 28px; padding-bottom: 44px; }
  .hero-v9 .hero-visual { min-height: 530px; border-radius: 24px; }
  .hero-v9 .hero-visual img { object-position: 54% 24%; }
  .hero-action-panel { gap: 8px; padding: 14px 10px; border-radius: 22px; }
  .hero-action-panel .kicker { margin: 0 4px 4px; font-size: 8px; letter-spacing: .15em; }
  .hero-action-card { grid-template-columns: 1fr; gap: 5px; min-height: 118px; padding: 14px 11px; border-radius: 17px; }
  .hero-action-card span { grid-row: auto; font-size: 8px; }
  .hero-action-card strong { font-size: 22px; line-height: .96; }
  .hero-action-card small { font-size: 9px; line-height: 1.35; }
  .hero-v9 .hero-dark { padding: 58px 0 70px; }
  .hero-v9 .hero-dark-inner { gap: 28px; }
  .hero-v9 .hero-dark h2 { font-size: clamp(47px, 13vw, 62px); }
  .hero-v9 .hero-dark-copy p { font-size: 15px; }
  .friction-phone-break { margin-top: 36px; border-radius: 22px; }
  .friction-phone-break img { height: 380px; }
  .friction-phone-break figcaption { padding: 28px 24px 34px; font-size: 28px; }
  .client-notes { margin-left: -2px; margin-right: -2px; padding: 34px 20px; border-radius: 24px; overflow: hidden; }
  .client-notes-head { align-items: start; }
  .client-notes-head h2 { font-size: 48px; }
  .client-notes-track { margin-right: -20px; }
  .client-note-card { flex-basis: 84vw; min-height: 270px; padding: 28px 24px; }
}

/* V9 final overrides: remove inherited V8 absolute mobile hero behavior. */
.hero-v9 .hero-statement {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  padding: 0 !important;
}
.hero-v9 .hero-visual {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  margin: 0 !important;
}
.hero-v9 .hero-visual::before,
.hero-v9 .hero-visual::after { display: none !important; }
.hero-v9 .hero-visual img {
  position: static !important;
  inset: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: cover !important;
}

@media (max-width: 620px) {
  .hero-v9-shell {
    width: min(100% - 28px, 1200px);
    padding-top: 54px;
  }
  .hero-v9 .hero-statement h1 {
    max-width: none !important;
    font-size: clamp(44px, 12.8vw, 56px) !important;
    line-height: .92 !important;
  }
  .hero-v9-stage {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 136px !important;
    gap: 10px !important;
    align-items: stretch;
    min-height: 0 !important;
    margin-top: 26px !important;
    padding-bottom: 44px;
    overflow: visible !important;
  }
  .hero-v9 .hero-visual {
    grid-column: 1;
    min-height: 500px !important;
    border-radius: 22px !important;
    background: #dedddb !important;
    overflow: hidden !important;
  }
  .hero-v9 .hero-visual img {
    object-position: 56% 24% !important;
  }
  .hero-action-panel {
    grid-column: 2;
    min-width: 0;
    gap: 8px;
    padding: 13px 9px;
    border-radius: 22px;
  }
  .hero-action-panel .kicker {
    margin: 0 3px 2px;
    font-size: 7px;
    line-height: 1.4;
  }
  .hero-action-card {
    min-width: 0;
    min-height: 118px;
    padding: 13px 10px;
  }
  .hero-action-card strong {
    font-size: clamp(18px, 5.3vw, 22px);
    overflow-wrap: anywhere;
  }
  .hero-action-card small {
    font-size: 8px;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .hero-v9-stage { grid-template-columns: minmax(0, 1fr) 124px !important; }
  .hero-action-card { min-height: 112px; padding: 12px 8px; }
  .hero-action-card strong { font-size: 18px; }
}

/* Keep Ask JOAT separate from the swipeable bottom section bar on phones. */
@media (max-width: 820px) {
  .ask-tab {
    top: 56% !important;
    right: 0 !important;
    bottom: auto !important;
    min-width: 0 !important;
    min-height: 116px;
    padding: 17px 10px !important;
    border-radius: 18px 0 0 18px !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%);
  }
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
