/* Homepage layout and typography; photo surfaces live in home-restaurant-scene.css. */
body.home {
  --veranda-gold: #d5bd87;
  --veranda-gold-light: #f0dfbb;
  --editorial-walnut: #3a2118;
  --editorial-walnut-deep: #28150f;
  --editorial-olive: #a6aa84;
  --editorial-cream: #f5eedc;
  --editorial-ink: #271c13;
  /* Fabric textures are retired; do not restore them. */
  --editorial-fabric: none;
  --editorial-wood: url('../images/branding/veranda-walnut-wood-v1.png');
  background: var(--editorial-walnut-deep) var(--editorial-wood) center/1024px repeat;
}

body.home .site-header,
body.home .site-footer {
  background: linear-gradient(rgba(50, 27, 18, .28), rgba(50, 27, 18, .42)), var(--editorial-wood) center/1024px repeat;
  color: var(--editorial-cream);
  border-radius: 0;
  box-shadow: none;
}

body.home .site-footer { position: relative; }

/* Small forged screw heads make the wood feel like fixed planks. */
body.home .site-header::before,
body.home .site-header::after,
body.home .site-footer::before,
body.home .site-footer::after {
  content: '';
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  background: url('../images/branding/veranda-rustic-screw-v2.png') center/contain no-repeat;
  pointer-events: none;
}

body.home .site-header::before,
body.home .site-footer::before { left: 10px; }
body.home .site-header::after,
body.home .site-footer::after { right: 10px; }

body.home .site-header { border-bottom: 1px solid rgba(245, 238, 220, .18) !important; }
body.home .site-header .primary-nav a,
body.home .site-header .language-switcher a,
body.home .site-header .menu-toggle { color: var(--editorial-cream); }

body.home .brand-logo {
  filter: brightness(0) saturate(100%) invert(63%) sepia(12%) saturate(975%) hue-rotate(31deg) brightness(93%) contrast(87%);
}

/* Footer content is short, so it stays compact rather than creating an empty panel. */
body.home .site-footer { padding: 20px 0 8px; }
body.home .site-footer .footer-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
body.home .site-footer .footer-brand { font-size: 25px; }
body.home .site-footer h2 { margin: 0 0 4px; font-size: 17px; }
body.home .site-footer p { margin: 0 0 3px; line-height: 1.3; }
body.home .site-footer .footer-bottom {
  margin-top: 8px;
  padding-top: 6px;
}

/* Legacy control base; final Liquid Glass rules below take precedence. */
body.home .header-actions a,
body.home .header-actions .header-whatsapp,
body.home .header-actions .header-delivery,
body.home .header-actions .header-addresses {
  background: var(--editorial-olive) var(--editorial-fabric) center/420px repeat !important;
  border-color: rgba(245, 238, 220, .56) !important;
  color: var(--editorial-ink) !important;
}

body.home .header-actions a:hover,
body.home .header-actions .header-whatsapp:hover,
body.home .header-actions .header-delivery:hover,
body.home .header-actions .header-addresses:hover {
  background: var(--editorial-walnut) var(--editorial-wood) center/420px repeat !important;
  color: var(--editorial-olive) !important;
}

.home-v2 {
  color: var(--editorial-ink);
  background: transparent;
  padding: 0;
}

/* Shared full-width homepage content alignment. */
.home-v2 > .shell,
.home-v2 .shell {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
}

/* Base section geometry; the continuous photo surface overrides backgrounds. */
.home-v2 > section,
.home-v2-hero,
.home-story,
.home-food,
.home-network,
.home-network__copy {
  background-color: var(--editorial-olive);
  background-image: var(--editorial-fabric);
  /* Legacy background sizing retained without a texture source. */
  background-position: left top;
  background-size: 512px 512px;
  background-repeat: repeat;
  box-shadow: none;
  border: 0;
  color: var(--editorial-ink);
}

.home-v2 > section {
  margin-bottom: 0;
  border-bottom: 0;
}

.home-v2 h1,
.home-v2 h2 {
  color: var(--editorial-ink);
  font-weight: 600;
}

.home-v2 .home-kicker,
.home-network__copy .home-kicker {
  color: #563a20;
  font-weight: 800;
}

.home-v2-hero .home-v2-hero__lead,
.home-story__body,
.home-food__heading > div:last-child,
.home-network__copy p:not(.home-kicker) {
  color: #2b1d13;
  font-weight: 600;
  text-shadow: 0 1px rgba(245, 238, 220, .32);
}

.home-v2 .home-v2-hero__signature,
.home-v2 .text-link,
.home-v2 .home-story__body,
.home-v2 .home-food__heading > div:last-child,
.home-v2 .home-network__copy p:not(.home-kicker) {
  color: #2b1d13;
  font-weight: 700;
}

/* Legacy media treatment; final video rules below take precedence. */
.home-v2-hero__media::after {
  background: linear-gradient(90deg, rgba(146, 152, 110, .08), rgba(146, 152, 110, 0));
}

.home-v2 .button--solid,
.home-v2 .button--light,
.home-v2 .button--line {
  background: var(--editorial-walnut) var(--editorial-wood) center/640px repeat;
  border-color: rgba(44, 23, 15, .88);
  color: var(--editorial-cream);
}

.home-v2 .button--solid:hover,
.home-v2 .button--light:hover,
.home-v2 .button--line:hover {
  background: var(--editorial-olive) var(--editorial-fabric) center/420px repeat;
  border-color: rgba(245, 238, 220, .56);
  color: var(--editorial-ink);
}

.home-story__mark { color: rgba(86, 58, 32, .14); }
.home-food .food-shot { background: var(--editorial-walnut-deep); }
.home-food .text-link,
.home-network .text-link--light { color: var(--editorial-ink); }

.home-v2 > section,
.home-story,
.home-food,
.home-network,
.food-shot,
.food-shot img,
.home-network__image,
.home-network__image img,
.home-network__copy { border-radius: 0; }

@media (max-width: 899px) {
  body.home .site-header { border-radius: 0; }
  .home-v2-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .home-v2-hero__inner {
    order: 1;
    padding: 42px 22px 30px;
  }
  .home-v2-hero__media {
    position: relative;
    inset: auto;
    order: 2;
    min-height: 68vw;
    max-height: 480px;
  }
  .home-v2-hero__media::after {
    background: transparent;
  }
  body.home .site-footer { padding: 18px 0 8px; }
  body.home .site-footer .footer-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.home .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  body.home .site-footer .footer-bottom { margin-top: 8px; }
  body.home .site-header::before,
  body.home .site-footer::before { left: 6px; }
  body.home .site-header::after,
  body.home .site-footer::after { right: 6px; }
  body.home .site-header::before,
  body.home .site-header::after,
  body.home .site-footer::before,
  body.home .site-footer::after { width: 30px; height: 30px; }
}

/* Home hero refresh: one full-bleed video and a transparent navigation layer. */
body.home .site-header {
  z-index: 100;
  background: transparent;
  border: 0 !important;
  color: #fff;
}
body.home .site-header::before,
body.home .site-header::after { display: none; }
body.home .site-header .primary-nav a,
body.home .site-header .language-switcher a,
body.home .site-header .menu-toggle { color: rgba(255, 255, 255, .92); }
body.home .site-header .primary-nav a:hover,
body.home .site-header .language-switcher a:hover { color: #fff; }
body.home .brand-logo { filter: brightness(0) invert(1); }
body.home .header-actions a,
body.home .header-actions .header-whatsapp,
body.home .header-actions .header-delivery,
body.home .header-actions .header-addresses {
  background: transparent !important;
  border-color: rgba(255, 255, 255, .7) !important;
  color: #fff !important;
}
body.home .header-actions a:hover,
body.home .header-actions .header-whatsapp:hover,
body.home .header-actions .header-delivery:hover,
body.home .header-actions .header-addresses:hover {
  background: rgba(255, 255, 255, .93) !important;
  color: #21140f !important;
}
body.home .home-v2-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #18120e;
}
body.home .home-v2-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  max-height: none;
  background-image: var(--desktop-hero-fallback);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
body.home .home-v2-hero__media .hero-video--desktop,
body.home .home-v2-hero__media .hero-video--mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}
body.home .home-v2-hero__media .hero-video.is-playing { opacity: 1; }
body.home .home-v2-hero__media .hero-video--desktop { display: block; }
body.home .home-v2-hero__media .hero-video--mobile { display: none; }
/* The hero media is shown without a synthetic dark or brown colour overlay. */
body.home .home-v2-hero::after { display: none; }
body.home .home-v2-hero__media::after { display: none; }
@media (min-width: 900px) {
  body.home .home-v2-hero__media::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 12, 8, .58) 0%, rgba(9, 12, 8, .38) 30%, rgba(9, 12, 8, .16) 52%, rgba(9, 12, 8, 0) 76%);
    pointer-events: none;
  }
}
body.home .home-v2-hero__inner {
  position: relative;
  padding-top: 150px;
  padding-bottom: clamp(54px, 7vw, 110px);
}
body.home .home-v2-hero h1,
body.home .home-v2-hero .home-kicker,
body.home .home-v2-hero .home-v2-hero__lead,
body.home .home-v2-hero .home-v2-hero__signature { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
body.home .home-v2-hero h1 { max-width: 780px; font-weight: 500; }
body.home .home-v2-hero .home-kicker { font-weight: 700; }
body.home .home-v2-hero .home-v2-hero__lead { max-width: 540px; font-weight: 500; }
body.home .home-v2-hero__text {
  position: relative;
  top: 4px;
  transform: translateY(calc(clamp(-40px, -3.6vh, -20px) + 8px));
}
body.home .home-v2-hero .home-kicker {
  transform: translateY(10px);
}
body.home .home-v2-hero__lead-paragraph {
  display: block;
}
body.home .home-v2-hero__lead-paragraph + .home-v2-hero__lead-paragraph {
  margin-top: 0;
}
body.home .home-v2-hero__lead-paragraph:last-child {
  padding-bottom: .36em;
}
body.home .home-v2-hero__lead-keep {
  white-space: nowrap;
}
body.home .home-v2-hero .button--solid,
body.home .home-v2-hero .button--line {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
  backdrop-filter: blur(7px);
}
body.home .home-v2-hero .button--solid:hover,
body.home .home-v2-hero .button--line:hover {
  background: rgba(255, 255, 255, .92);
  border-color: #fff;
  color: #21140f;
}
.home-actions-cluster { display: contents; }
.hero-scroll-cue { display: none; }
@media (max-width: 899px) {
  /* Stable mobile viewport: svh is the safe minimum, dvh follows browser UI. */
  body.home .home-v2-hero {
    min-height: 100svh;
    height: 100dvh;
    display: grid;
  }
  body.home .home-v2-hero__inner {
    order: initial;
    align-self: stretch;
    height: 100%;
    display: block;
    padding: clamp(112px, 13svh, 132px) clamp(20px, 5vw, 40px) clamp(32px, 5svh, 52px);
  }
  body.home .home-v2-hero__media { position: absolute; inset: 0; order: initial; min-height: 0; }
  body.home .home-v2-hero__media { background-image: var(--mobile-hero-fallback); }
  body.home .home-v2-hero__media .hero-video--desktop { display: none; }
  body.home .home-v2-hero__media .hero-video--mobile { display: block; }
  body.home .home-v2-hero__media::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 250px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .80) 36%,
      rgba(0, 0, 0, .34) 60%,
      rgba(0, 0, 0, .10) 82%,
      rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
  }
  body.home .home-v2-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 0;
    height: clamp(80px, 10svh, 100px);
    background: linear-gradient(
      180deg,
      rgba(16, 17, 15, 0) 0%,
      rgba(16, 17, 15, .18) 40%,
      rgba(16, 17, 15, .58) 75%,
      rgba(16, 17, 15, .90) 100%
    );
    pointer-events: none;
  }
  body.home .home-v2-hero__copy {
    width: 100%;
    min-width: 0;
  }
  body.home .home-v2-hero__text {
    position: relative;
    transform: translateY(calc(8px - clamp(0px, calc(13svh - 112px), 20px)));
  }
  body.home .home-v2-hero .home-kicker {
    position: absolute;
    bottom: calc(100% + 8px);
    display: block;
    margin: 0;
    transform: translateY(4px);
  }
  body.home .home-v2-hero h1 {
    width: min(100%, 760px);
    max-width: 760px;
    font-size: clamp(42px, 7.2vw, 58px);
    line-height: .89;
    transform: none;
  }
  body.home .home-v2-hero .home-v2-hero__lead {
    width: min(100%, 34rem);
    max-width: 34rem;
    margin-top: clamp(10px, 1.5svh, 16px);
    color: rgba(255, 255, 255, 0.93) !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.38;
    transform: none;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.65),
      0 1px 2px rgba(0, 0, 0, 0.55) !important;
  }
  body.home .home-v2-hero__lead-line {
    display: inline;
    white-space: normal;
    letter-spacing: -.02em;
  }
  body.home .home-v2-hero__signature {
    display: none;
  }
  body.home .home-actions-cluster {
    position: absolute;
    right: clamp(20px, 5vw, 40px);
    bottom: 9px;
    bottom: calc(9px + env(safe-area-inset-bottom));
    left: clamp(20px, 5vw, 40px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    gap: clamp(14px, 2svh, 22px);
  }
  body.home .home-v2-hero .home-actions {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: 100%;
    margin: 0;
    gap: 10px;
    transform: none;
  }
  body.home .hero-scroll-cue {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
    align-self: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    display: grid;
    grid-template-rows: 16px 20px;
    place-content: center;
    justify-items: center;
    gap: 0;
    color: var(--hero-ivory, #eadcc5);
    text-decoration: none;
    background: radial-gradient(ellipse at center, rgba(234, 220, 197, .09), rgba(234, 220, 197, 0) 70%);
    border: 0;
    border-radius: 999px;
    transform: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  body.home .hero-scroll-cue__chevron {
    display: block;
    opacity: .38;
    filter: drop-shadow(0 1px 1px rgba(255, 250, 240, .24)) drop-shadow(0 3px 7px rgba(234, 220, 197, .28));
    animation: hero-scroll-cue-flow 2.8s cubic-bezier(.42, 0, .3, 1) infinite;
    will-change: opacity, transform;
  }
  body.home .hero-scroll-cue__chevron--upper {
    width: 21px;
    animation-delay: 0s;
  }
  body.home .hero-scroll-cue__chevron--lower {
    width: 27px;
    animation-delay: .36s;
  }
  body.home .hero-scroll-cue__chevron svg { display: block; width: 100%; height: auto; overflow: visible; }
  body.home .hero-scroll-cue__edge {
    fill: none;
    stroke: rgba(234, 220, 197, .34);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.home .hero-scroll-cue__light {
    fill: none;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.home .hero-scroll-cue:hover .hero-scroll-cue__chevron,
  body.home .hero-scroll-cue:focus-visible .hero-scroll-cue__chevron { opacity: 1; }
  body.home .hero-scroll-cue:focus-visible {
    outline: 1px solid rgba(234, 220, 197, .78);
    outline-offset: 2px;
  }
  body.home .header-actions { display: none; }
}

@keyframes hero-scroll-cue-flow {
  0%, 72%, 100% { opacity: .34; transform: translateY(-1px); }
  28% { opacity: .98; transform: translateY(1px); }
  48% { opacity: .66; transform: translateY(2px); }
}

/* The video hero uses warm ivory rather than stark white. */
body.home {
  --hero-ivory: #eadcc5;
}
body.home .site-header { color: var(--hero-ivory); }
body.home .site-header .primary-nav a,
body.home .site-header .language-switcher a,
body.home .site-header .menu-toggle { color: var(--hero-ivory); }
body.home .site-header .primary-nav a:hover,
body.home .site-header .language-switcher a:hover { color: #f5ead8; }
body.home .brand-logo {
  filter: brightness(0) saturate(100%) invert(89%) sepia(20%) saturate(430%) hue-rotate(338deg) brightness(97%) contrast(91%);
}
body.home .header-actions a,
body.home .header-actions .header-whatsapp,
body.home .header-actions .header-delivery,
body.home .header-actions .header-addresses {
  color: var(--hero-ivory) !important;
  border-color: rgba(234, 220, 197, .72) !important;
}
body.home .home-v2-hero h1,
body.home .home-v2-hero .home-kicker,
body.home .home-v2-hero .home-v2-hero__lead,
body.home .home-v2-hero .home-v2-hero__signature { color: var(--hero-ivory); }
body.home .home-v2-hero .button--solid,
body.home .home-v2-hero .button--line {
  color: var(--hero-ivory);
  border-color: rgba(234, 220, 197, .76);
}

/* Final home-page Liquid Glass rule. It deliberately wins over the old
   wood/opaque-white hover states above, so every actionable button behaves
   exactly like the controls on the other pages. */
body.home .home-v2 .button,
body.home .site-header .header-actions a {
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(234,220,197,.08)) !important;
  border: 1px solid rgba(234,220,197,.58) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 10px 26px rgba(18,11,8,.14) !important;
  backdrop-filter: blur(16px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(135%) !important;
  color: var(--hero-ivory) !important;
}

/* Homepage trial: glass-button copy follows the hero description typography,
   with a larger, denser cut for quick reading. */
body.home .home-v2 .button,
body.home .site-header .header-actions a {
  font-family: 'Poiret One', 'Noto Sans SC', Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: .075em !important;
}

body.home .home-v2 .button {
  font-size: clamp(16px, 1.1vw, 18px) !important;
}

body.home .site-header .header-actions a {
  font-size: 15px !important;
}

/* Homepage header: navigation and language controls use the same family as
   the hero description and the glass buttons. */
body.home .site-header .primary-nav a,
body.home .site-header .language-switcher a,
body.home .site-header .header-actions a {
  font-family: 'Poiret One', 'Noto Sans SC', Arial, Helvetica, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: .065em !important;
}

body.home .site-header .primary-nav a {
  font-size: 16px !important;
}

body.home .site-header .language-switcher a {
  font-size: 15px !important;
}

body.home .home-v2 .button:hover,
body.home .site-header .header-actions a:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.40), rgba(234,220,197,.18)) !important;
  border-color: rgba(255,255,255,.84) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 30px rgba(18,11,8,.22) !important;
  color: #fff7e9 !important;
  transform: translateY(-1px);
}

/* Desktop home hero only. Phone and tablet rules below remain untouched. */
@media (min-width: 900px) {
  body.home .home-v2-hero h1 {
    width: min(800px, calc(52vw - 64px));
    max-width: 800px;
    font-size: clamp(62px, 4.2vw, 80px);
    line-height: .94;
  }

  body.home .home-v2-hero .home-v2-hero__lead {
    width: min(480px, calc(100vw - 72px));
    max-width: 480px;
  }

  body.home .home-v2-hero .home-v2-hero__lead-desktop-since {
    display: block;
  }

  body.home .home-v2-hero .home-actions .button {
    min-height: 48px;
    padding: 11px 18px;
    font-size: 12px;
    white-space: nowrap;
  }

  body.home .home-v2-hero .home-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  body.home .home-v2-hero__signature {
    position: absolute;
    right: clamp(24px, 4vw, 72px);
    bottom: 30px;
    left: clamp(24px, 4vw, 72px);
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 900px) and (max-width: 1199px) and (min-height: 701px) {
  body.home .home-v2-hero__text {
    transform: translateY(calc(clamp(-40px, -3.6vh, -20px) - 14px));
  }
  body.home .home-v2-hero .home-v2-hero__lead {
    width: min(400px, calc(100vw - 72px));
    max-width: 400px;
    min-height: 141.47px;
    font-size: 16px;
    line-height: 1.25;
  }
  body.home .home-v2-hero__lead-paragraph:nth-child(2) {
    white-space: nowrap;
    letter-spacing: -.035em;
  }
}

@media (min-width: 1200px) {
  body.home .home-v2-hero__text {
    transform: translateY(calc(clamp(-40px, -3.6vh, -20px) - 21px));
  }
  body.home .home-v2-hero .home-v2-hero__lead {
    width: min(440px, calc(100vw - 72px));
    max-width: 440px;
    min-height: 182.19px;
    font-size: 18px;
    line-height: 1.45;
  }
  body.home .home-v2-hero__lead-paragraph:last-child {
    padding-bottom: 1.86em;
  }
  body.home .home-v2-hero__lead-paragraph:nth-child(2) {
    white-space: nowrap;
    letter-spacing: -.035em;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  body.home .home-v2-hero .home-v2-hero__lead {
    min-height: 211.19px;
  }
}

@media (min-width: 900px) and (max-height: 700px) {
  body.home .home-v2-hero__copy {
    min-height: 423px;
    display: flex;
    flex-direction: column;
  }
  body.home .home-v2-hero__text {
    transform: none;
  }
  body.home .home-v2-hero .home-kicker {
    margin-bottom: 16px;
  }
  body.home .home-v2-hero h1 {
    width: min(680px, calc(100vw - 72px));
    max-width: 680px;
    font-size: clamp(52px, 4vw, 58px);
  }
  body.home .home-v2-hero .home-v2-hero__lead {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.45;
  }
  body.home .home-v2-hero .home-actions {
    margin-top: auto;
  }
}

@media (max-width: 899px) {
  .home-actions__whatsapp {
    display: none !important;
  }
}

/* Small and regular phones share the stack, with fluid type and safe gutters. */
@media (max-width: 599px) {
  body.home .home-v2-hero h1 {
    font-size: clamp(42px, 11.5vw, 52px);
  }
}

@media (max-width: 419px) and (orientation: portrait) {
  body.home .home-v2-hero .home-v2-hero__lead {
    margin-top: 6px;
    line-height: 1.25;
  }
  body.home .home-v2-hero__lead-paragraph {
    display: inline;
  }
}

@media (max-width: 359px) {
  body.home .home-v2-hero__inner {
    padding-top: clamp(108px, 14svh, 118px);
    padding-right: 18px;
    padding-left: 18px;
  }
  body.home .home-actions-cluster {
    right: 18px;
    left: 18px;
  }
  body.home .home-v2-hero__text {
    transform: translateY(16px);
  }
}

/* Portrait tablets use a composed two-button footer instead of a stretched phone stack. */
@media (min-width: 600px) and (max-width: 899px) and (orientation: portrait) {
  body.home .home-v2-hero__inner {
    padding-top: clamp(112px, 11svh, 132px);
  }
  body.home .home-v2-hero h1 {
    font-size: clamp(52px, 7.2vw, 58px);
  }
  body.home .home-v2-hero__text {
    transform: translateY(calc(8px - clamp(0px, calc(11svh - 112px), 20px)));
  }
  body.home .home-v2-hero .home-v2-hero__lead {
    width: min(72vw, 34rem);
  }
  body.home .home-actions-cluster {
    right: auto;
    left: 50%;
    width: min(calc(100% - 64px), 720px);
    transform: translateX(-50%);
  }
  body.home .home-v2-hero .home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Short landscape viewports need width-led composition, not a clipped portrait stack. */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) {
  body.home .home-v2-hero__inner {
    padding: clamp(76px, 22svh, 90px) clamp(18px, 4vw, 36px) 20px;
  }
  body.home .home-v2-hero__copy {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    grid-template-rows: auto auto;
    column-gap: clamp(16px, 3vw, 28px);
    align-items: start;
  }
  body.home .home-v2-hero__text {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    transform: translateY(calc(16px - clamp(0px, calc((100svh - 320px) * .08), 4px)));
  }
  body.home .home-v2-hero .home-kicker {
    position: static;
    margin: 0 0 8px;
  }
  body.home .home-v2-hero h1 {
    width: 100%;
    font-size: clamp(34px, 5.3vw, 44px);
    line-height: .86;
  }
  body.home .home-v2-hero .home-v2-hero__lead {
    width: 100%;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.3;
  }
  body.home .home-actions-cluster {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    width: 100%;
    display: flex;
    gap: clamp(10px, 2svh, 14px);
    transform: none;
  }
  body.home .home-v2-hero .home-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    transform: none;
  }
}

@media (max-width: 899px) and (max-height: 280px) and (orientation: landscape) {
  body.home .hero-scroll-cue { display: none; }
  body.home .home-actions-cluster { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.home .hero-scroll-cue__chevron {
    opacity: .9;
    transform: none;
    animation: none;
    will-change: auto;
  }
}

@media (max-width: 899px) {
  body.home .site-header .primary-nav a {
    font-size: 32px !important;
  }
}
