/* Final, home-only layout rules. The shared city design remains unchanged. */
.home-page > main { min-height: 0; }
.home-page .home-gateway { padding-top: clamp(48px, 8vh, 96px); padding-bottom: 36px; }
.home-page .page-pattern { opacity: .32; }
.home-page .city-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .city-line,
.home-page .city-line + .city-line,
.home-page .city-line + .city-line:hover,
.home-page .city-line + .city-line:focus-visible,
.home-page .city-line:hover,
.home-page .city-line:focus-visible {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%; min-width: 0; min-height: 176px;
  padding: 26px 30px; gap: 24px;
  border: 1px solid var(--bord);
  border-radius: var(--tz-panel-radius,16px);
  transform: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.home-page .city-line:hover { border-color: #68232d; }
.home-page .city-line:focus-visible {
  border-color: #68232d;
  outline: 3px solid var(--bord); outline-offset: 4px;
}
.home-page .city-line h3,
.home-page .city-line:hover h3,
.home-page .city-line:focus-visible h3 {
  font-size: 48px; font-weight: 400; line-height: 1.15;
  margin: 0 0 12px; letter-spacing: -.03em;
}
.home-page .city-info { min-width: 0; }
.home-page .city-overline, .home-page .city-line p { overflow-wrap: anywhere; }
.home-page .header-cities a { white-space: nowrap; }

/* Viewport breakpoint includes exactly 1000px; no pointer-position logic. */
@media (max-width: 1000px) {
  .home-page { --header-height: 112px; --page-gutter: 24px; }
  .home-page .home-header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 38px 28px; align-content: center; align-items: center;
    padding: 16px 24px; height: 112px; min-height: 112px;
    column-gap: 12px; row-gap: 8px;
  }
  .home-page .home-brand {
    grid-column: 1; grid-row: 1;
    width: min(230px, 100%); min-width: 0; margin: 0;
  }
  .home-page .header-cta {
    grid-column: 2; grid-row: 1; justify-self: end;
    font-size: 16px !important; line-height: 1.2;
    padding: 10px 16px; gap: 12px; white-space: nowrap;
  }
  .home-page .header-cities {
    grid-column: 1 / -1; grid-row: 2;
    width: 100%; justify-self: stretch; justify-content: space-between;
    gap: 16px; font-size: 20px; line-height: 26px;
  }
  .home-page .header-cities > span { display: none; }
  .home-page .header-cities a { padding: 0; }
  .home-page .home-gateway {
    width: 100%; max-width: 100%; min-width: 0;
    padding: clamp(48px, 9vh, 80px) 24px 28px; gap: 18px;
  }
  .home-page .intro-copy h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.18; }
  .home-page .city-lines { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-page .city-line,
  .home-page .city-line + .city-line,
  .home-page .city-line + .city-line:hover,
  .home-page .city-line + .city-line:focus-visible,
  .home-page .city-line:hover,
  .home-page .city-line:focus-visible {
    min-height: 152px; padding: 22px; gap: 16px;
  }
  .home-page .city-line h3,
  .home-page .city-line:hover h3,
  .home-page .city-line:focus-visible h3 { font-size: 38px; }
  .home-page .city-arrow { width: 44px; height: 44px; }
  .home-page .page-pattern { opacity: .28; }
  .home-page > .site-footer { padding-left: 24px; padding-right: 24px; row-gap: 8px; }
  .home-page .footer-bottom > span,
  .home-page .footer-details,
  .home-page .footer-bottom nav { font-size: 14px; line-height: 24px; }
  .home-page .footer-details, .home-page .footer-bottom nav { gap: 8px; }
  .home-page .footer-details span,
  .home-page .footer-bottom nav a { font-size: inherit; line-height: inherit; }
  .home-page .footer-main { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 680px) {
  .home-page .home-brand { width: min(190px, 100%); }
  .home-page .header-cta { font-size: 12px !important; padding: 10px 12px; gap: 10px; }
  .home-page .header-cta svg { width: 16px; height: 16px; }
  .home-page .intro-copy h1 { font-size: clamp(30px, 8.2vw, 42px); }
}
@media (max-width: 360px) {
  .home-page { --page-gutter: 20px; }
  .home-page .home-header { padding-left: 20px; padding-right: 20px; }
  .home-page .header-cta { font-size: 11px !important; padding: 10px; gap: 8px; }
  .home-page .home-gateway { padding-left: 20px; padding-right: 20px; }
  .home-page > .site-footer { padding-left: 20px; padding-right: 20px; }
  .home-page .footer-main { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .home-page .footer-contact { justify-self: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .page-pattern * { transition: none !important; animation: none !important; }
}

/* Legal footer: credit and proprietor on one row, documents on the next. */
.home-page > .site-footer { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); row-gap: 12px; }
.home-page .footer-main { display: none; }
.home-page .footer-bottom > span { grid-column: 1; grid-row: 1; align-self: start; }
.home-page .footer-details {
  grid-column: 2; grid-row: 1; min-width: 0;
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: baseline; justify-content: flex-end;
  gap: 8px 20px; text-align: right; overflow-wrap: anywhere;
}
.home-page .footer-bottom nav {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: flex-start; align-items: baseline;
  gap: 8px 20px; min-width: 0;
}
.home-page .footer-bottom nav a { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .home-page > .site-footer { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .home-page .footer-details {
    grid-column: 1; grid-row: 2; flex-direction: column;
    align-items: flex-start; justify-content: flex-start;
    text-align: left; gap: 8px;
  }
  .home-page .footer-bottom nav {
    grid-column: 1; grid-row: 3;
    justify-content: flex-start; gap: 8px 20px;
  }
}
/* Include 1000px in the compact header. */
@media (max-width: 1000px) {
  .home-page { --header-height: 72px; }
  .home-page .header-cities { display: none; }
  .home-page .home-header {
    display: flex; flex-wrap: nowrap; justify-content: space-between;
    align-items: center; height: 72px; min-height: 72px;
    gap: 16px; padding-top: 16px; padding-bottom: 16px;
  }
  .home-page .home-brand { width: 230px; max-width: none; flex: 0 0 auto; margin: 0; }
  .home-page .header-cta { flex: 0 0 auto; margin: 0; }
}
/* Slightly stronger artwork; the fading reading area stays in place. */
.home-page .page-pattern {
  opacity: .325;
  mask-image: linear-gradient(to bottom, #000 0%, #000 36%, #0006 64%, transparent 90%);
}
@media (max-width: 1000px) { .home-page .page-pattern { opacity: .30; } }
@media (max-width: 680px) {
  .home-page .home-brand { width: 176px; }
  .home-page .header-cta {
    box-sizing: border-box; width: 144px; justify-content: space-between;
    font-size: 12px !important; letter-spacing: 0; padding: 10px; gap: 8px;
  }
  .home-page .header-cta svg { width: 16px; height: 16px; flex: 0 0 16px; }
}
@media (max-width: 390px) { .home-page .home-brand { width: 144px; } }
@media (max-width: 360px) {
  .home-page .home-header { gap: 12px; }
  .home-page .home-brand { width: 128px; }
  .home-page .header-cta { width: 132px; font-size: 11px !important; }
}
@media (max-width: 300px) {
  .home-page .home-header { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .home-page .home-brand { width: 112px; }
  .home-page .header-cta { width: 132px; }
}
/* Fixed main-header geometry across widths; only available spacing changes. */
.home-page .home-header {
  display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center;
  height: 88px; min-height: 88px; padding-top: 12px; padding-bottom: 12px;
  transition: none; transform: none;
}
.home-page .home-brand {
  width: 160px; min-width: 160px; max-width: 160px; flex: 0 0 160px;
  margin: 0; transform: none; transition: none; animation: none;
}
.home-page .header-cta,
.home-page .header-cta:hover,
.home-page .header-cta:focus-visible {
  box-sizing: border-box; width: 132px; min-width: 132px; flex: 0 0 132px;
  min-height: 40px; font-size: 12px !important; line-height: 1.2;
  padding: 8px; gap: 8px; letter-spacing: 0;
  transform: none; transition: background-color .2s, border-color .2s, color .2s;
}
.home-page .header-cta svg { width: 16px; height: 16px; flex: 0 0 16px; }
@media(max-width:1000px) {
  .home-page { --header-height: 88px; --page-gutter: 24px; }
  .home-page .home-header { padding-left: 24px; padding-right: 24px; gap: 12px; }
}
@media(max-width:360px) {
  .home-page { --page-gutter: 10px; }
  .home-page .home-header { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .home-page .home-gateway, .home-page > .site-footer { padding-left: 10px; padding-right: 10px; }
}
.home-page .page-pattern { opacity: .33; }
@media(max-width:1000px) { .home-page .page-pattern { opacity: .31; } }
/* Fixed original desktop scale, independent of viewport width. */
.home-page .header-cta { white-space: nowrap; text-transform: none; }
.home-page .header-cta > svg:not(.capsule-caption) {
  position: absolute; right: 20px; top: 0; bottom: 0;
  margin-top: auto; margin-bottom: auto;
}
@media(min-width:1001px) {
  .home-page .home-brand {
    width: 260px; min-width: 260px; max-width: 260px; flex: 0 0 260px;
  }
  .home-page .header-cta,
  .home-page .header-cta:hover,
  .home-page .header-cta:focus-visible {
    width: 230px; min-width: 230px; height: 54px; min-height: 54px;
    flex: 0 0 230px; font-size: 16px !important;
  }
}

/* The round mark spans 80 units in the 567-unit logo. Header = 3 diameters. */
.home-page { --header-height:calc(260px * 240 / 567); }
body.home-page .home-header {
  display:flex; align-items:center; justify-content:space-between;
  height:calc(260px * 240 / 567); min-height:calc(260px * 240 / 567);
  padding-top:8px; padding-bottom:8px; gap:24px;
}
.home-page .home-brand { width:260px; min-width:260px; max-width:260px; flex:0 0 auto; }
.home-page .header-actions { display:flex; align-items:center; flex:0 0 auto; gap:28px; }
.home-page .header-cities { width:auto; flex:0 0 auto; }
.home-page .header-cta,
.home-page .header-cta:hover,
.home-page .header-cta:focus-visible {
  width:230px; min-width:230px; height:54px; min-height:54px; flex:0 0 230px;
  font-size:16px !important; padding:8px 12px; border-radius:27px;
}
.home-page .header-cta > svg:not(.capsule-caption) { right:16px; }
@media(max-width:600px) {
  /* Logo shrinks proportionally with the 180:156 header pair when space is tight. */
  .home-page {
    --compact-logo-width:min(180px,calc((100vw - 2 * clamp(24px,5vw,72px) - 12px) * 15 / 28));
    --header-height:calc(var(--compact-logo-width) * 240 / 567);
  }
  body.home-page .home-header { height:var(--header-height); min-height:var(--header-height); }
  body.home-page .home-header { flex-direction:row; justify-content:space-between; gap:12px; padding-top:8px; padding-bottom:8px; padding-left:max(clamp(24px,5vw,72px),calc((100% - var(--header-content))/2)); padding-right:max(clamp(24px,5vw,72px),calc((100% - var(--header-content))/2)); }
  .home-page .home-brand { width:180px; min-width:0; max-width:180px; flex:0 1 180px; }
  .home-page .header-actions { flex:0 1 156px; min-width:0; }
  .home-page .header-cta,
  .home-page .header-cta:hover,
  .home-page .header-cta:focus-visible {
    width:156px; min-width:0; height:38px; min-height:38px; flex:1 1 156px;
    font-size:12px !important; padding:6px 8px; border-radius:19px;
  }
  .home-page .header-cta > svg:not(.capsule-caption) { width:12px; height:12px; right:10px; }
}

/* Quiet cream marker with a fixed brand-red arrow. */
.home-page .header-cta > svg.header-cta-icon:not(.capsule-caption) {
  width:40px; height:40px; right:6px; flex:0 0 40px;
  transform:none; transition:none; overflow:visible;
}
.home-page .header-cta .header-cta-icon circle { fill:var(--cream); stroke:none; }
.home-page .header-cta .header-cta-icon path {
  fill:none; stroke:var(--bord); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.home-page .header-cta:hover .header-cta-icon circle,
.home-page .header-cta:focus-visible .header-cta-icon circle { fill:var(--cream); }
.home-page .header-cta:hover .header-cta-icon path,
.home-page .header-cta:focus-visible .header-cta-icon path { stroke:var(--bord); }
@media(max-width:600px) {
  .home-page .header-cta > svg.header-cta-icon:not(.capsule-caption) {
    width:28px; height:28px; right:4px; flex-basis:28px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .home-page .header-cta:active .header-cta-icon { animation:none; }
}

/* Cover the full main background, as with the original page artwork. */
.home-page .page-pattern > svg {
  position:absolute; left:0; top:0; width:100%; max-width:none; height:100%;
  transform:none; aspect-ratio:auto;
}

.home-page .page-pattern { overflow:hidden; }

/* Quick quarter-turns, staggered by the motion loop, with pauses between them. */
.home-page .page-pattern .nd { transition:transform .26s cubic-bezier(.45,0,.25,1); }
@media(prefers-reduced-motion:reduce) {
  .home-page .page-pattern .nd { transition:none; }
}

/* The same branch chooser is available in the home header at every width. */
.home-page .home-branch { position:relative; flex:none; }
.home-page .home-branch .branch-btn {
  position:relative; box-sizing:border-box; width:154px; height:54px;
  display:flex; align-items:center; padding:8px 36px 8px 16px;
  border:1px solid var(--ink); border-radius:27px; background:transparent; color:var(--ink);
  font-family:var(--brand-font); font-size:16px; line-height:1.2; letter-spacing:0; cursor:pointer;
}
.home-page .home-branch .branch-btn:hover,
.home-page .home-branch .branch-btn[aria-expanded=true] { background:var(--ink); color:var(--cream); }
.home-page .home-branch .branch-btn > svg:not(.capsule-caption) {
  position:absolute; right:14px; top:50%; margin-top:-5px; width:12px; height:10px;
  fill:none; stroke:currentColor; stroke-width:1.6; transition:transform .2s;
}
.home-page .home-branch .branch-btn[aria-expanded=true] > svg:not(.capsule-caption) { transform:rotate(180deg); }
.home-page .home-branch-list[hidden] { display:none; }
.home-page .home-branch-list {
  position:absolute; top:calc(100% + 12px); right:0; z-index:40;
  box-sizing:border-box; width:min(320px,calc(100vw - 48px)); padding:8px;
  background:var(--cream); color:var(--ink); border:1px solid var(--ink); border-radius:16px;
  box-shadow:6px 6px 0 var(--bord);
}
.home-page .home-branch-list > a {
  display:flex; align-items:center; gap:16px; padding:14px 16px; border-radius:10px;
  color:inherit; text-decoration:none; font-family:var(--brand-font);
}
.home-page .home-branch-list > a:hover,
.home-page .home-branch-list > a:focus-visible { background:#9b3e4714; outline:2px solid var(--bord); outline-offset:-2px; }
.home-page .home-branch-list b { display:block; font-size:20px; font-weight:400; }
.home-page .home-branch-list small { display:block; font-size:14px; color:#786c62; }
.home-page .branch-dot { flex:none; width:18px; height:18px; border:1px solid var(--ink); border-radius:50%; }
@media(max-width:1000px) { .home-page .header-actions { gap:16px; } }
@media(max-width:760px) {
  body.home-page .home-header {
    display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:54px 30px;
    height:120px; min-height:120px; padding-top:12px; padding-bottom:12px; gap:8px 12px;
  }
  .home-page .header-actions { display:contents; }
  .home-page .home-brand { grid-column:1; grid-row:1; max-width:100%; }
  .home-page .header-cta { grid-column:2; grid-row:1; justify-self:end; }
  .home-page .home-branch { grid-column:1 / -1; grid-row:2; justify-self:end; }
  .home-page .home-branch .branch-btn { width:112px; height:30px; padding:4px 28px 4px 12px; font-size:13px; }
  .home-page .home-branch .branch-btn > svg:not(.capsule-caption) { right:10px; width:10px; }
}
@media(max-width:600px) {
  body.home-page .home-header { grid-template-rows:38px 30px; height:104px; min-height:104px; }
  .home-page .home-brand { width:var(--compact-logo-width); }
  .home-page .header-cta,
  .home-page .header-cta:hover,
  .home-page .header-cta:focus-visible { width:min(156px,calc((100vw - 2 * clamp(24px,5vw,72px) - 12px) * 13 / 28)); }
}

body.home-page .home-header { position:relative; z-index:30; overflow:visible; }

/* A quiet filled location trigger and clearly separated destination cards. */
.home-page .home-branch .branch-btn {
  border:0; background:#e7ded4; color:#585858;
  font-family:"Architexture","Century Gothic",sans-serif;
  font-size:16px; font-weight:400; text-transform:uppercase;
}
.home-page .home-branch .branch-btn:hover,
.home-page .home-branch .branch-btn[aria-expanded=true] { background:#d9cec2; color:#383838; }
.home-page .home-branch .branch-btn:focus-visible { outline:2px solid var(--bord); outline-offset:4px; }
.home-page .home-branch-list {
  display:grid; gap:8px; padding:10px; border:1px solid #d9cec2;
  box-shadow:0 12px 28px #1a1a1a20;
}
.home-page .home-branch-list > a {
  box-sizing:border-box; display:block; padding:16px 18px;
  background:#f0e5d9; border:1px solid #d8c7b8; border-radius:10px;
  font-family:"Architexture","Century Gothic",sans-serif;
  transition:background-color .15s,border-color .15s;
}
.home-page .home-branch-list > a:hover,
.home-page .home-branch-list > a:focus-visible {
  background:#e7d7c8; border-color:var(--bord); outline:none;
}
.home-page .home-branch-list small { margin-top:4px; }
@media(max-width:600px) { .home-page .home-branch .branch-btn { font-size:12px; } }
@media(min-width:601px) and (max-width:760px) { .home-page .home-branch .branch-btn { font-size:16px; } }

/* Match the compact rhythm of the shared footer. */
body.home-page > .site-footer { row-gap:2px; }
body.home-page .footer-details,
body.home-page .footer-bottom > span,
body.home-page .footer-bottom nav { font-size:12px; line-height:18px; }
body.home-page .footer-details,
body.home-page .footer-bottom nav { gap:2px 16px; }
body.home-page .footer-details span,
body.home-page .footer-bottom nav a { line-height:inherit; }

/* Desktop labels and optical alignment use the actual round logo mark. */
@media(min-width:1001px) {
  body.home-page .home-header { padding-top:10px; padding-bottom:8px; }
  body.home-page .home-brand { transform:translateY(calc(260px * 4.5 / 567)); }
  body.home-page .header-cta,
  body.home-page .header-cta:hover,
  body.home-page .header-cta:focus-visible { font-size:15px!important; }
  body.home-page .home-branch .branch-btn { font-size:15px; }
}

@media(max-width:1000px) {
  body.home-page .footer-details,
  body.home-page .footer-bottom > span,
  body.home-page .footer-bottom nav { font-size:11px; line-height:16px; }
}
