/* JOAT July 2026 expansion. Loaded after the V5 inline styles. */
:root {
  --joat-gray: #696360;
  --joat-gray-deep: #4f4a47;
  --cream-alt: #eee3d8;
}

/* Navigation additions */
.desktop-nav { gap: 22px; }
.desktop-nav a[href^="/journal"], .desktop-nav a[href^="/join-network"] { color: var(--wine); }
.amp { color: var(--wine); font-style: italic; }

/* Approved homepage hero */
.hero.hero-approved {
  min-height: auto;
  padding-top: var(--header-h);
  display: block;
  background: var(--paper);
  overflow: hidden;
}
.hero-approved .hero-intro-grid {
  min-height: min(780px, calc(100vh - var(--header-h)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  background:
    radial-gradient(circle at 1px 1px, rgba(111,22,32,.11) 1px, transparent 1.15px) 0 0 / 18px 18px,
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-approved .hero-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 8vw, 130px) clamp(28px, 7vw, 110px) clamp(56px, 7vw, 100px) max(24px, calc((100vw - 1240px) / 2));
  position: relative;
  z-index: 2;
}
.hero-approved .hero-statement h1 {
  margin: 0;
  max-width: 780px;
  color: var(--joat-gray-deep);
  font-family: var(--serif);
  font-size: clamp(58px, 7.3vw, 112px);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.047em;
}
.hero-approved .hero-statement h1 em {
  display: block;
  margin-top: .12em;
  color: var(--wine);
  font-style: normal;
  letter-spacing: -.035em;
}
.hero-approved .hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(244,238,231,.45), rgba(218,216,213,.7));
}
.hero-approved .hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 8% 0;
  border: 1px solid rgba(111,22,32,.12);
  border-radius: 52px 52px 0 0;
  background: rgba(255,255,255,.32);
}
.hero-approved .hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  height: min(760px, calc(100vh - var(--header-h)));
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}
.hero-approved .hero-dark {
  background: linear-gradient(135deg, #17100f 0%, #211513 66%, #2c1113 100%);
  color: var(--paper);
  padding: clamp(58px, 7vw, 100px) 0;
}
.hero-approved .hero-dark-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: end;
}
.hero-approved .hero-dark h2 {
  margin: 0;
  max-width: 860px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.1vw, 92px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.04em;
}
.hero-approved .hero-dark-copy p {
  margin: 0;
  color: rgba(255,247,238,.76);
  font-size: 16px;
  line-height: 1.82;
}
.hero-approved .hero-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}
.hero-approved .hero-path {
  min-height: 132px;
  text-align: left;
}
.hero-approved .hero-path span { color: #d9b6ad; }

/* Examples library */
.example-rail { min-height: 390px; }
.example-card.theme-a { background: var(--paper); color: var(--ink); }
.example-card.theme-b { background: var(--cream-alt); color: var(--ink); }
.example-card.theme-c { background: var(--wine); color: var(--paper); border-color: rgba(255,247,238,.14); }
.example-card.theme-c > span { color: #e9cfbe; }
.example-card.theme-c p { color: rgba(255,247,238,.8); }
.examples-actions { display: flex; justify-content: center; margin-top: 30px; }
.examples-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.examples-library {
  margin-top: 42px;
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.examples-library[hidden] { display: none; }
.examples-library-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.examples-library-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
}
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.examples-grid .example-card {
  min-height: 360px;
  width: auto;
  flex: none;
}
.examples-collapse { display: flex; justify-content: center; margin-top: 30px; }

/* Homepage Journal teaser */
.journal-teaser {
  padding: 90px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.journal-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
}
.journal-teaser h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 7vw, 96px);
  line-height: .94;
  font-weight: 500;
  letter-spacing: -.04em;
}
.journal-teaser p:not(.kicker) { color: rgba(33,26,24,.7); font-size: 18px; line-height: 1.75; }
.journal-teaser-image { min-height: 440px; border-radius: 30px; overflow: hidden; }
.journal-teaser-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }

/* Legacy resource-card styles retained for layout compatibility */
.private-resource-intro { margin-top: 74px; max-width: 860px; }
.private-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.private-resource {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}
.private-resource:nth-child(3n+2) { background: var(--cream-alt); }
.private-resource:nth-child(3n) { background: var(--wine); color: var(--paper); }
.private-resource h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.private-resource p { margin: 0; line-height: 1.65; color: rgba(33,26,24,.68); }
.private-resource:nth-child(3n) p { color: rgba(255,247,238,.76); }
.private-resource-note { margin-top: 18px; color: rgba(33,26,24,.65); line-height: 1.7; }

/* AI chat conversation UI */
.chat-modal { max-width: 1050px; }
.chat-layout { grid-template-columns: 250px minmax(0, 1fr); }
.chat-answer-wrap { display: flex; flex-direction: column; min-height: 440px; }
.chat-messages { flex: 1 1 auto; overflow-y: auto; padding: 4px 6px 20px 0; display: flex; flex-direction: column; gap: 13px; }
.chat-message { max-width: 86%; padding: 14px 16px; border-radius: 19px; line-height: 1.58; white-space: pre-wrap; }
.chat-message.user { margin-left: auto; background: var(--wine); color: var(--paper); border-bottom-right-radius: 5px; }
.chat-message.assistant { margin-right: auto; background: var(--cream); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-message.error { background: #f5e2df; border-color: rgba(111,22,32,.22); }
.chat-message.typing { color: rgba(33,26,24,.55); font-style: italic; }
.chat-action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.chat-action-row .button { min-height: 40px; padding-inline: 16px; }
.chat-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.chat-tools button { border: 0; background: transparent; color: rgba(33,26,24,.6); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.chat-note { font-size: 11px; line-height: 1.5; color: rgba(33,26,24,.54); }
.chat-input textarea { width: 100%; min-height: 52px; max-height: 150px; resize: vertical; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.chat-input .button { min-height: 52px; }
.faq-button { text-align: left; }

/* Contact and network links */
.contact-column a, .email-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.network-join-action { margin-top: 30px; }

@media (max-width: 980px) {
  .hero-approved .hero-intro-grid { grid-template-columns: 1fr; }
  .hero-approved .hero-statement { padding: 72px 28px 12px; }
  .hero-approved .hero-statement h1 { max-width: 800px; }
  .hero-approved .hero-visual { min-height: 620px; margin-top: -34px; justify-content: flex-end; }
  .hero-approved .hero-visual::before { inset: 12% 4% 0 12%; }
  .hero-approved .hero-visual img { width: min(92%, 700px); height: 650px; object-position: right bottom; }
  .hero-approved .hero-dark-inner { grid-template-columns: 1fr; }
  .examples-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .journal-teaser-grid { grid-template-columns: 1fr; }
  .journal-teaser-image { min-height: 380px; }
  .private-resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .hero-approved .hero-statement { padding-top: 56px; }
  .hero-approved .hero-statement h1 { font-size: clamp(55px, 13.7vw, 78px); }
  .hero-approved .hero-visual { min-height: 570px; }
  .hero-approved .hero-visual img { height: 590px; width: min(98%, 620px); }
  .hero-approved .hero-dark { padding: 58px 0 64px; }
  .hero-approved .hero-paths { grid-template-columns: 1fr; }
  .hero-approved .hero-path { min-height: 105px; }
  .examples-library-head { align-items: flex-start; flex-direction: column; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-questions { display: flex; overflow-x: auto; max-height: none; }
  .chat-questions .faq-button { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  .hero-approved .hero-statement { padding: 46px 20px 0; }
  .hero-approved .hero-statement h1 { font-size: clamp(50px, 14vw, 66px); line-height: .91; }
  .hero-approved .hero-visual { min-height: 485px; margin-top: -8px; }
  .hero-approved .hero-visual::before { inset: 9% 0 0 7%; border-radius: 34px 0 0; }
  .hero-approved .hero-visual img { width: 112%; max-width: none; height: 510px; transform: translateX(7%); }
  .hero-approved .hero-dark h2 { font-size: clamp(48px, 13vw, 64px); }
  .hero-approved .hero-dark-copy p { font-size: 15px; }
  .examples-grid { grid-template-columns: 1fr; }
  .examples-grid .example-card { min-height: 325px; }
  .journal-teaser { padding: 70px 0; }
  .journal-teaser-image { min-height: 330px; }
  .private-resource-grid { grid-template-columns: 1fr; }
  .chat-message { max-width: 94%; }
  .chat-input { grid-template-columns: 1fr; }
}

/* Final mobile hero crop: use the full approved photograph rather than leaving a narrow empty column. */
@media (max-width: 620px) {
  .hero-approved .hero-visual { min-height: 0; margin-top: -2px; display: block; background: #d9d9d8; }
  .hero-approved .hero-visual::before { display: none; }
  .hero-approved .hero-visual img { display: block; width: 100%; height: auto; max-width: none; transform: none; object-fit: contain; }
}

.service-amp{color:var(--wine);font-style:italic;font-weight:500;}

/* V7 navigation, Journal, Members Only, and mobile form refinements */
.desktop-nav { gap: 16px; }
.desktop-nav-chat,
.section-nav-chat {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  padding: 0;
}
.desktop-nav-chat { position: relative; }
.desktop-nav-chat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--wine);
  transition: right .2s ease;
}
.desktop-nav-chat:hover::after,
.desktop-nav-chat:focus-visible::after { right: 0; }

/* The service ampersands return to the main text color. */
.service-amp { color: var(--ink) !important; font-style: normal; }

/* Refined persistent desktop navigation. */
.section-nav {
  background: rgba(251, 248, 243, .97);
  border-bottom: 1px solid rgba(70, 39, 34, .14);
  box-shadow: 0 12px 30px rgba(45, 25, 21, .07);
}
.section-nav-track {
  width: min(1280px, calc(100% - 42px));
  min-height: 50px;
  justify-content: center;
}
.section-nav a,
.section-nav button {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 15px;
  color: rgba(43, 28, 24, .76);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.section-nav button { border: 0; background: transparent; cursor: pointer; }
.section-nav a::after,
.section-nav button::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 8px;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.section-nav a:hover,
.section-nav a.active,
.section-nav button:hover,
.section-nav button:focus-visible {
  color: var(--wine);
  background: rgba(111, 22, 32, .035);
}
.section-nav a.active::after,
.section-nav a:hover::after,
.section-nav button:hover::after,
.section-nav button:focus-visible::after { transform: scaleX(1); }

/* Mobile bottom navigation trigger and drawer. */
.mobile-bottom-nav,
.mobile-section-drawer { display: none; }
@media (max-width: 820px) {
  .section-nav { display: none !important; }
  .mobile-bottom-nav {
    position: fixed;
    left: 16px;
    bottom: 14px;
    z-index: 975;
    display: block;
  }
  .mobile-bottom-trigger {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 19px;
    border: 1px solid rgba(61, 28, 25, .16);
    border-radius: 999px;
    background: rgba(251, 248, 243, .96);
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(34, 19, 17, .18);
    backdrop-filter: blur(14px);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .mobile-bottom-trigger i {
    position: relative;
    width: 17px;
    height: 12px;
  }
  .mobile-bottom-trigger i::before,
  .mobile-bottom-trigger i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 17px;
    height: 1px;
    background: var(--wine);
  }
  .mobile-bottom-trigger i::before { top: 2px; }
  .mobile-bottom-trigger i::after { bottom: 2px; }
  .mobile-section-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
    visibility: hidden;
    pointer-events: none;
  }
  .mobile-section-drawer.open {
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(22, 11, 10, .68);
    opacity: 0;
    transition: opacity .24s ease;
  }
  .mobile-section-drawer.open .mobile-drawer-backdrop { opacity: 1; }
  .mobile-drawer-panel {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: min(720px, calc(100vh - 20px));
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 32px 90px rgba(20, 8, 7, .42);
    transform: translateY(108%);
    transition: transform .28s ease;
  }
  .mobile-section-drawer.open .mobile-drawer-panel { transform: translateY(0); }
  .mobile-drawer-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-drawer-head .kicker { margin-bottom: 8px; }
  .mobile-drawer-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    line-height: .95;
  }
  .mobile-drawer-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
  }
  .mobile-drawer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 20px 0;
  }
  .mobile-drawer-links a,
  .mobile-drawer-links button {
    min-width: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--cream);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
  }
  .mobile-drawer-links a:nth-child(5),
  .mobile-drawer-links a:nth-child(6),
  .mobile-drawer-links button:nth-child(7) { background: var(--wine); color: var(--paper); }
  .mobile-drawer-inquiry { width: 100%; }
  body.mobile-drawer-open { overflow: hidden; }
  .ask-tab { right: 14px; bottom: 76px !important; }
  .scroll-top { right: 16px; bottom: 134px !important; }
}

/* Homepage Journal teaser, solid and editorial rather than dotted. */
.journal-teaser-editorial {
  padding: clamp(76px, 9vw, 126px) 0;
  background: #eee9e4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.journal-teaser-stage {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}
.journal-teaser-text-only { grid-template-columns: 1fr; }
.journal-teaser-text-only .journal-teaser-copy {
  min-height: 560px;
  max-width: none;
  padding: clamp(54px,8vw,108px);
}
.journal-teaser-editorial .journal-teaser-image {
  min-height: 720px;
  border-radius: 30px;
  overflow: hidden;
  background: #efefed;
}
.journal-teaser-editorial .journal-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.journal-teaser-copy {
  position: relative;
  z-index: 2;
  margin-left: -72px;
  padding: clamp(42px, 6vw, 76px);
  border-radius: 28px;
  background: var(--wine);
  color: var(--paper);
  box-shadow: 0 30px 80px rgba(55, 13, 17, .24);
}
.journal-teaser-copy .kicker { color: #e8c6bd; }
.journal-teaser-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.4vw, 92px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.04em;
}
.journal-teaser-copy p:not(.kicker) {
  color: rgba(255, 247, 238, .78);
  font-size: 16px;
  line-height: 1.75;
}

/* Four-piece checkerboard for And So Much More. */
.work-collage {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(220px, 1fr)) !important;
  gap: 5px;
}
.work-collage img,
.work-collage img:first-child {
  grid-row: auto !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.work-collage img:nth-child(1),
.work-collage img:nth-child(4) { object-position: center; }
.work-collage img:nth-child(2),
.work-collage img:nth-child(3) { object-fit: contain; background: var(--paper); padding: 4px; }

/* Stronger network invitation. */
.network-join-banner {
  margin-top: 30px;
  padding: clamp(30px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border-radius: 26px;
  background: var(--wine);
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(71, 13, 22, .18);
}
.network-join-banner .kicker { color: #e8c6bd; }
.network-join-banner h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: .95;
}
.network-join-banner p:not(.kicker) { max-width: 720px; color: rgba(255,247,238,.76); line-height: 1.7; }

/* Homepage Members Only teaser. */
.members-home { background: var(--espresso); color: var(--paper); }
.members-home-grid {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}
.members-home-copy .kicker { color: #e8c6bd; }
.members-home-copy .section-title { color: var(--paper); }
.members-home-copy .lede { color: rgba(255,247,238,.74); }
.members-home-copy .button.ghost { color: var(--paper); border-color: rgba(255,247,238,.42); }
.members-home-image { min-height: 600px; overflow: hidden; border-radius: 28px; }
.members-home-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }

@media (max-width: 980px) {
  .journal-teaser-stage,
  .members-home-grid,
  .network-join-banner { grid-template-columns: 1fr; }
  .journal-teaser-copy { margin: -84px 20px 0; }
  .network-join-banner .button { justify-self: start; }
}
@media (max-width: 620px) {
  .journal-teaser-editorial { padding: 58px 0 72px; }
  .journal-teaser-stage { min-height: 0; display: block; }
  .journal-teaser-editorial .journal-teaser-image { min-height: 480px; border-radius: 24px; }
  .journal-teaser-copy { margin: -52px 12px 0; padding: 32px 26px; border-radius: 24px; }
  .journal-teaser-copy h2 { font-size: clamp(46px, 13vw, 61px); }
  .work-collage { grid-template-rows: repeat(2, minmax(170px, 1fr)) !important; }
  .network-join-banner { padding: 30px 24px; }
  .members-home-image { min-height: 450px; }
}

/* V8 contrast, mobile hero, and persistent section bar refinements. */
.hero-approved .hero-intro-grid {
  background: var(--paper);
}

/* Text contrast follows the card background, never the card position. */
.example-card.theme-a,
.example-card.theme-b,
.example-card.theme-a h3,
.example-card.theme-b h3,
.example-card.theme-a p,
.example-card.theme-b p {
  color: var(--ink) !important;
}
.example-card.theme-a > span,
.example-card.theme-b > span {
  color: var(--wine) !important;
}
.example-card.theme-c,
.example-card.theme-c h3,
.example-card.theme-c p {
  color: var(--paper) !important;
}
.example-card.theme-c > span {
  color: #e9cfbe !important;
}

.mobile-section-bar { display: none; }

@media (max-width: 820px) {
  body { padding-bottom: 72px; }
  .mobile-bottom-nav,
  .mobile-section-drawer { display: none !important; }
  .mobile-section-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    display: block;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(61, 28, 25, .14);
    background: rgba(251, 248, 243, .97);
    box-shadow: 0 -14px 34px rgba(34, 19, 17, .12);
    backdrop-filter: blur(16px);
  }
  .mobile-section-track {
    display: flex;
    gap: 7px;
    width: 100%;
    overflow-x: auto;
    padding: 0 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .mobile-section-track::-webkit-scrollbar { display: none; }
  .mobile-section-track a,
  .mobile-section-track button {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid rgba(61, 28, 25, .14);
    border-radius: 999px;
    background: var(--paper);
    color: rgba(33, 26, 24, .76);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    white-space: nowrap;
    scroll-snap-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .mobile-section-track button {
    font-family: inherit;
    cursor: pointer;
  }
  .mobile-section-track button:hover,
  .mobile-section-track button:focus-visible {
    background: var(--wine);
    color: var(--paper);
    border-color: var(--wine);
  }
  .mobile-section-track a.active,
  .mobile-section-track a[aria-current="location"] {
    background: var(--wine);
    color: var(--paper);
    border-color: var(--wine);
  }
  .ask-tab { right: 14px; bottom: 78px !important; }
  .scroll-top { right: 16px; bottom: 136px !important; }
}

@media (max-width: 620px) {
  .hero-approved .hero-intro-grid {
    position: relative;
    display: block;
    min-height: 690px;
    overflow: hidden;
    background: var(--paper);
  }
  .hero-approved .hero-statement {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 66%;
    padding: 50px 0 0 20px;
  }
  .hero-approved .hero-statement h1 {
    max-width: 270px;
    color: var(--joat-gray-deep);
    font-size: clamp(43px, 12.6vw, 56px);
    line-height: .91;
    letter-spacing: -.048em;
  }
  .hero-approved .hero-statement h1 em {
    margin-top: .13em;
    color: var(--wine);
    font-size: .98em;
    letter-spacing: -.035em;
  }
  .hero-approved .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: var(--paper);
  }
  .hero-approved .hero-visual::before { display: none; }
  .hero-approved .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, var(--paper) 0%, rgba(251,248,243,.98) 30%, rgba(251,248,243,.76) 46%, rgba(251,248,243,.12) 66%, transparent 78%);
  }
  .hero-approved .hero-visual img {
    position: absolute;
    z-index: 1;
    right: -35%;
    bottom: 0;
    display: block;
    width: 128%;
    height: auto;
    max-width: none;
    transform: none;
    object-fit: contain;
  }
  .hero-approved .hero-dark { position: relative; z-index: 3; }
}

@media (max-width: 620px) {
  .hero-approved .hero-statement { width: 59%; }
  .hero-approved .hero-statement h1 { max-width: 230px; font-size: clamp(41px, 11.8vw, 53px); }
  .hero-approved .hero-visual::after {
    background: linear-gradient(90deg, var(--paper) 0%, rgba(251,248,243,.99) 31%, rgba(251,248,243,.9) 45%, rgba(251,248,243,.32) 59%, transparent 72%);
  }
  .hero-approved .hero-visual img { right: -47%; }
}
#examples { scroll-margin-top: calc(var(--header-h) + 22px); }
.form-submit-status{min-height:22px;margin:14px 0;color:inherit;font-size:13px;line-height:1.55}.form-submit-status[data-kind="error"]{color:#9c2430}.form-submit-status[data-kind="success"]{color:#27613d}.file-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding:10px 12px;border:1px solid rgba(56,31,28,.18);border-radius:10px;font-size:12px;line-height:1.4}.file-selection[hidden]{display:none}.file-selection button{min-height:36px;padding:0 10px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;cursor:pointer;font-size:10px;font-weight:700;text-transform:uppercase}.application-review{margin:0 0 28px;padding:22px;border:1px solid rgba(56,31,28,.16);border-radius:18px;background:rgba(255,255,255,.45)}.application-review h4{margin:0 0 14px;font-family:var(--serif);font-size:28px}.application-review dl{display:grid;gap:10px}.application-review dl div{display:grid;grid-template-columns:110px 1fr;gap:12px}.application-review dt{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.application-review dd{margin:0;overflow-wrap:anywhere}

/* V19.1 persistent close control for the expanded examples library */
.examples-floating-collapse {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1450;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,247,238,.28);
  border-radius: 999px;
  background: var(--wine);
  color: var(--paper);
  box-shadow: 0 18px 48px rgba(40,12,14,.28);
  cursor: pointer;
  font: 700 10px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.examples-floating-collapse[hidden] { display: none; }
.examples-floating-collapse:hover,
.examples-floating-collapse:focus-visible { transform: translateY(-2px); }

@media (max-width: 620px) {
  .examples-floating-collapse {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 0 16px;
  }
}

/* Keep the persistent examples close control centered and clear of global controls. */
.examples-floating-collapse {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.examples-floating-collapse:hover,
.examples-floating-collapse:focus-visible { transform: translate(-50%, -2px); }
@media (max-width: 620px) {
  .examples-floating-collapse { left: 50%; right: auto; }
}

@media (max-width: 620px) {
  .examples-floating-collapse {
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px));
  }
}


/* V19.2 homepage refinements */
.home-founder-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
}
.home-founder-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-founder-copy h2 {
  max-width: 760px;
}
.home-founder-aside {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.home-founder-photo {
  width: min(100%, 360px);
  margin: 0;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255,247,238,.08);
  border: 1px solid rgba(255,247,238,.14);
}
.home-founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.work-collage {
  align-items: stretch;
}
.work-collage img,
.work-collage img:first-child,
.work-collage img:nth-child(1),
.work-collage img:nth-child(2),
.work-collage img:nth-child(3),
.work-collage img:nth-child(4) {
  object-fit: contain !important;
  object-position: center center !important;
  background: var(--paper);
  padding: 4px;
}
.members-home-grid-text {
  grid-template-columns: 1fr;
  max-width: 900px;
}
.digital-card.saint-card img {
  object-fit: contain;
  background: #f6f1ea;
}
@media (max-width: 900px) {
  .home-founder-card {
    grid-template-columns: 1fr;
  }
  .home-founder-aside {
    justify-items: start;
  }
  .home-founder-photo {
    width: min(100%, 320px);
  }
}


/* V19.3 conversion and mobile-layout refinements */
.hero-dark-actions { margin-top: 24px; }
.hero-dark-actions .button { min-width: 150px; }
.friction-phone-break figcaption p { margin: 0; }
.friction-actions { margin-top: 28px; }
.friction-actions .button { font-family: var(--sans); }
.overview-friction {
  max-width: 820px !important;
  font-size: clamp(42px, 5.2vw, 72px) !important;
  line-height: .98 !important;
}
.home-founder-photo {
  width: min(100%, 390px);
}
.home-founder-photo img {
  object-fit: contain;
}
@media (max-width: 620px) {
  .overview-friction { font-size: clamp(38px, 10.8vw, 52px) !important; }
  .hero-dark-actions .button,
  .friction-actions .button { width: 100%; }
  .home-founder-card { padding: 36px 24px; }
  .home-founder-photo { width: min(100%, 270px); }
}


/* V20 polish updates */
.home-founder-card {
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, .54fr);
  align-items: end;
}
.home-founder-actions {
  margin-top: 6px;
}
.home-founder-aside {
  justify-items: end;
  align-self: end;
}
.home-founder-photo.home-founder-photo-sticker {
  width: min(100%, 300px);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
  transform: rotate(-3deg);
}
.home-founder-photo.home-founder-photo-sticker img {
  width: 100%;
  border-radius: 28px;
  border: 10px solid rgba(251,248,243,.98);
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
  background: #f5f0eb;
}
.and-more-card .work-collage {
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 8px !important;
  padding: 10px;
  background: #f0e7de;
}
.and-more-card .work-collage img:first-child {
  grid-row: auto !important;
}
.and-more-card .work-collage img {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}
@media (max-width: 900px) {
  .home-founder-card { grid-template-columns: 1fr; }
  .home-founder-aside { justify-items: end; }
}
@media (max-width: 620px) {
  .home-founder-actions .button { width: auto !important; }
  .home-founder-photo.home-founder-photo-sticker { width: min(100%, 220px); transform: rotate(-2deg); }
  .home-founder-aside { margin-top: 14px; }
}


/* V21 final-pass polish */
.home-founder-photo.home-founder-photo-sticker {
  width: min(100%, 320px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.20));
  transform: none;
}
.home-founder-photo.home-founder-photo-sticker img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.digital-card.saint-card {
  align-items: stretch;
}
.saint-gallery {
  display: flex;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.saint-gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 17px;
  scroll-snap-align: start;
  background: #f6f1ea;
}
.digital-card .gallery-hint {
  margin: 12px 0 2px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(68,30,25,.7);
}
.digital-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.digital-card-link:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .home-founder-photo.home-founder-photo-sticker { width: min(100%, 210px); }
  .saint-gallery img { height: 240px; }
}

/* V37 custom-work, upload preview, and Memory & Legacy Books additions */
.and-more-text-card {
  display:flex;
  align-items:flex-end;
  min-height:440px;
  padding:clamp(34px,5vw,64px);
  background:linear-gradient(145deg,#68151d 0%,#3b1016 100%) !important;
  color:var(--paper);
}
.and-more-copy { max-width:760px; }
.and-more-copy .kicker { margin-bottom:16px; color:#e8c6bd; }
.and-more-copy h3 {
  margin:0;
  font-family:var(--serif);
  font-size:clamp(52px,6vw,90px);
  font-weight:500;
  line-height:.94;
  letter-spacing:-.04em;
}
.and-more-copy p:not(.kicker) {
  max-width:680px;
  margin:22px 0 28px;
  color:rgba(255,247,238,.78);
  font-size:15px;
  line-height:1.75;
}
.and-more-copy .button { width:max-content; }

.custom-work-showcase {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
  margin-top:30px;
  padding-bottom:clamp(46px,7vw,88px);
}
.custom-work-card {
  position:relative;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(38,24,21,.10);
  border-radius:24px;
  background:#fffaf5;
  box-shadow:0 18px 38px rgba(38,24,21,.08);
}
.custom-work-image {
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:4 / 5;
  padding:14px;
  overflow:hidden;
  background:#f0e9e2;
}
.custom-work-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.custom-work-card figcaption { padding:18px 19px 22px; }
.custom-work-card figcaption strong,
.custom-work-card figcaption span { display:block; }
.custom-work-card figcaption strong {
  color:#261815;
  font-family:var(--serif);
  font-size:25px;
  font-weight:500;
  line-height:1.05;
}
.custom-work-card figcaption span {
  margin-top:8px;
  color:rgba(38,24,21,.66);
  font-size:11px;
  line-height:1.55;
}
.original-concept-badge {
  position:absolute;
  left:14px;
  bottom:14px;
  display:inline-flex;
  padding:9px 12px;
  border-radius:999px;
  background:#68151d;
  color:#fff7ee;
  font-family:var(--sans);
  font-size:8px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  box-shadow:0 10px 24px rgba(65,10,18,.20);
}

.memory-legacy {
  margin-top:0;
  padding:clamp(70px,9vw,124px) 0;
  border-top:1px solid rgba(38,24,21,.12);
  border-bottom:1px solid rgba(38,24,21,.12);
  background:#f7f1ea;
}
.memory-legacy-grid {
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);
  gap:clamp(42px,7vw,96px);
  align-items:center;
}
.memory-legacy-copy .section-title {
  max-width:720px;
  color:#172842;
}
.memory-deck {
  margin:20px 0 24px;
  color:#68151d;
  font-family:var(--serif);
  font-size:clamp(30px,3.4vw,50px);
  line-height:1.06;
}
.memory-legacy-copy > p:not(.kicker):not(.memory-deck):not(.memory-closing) {
  max-width:720px;
  color:rgba(38,24,21,.76);
  font-size:14px;
  line-height:1.76;
}
.memory-purpose {
  margin:24px 0;
  padding:20px 22px;
  border-left:4px solid #68151d;
  background:rgba(255,255,255,.64);
  color:#261815 !important;
}
.memory-closing {
  margin:26px 0 20px;
  color:#172842;
  font-family:var(--serif);
  font-size:clamp(26px,3vw,42px);
  line-height:1.08;
}
.memory-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:22px 0 28px;
}
.memory-tags span {
  padding:9px 12px;
  border:1px solid rgba(23,40,66,.18);
  border-radius:999px;
  background:#fffdf9;
  color:#172842;
  font-size:9px;
  font-weight:700;
  letter-spacing:.05em;
}
.memory-legacy-visual figure {
  margin:0;
  padding:12px;
  border-radius:26px;
  background:#fffdf9;
  box-shadow:0 24px 60px rgba(38,24,21,.13);
}
.memory-legacy-visual img {
  display:block;
  width:100%;
  height:auto;
  border-radius:17px;
}
.memory-legacy-visual > p {
  margin:18px 8px 0;
  color:#172842;
  font-family:var(--serif);
  font-size:clamp(22px,2.5vw,34px);
  line-height:1.12;
}

.upload-preview-note {
  margin:11px 0 0;
  padding:12px 14px;
  border-left:3px solid #68151d;
  border-radius:0 10px 10px 0;
  background:rgba(104,21,29,.07);
  color:#68151d;
  font-size:10px;
  line-height:1.55;
}
.upload-preview-note strong { font-weight:800; }

@media (max-width:1050px) {
  .custom-work-showcase { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .memory-legacy-grid { grid-template-columns:1fr; }
  .memory-legacy-visual { max-width:900px; }
}
@media (max-width:760px) {
  .custom-work-showcase { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .custom-work-card figcaption strong { font-size:21px; }
  .and-more-text-card { min-height:440px !important; }
}
@media (max-width:520px) {
  .custom-work-showcase { grid-template-columns:1fr; }
  .custom-work-image { aspect-ratio:4 / 5; }
  .and-more-copy h3 { font-size:54px; }
  .and-more-copy .button { width:100%; justify-content:center; text-align:center; }
  .memory-legacy { padding:68px 0; }
  .memory-deck { font-size:36px; }
}

/* V38 compact custom-work scroll and mobile visibility repair */
.custom-work-showcase {
  display:flex !important;
  align-items:stretch;
  gap:18px;
  width:100%;
  max-width:none;
  margin:0;
  padding:30px max(22px, calc((100vw - 1180px) / 2)) clamp(52px,7vw,82px);
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:max(22px, calc((100vw - 1180px) / 2));
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  touch-action:pan-x;
}
.custom-work-showcase::-webkit-scrollbar { display:none; }
.custom-work-showcase .custom-work-card {
  flex:0 0 clamp(280px,25vw,350px);
  display:flex;
  flex-direction:column;
  min-width:0;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
}
.custom-work-showcase .custom-work-card figcaption {
  display:flex;
  flex:1;
  flex-direction:column;
}
.custom-work-showcase .custom-work-card figcaption span { flex:1; }
.custom-work-collage {
  display:grid !important;
  grid-template-columns:1.15fr .85fr;
  grid-template-rows:1fr 1fr;
  gap:7px;
  padding:10px !important;
  background:#e9e0d8;
}
.custom-work-collage img {
  width:100% !important;
  height:100% !important;
  min-width:0;
  min-height:0;
  padding:7px;
  border-radius:14px;
  background:#fffaf5;
  object-fit:contain !important;
}
.custom-work-collage img:first-child { grid-row:1 / 3; }
.memory-work-image { background:#f7f1ea; }
.memory-work-image img { object-fit:contain !important; }
.custom-work-action {
  align-self:flex-start;
  margin-top:17px;
  padding:11px 14px;
  border:1px solid #68151d;
  border-radius:999px;
  background:#68151d;
  color:#fff7ee;
  font:800 8px/1 var(--sans);
  letter-spacing:.09em;
  text-transform:uppercase;
  cursor:pointer;
}
@media (max-width:760px) {
  .custom-work-showcase {
    gap:14px;
    padding:22px 16px 54px;
    scroll-padding-inline:16px;
  }
  .custom-work-showcase .custom-work-card {
    flex-basis:min(82vw,340px);
  }
  .custom-work-showcase .custom-work-image {
    aspect-ratio:4 / 5;
  }
}
@media (max-width:420px) {
  .custom-work-showcase .custom-work-card { flex-basis:86vw; }
}
/* Keep compact-scroll cards naturally sized instead of stretching shorter captions. */
.custom-work-showcase { align-items:flex-start; }
.custom-work-showcase .custom-work-card figcaption { display:block; flex:none; }
.custom-work-showcase .custom-work-card figcaption span { flex:none; }


/* V39 unified custom-work swipe and Journal memory-book feature */
.custom-work-intro-card {
  flex-basis:clamp(300px,28vw,390px) !important;
  min-height:520px;
  border-color:#68151d;
  background:#68151d;
  color:#fff7ee;
}
.custom-work-intro-card figcaption {
  display:flex !important;
  min-height:520px;
  flex-direction:column;
  justify-content:flex-end;
  padding:clamp(28px,4vw,44px) !important;
}
.custom-work-intro-card .kicker { color:#e8c6bd; }
.custom-work-intro-card figcaption strong {
  color:#fff7ee;
  font-size:clamp(44px,4.4vw,64px);
}
.custom-work-intro-card figcaption span {
  margin:18px 0 24px;
  color:rgba(255,247,238,.80);
  font-size:13px;
  line-height:1.7;
}
.custom-work-intro-card .button { width:max-content; margin-top:0; }
.custom-work-showcase .custom-work-image img[src*="suite"] { object-fit:contain; }
.memory-book-story .magazine-hero-image img { object-fit:contain; background:#f7f1ea; }
@media (max-width:760px) {
  .custom-work-intro-card { min-height:480px; }
  .custom-work-intro-card figcaption { min-height:480px; }
  .custom-work-intro-card .button { width:100%; justify-content:center; text-align:center; }
}
