:root {
  --berryz-red: #ff0d0f;
  --berryz-green: #4cc62f;
  --ink: #18120f;
  --paper: #f8f3ec;
  --sand: #ece3d6;
  --mist: #fdf9f3;
  --font-display: "Cinzel", serif;
  --font-body: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section-tight {
  padding: 48px 0;
}

.section-soft {
  background: rgba(236, 227, 214, 0.65);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--berryz-red);
  margin: 0 0 18px;
}

.eyebrow.muted {
  color: rgba(24, 18, 15, 0.55);
}

.eyebrow.accent {
  color: var(--berryz-red);
}

.eyebrow.accent-green {
  color: var(--berryz-green);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 12px;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
  color: rgba(24, 18, 15, 0.75);
}

.muted {
  color: rgba(24, 18, 15, 0.65);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--berryz-red);
  color: #fff;
}

.btn-outline {
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-outline:hover,
.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(24, 18, 15, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(248, 243, 236, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}

.logo img {
  height: 48px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(24, 18, 15, 0.7);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: none;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 10px;
}

.nav-toggle-bars {
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-nav.open {
  max-height: 320px;
  opacity: 1;
}

.mobile-nav .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}

.mobile-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.mobile-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(24, 18, 15, 0.6);
}

.hero {
  overflow: hidden;
}

.hero-alt {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list span {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  background: rgba(255, 255, 255, 0.7);
  animation: tagFloat 6s ease-in-out infinite;
}

.hero-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 200px;
  background: linear-gradient(120deg, #1f1411, #3a1b12);
  color: #f8f3ec;
  display: flex;
  align-items: flex-end;
}

.hero-card--main {
  grid-row: span 2;
  min-height: 320px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.7));
}

.hero-card-content {
  position: relative;
  z-index: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-card-content p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0;
}

.hero-card-content h3 {
  margin: 0;
  font-family: var(--font-display);
}

.hero-card-content span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-card,
.menu-tile,
.hero-image,
.visual-image,
.story-image,
.branch-photo,
.loop-image,
.chroma-media {
  background-size: cover;
  background-position: center;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-glow--green {
  top: -120px;
  right: -40px;
  background: radial-gradient(circle, rgba(76, 198, 47, 0.5), transparent 70%);
}

.hero-glow--red {
  bottom: -140px;
  left: -60px;
  background: radial-gradient(circle, rgba(255, 13, 15, 0.35), transparent 70%);
}

.smoke {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  animation: smokeFloat 10s ease-in-out infinite;
  pointer-events: none;
}

.smoke-1 {
  width: 180px;
  height: 180px;
  left: 10%;
  top: 40%;
}

.smoke-2 {
  width: 220px;
  height: 220px;
  left: 20%;
  top: 55%;
  animation-delay: 1.5s;
}

.smoke-3 {
  width: 160px;
  height: 160px;
  left: 30%;
  top: 35%;
  animation-delay: 3s;
}

.standard-panel {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(24, 18, 15, 0.08);
  display: grid;
  gap: 24px;
}

.standard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.standard-card {
  background: var(--mist);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 18px;
}

.loop-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.loop-stack {
  position: relative;
  width: min(480px, 92vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.loop-image {
  width: min(280px, 64vw);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 22px 60px rgba(24, 18, 15, 0.18);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}

.curved-loop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curved-loop svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  font-size: clamp(2.6rem, 5vw, 4rem);
  fill: rgba(24, 18, 15, 0.9);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.image-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 999px;
}

.brand-grid {
  display: grid;
  gap: 28px;
  align-items: end;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.visual-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.visual-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.visual-image {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}

.visual-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.65));
}

.visual-image .image-label {
  position: relative;
  z-index: 1;
}

.visual-card figcaption {
  padding: 18px;
}

.visual-card h4 {
  margin: 0 0 6px;
}

.chroma-wrap {
  background: #14100f;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.chroma-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
  overflow: hidden;
}

.chroma-card {
  border-radius: 20px;
  padding: 16px;
  color: #f8f3ec;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.chroma-media {
  height: 140px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
}

.chroma-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6));
}

.chroma-media .image-label {
  position: relative;
  z-index: 1;
}

.chroma-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.chroma-footer h4 {
  margin: 0;
}

.chroma-footer p {
  margin: 6px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.7);
}

.chroma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(circle var(--r, 200px) at var(--x, 50%) var(--y, 50%), transparent 0%, transparent 35%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.75) 80%, black 100%);
  -webkit-mask-image: radial-gradient(circle var(--r, 200px) at var(--x, 50%) var(--y, 50%), transparent 0%, transparent 35%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.75) 80%, black 100%);
  backdrop-filter: grayscale(1) brightness(0.75) saturate(0.8);
}

.chip {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
}

.category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
  background: var(--mist);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(24, 18, 15, 0.5);
}

.process-grid {
  display: grid;
  gap: 32px;
}

.process-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.process-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.process-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(24, 18, 15, 0.5);
}

.branch-preview {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.branch-preview div {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.branch-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.branch-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(24, 18, 15, 0.06);
}

.branch-photo {
  height: 200px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
  margin-bottom: 16px;
}

.branch-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6));
}

.branch-photo .image-label {
  position: relative;
  z-index: 1;
}

.branch-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.branch-details {
  display: grid;
  gap: 12px;
}

.branch-details h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(24, 18, 15, 0.5);
}

.note-box {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 18px;
  font-size: 14px;
  color: rgba(24, 18, 15, 0.7);
}

.map-card {
  background: #14100f;
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(24, 18, 15, 0.18);
}

.map-visual {
  position: relative;
  margin-top: 24px;
  height: 240px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.6));
}

.map-node {
  position: absolute;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
}

.map-node::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 3px;
  width: 8px;
  height: 8px;
  background: var(--berryz-red);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 13, 15, 0.2);
}

.hero-image,
.story-image {
  height: 320px;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
}

.hero-image::after,
.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6));
}

.hero-image .image-label,
.story-image .image-label {
  position: relative;
  z-index: 1;
}

.menu-tiles {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.menu-tile {
  height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.menu-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75));
}

.menu-tile h3,
.menu-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.menu-section {
  margin-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 32px;
}

.menu-section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.menu-items {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.menu-items article {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px;
}

.menu-items span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(24, 18, 15, 0.5);
}

.story-grid,
.contact-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.values-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px;
}

.milestone-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-grid .hero-image {
  height: 280px;
}

.branch-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.branch-chip-row span {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  background: rgba(255, 255, 255, 0.7);
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(24, 18, 15, 0.6);
}

.footer-note {
  text-align: center;
  font-size: 12px;
  margin-top: 24px;
  color: rgba(24, 18, 15, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes smokeFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(14px, -24px, 0) scale(1.12);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(-8px, -34px, 0) scale(1.18);
    opacity: 0.32;
  }
}

@keyframes tagFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (min-width: 960px) {
  .hero-grid,
  .loop-grid,
  .brand-grid,
  .process-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-card--main {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .smoke {
    animation: none;
  }
}

/* Berryz single-page branch hub */
body.hub-page {
  --hub-paper: #f8f3ec;
  --hub-card: rgba(255, 252, 246, 0.84);
  --hub-card-strong: rgba(255, 255, 255, 0.94);
  --hub-ink: #1a120f;
  --hub-muted: rgba(26, 18, 15, 0.62);
  --hub-soft: rgba(26, 18, 15, 0.1);
  --hub-red: #ed1719;
  --hub-red-dark: #a70e11;
  --hub-green: #49c133;
  --hub-cream: #fff7eb;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(237, 23, 25, 0.16), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(73, 193, 51, 0.15), transparent 28%),
    linear-gradient(145deg, #fffaf2 0%, var(--hub-paper) 42%, #f0e3d3 100%);
  color: var(--hub-ink);
}

.hub-page button,
.hub-page input,
.hub-page select {
  font: inherit;
}

.hub-shell {
  width: min(540px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
}

.hub-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(26, 18, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 18, 15, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 76%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 76%);
}

.hub-ambient {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.46;
  pointer-events: none;
  z-index: -1;
  animation: hubGlow 8s ease-in-out infinite alternate;
}

.hub-ambient--red {
  top: -84px;
  left: -90px;
  background: rgba(237, 23, 25, 0.34);
}

.hub-ambient--green {
  right: -96px;
  top: 148px;
  background: rgba(73, 193, 51, 0.28);
  animation-delay: -3s;
}

.hub-hero {
  text-align: center;
  padding: 10px 10px 20px;
  animation: hubRise 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hub-logo {
  width: 88px;
  height: 88px;
  border-radius: 30px;
  object-fit: cover;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 18px 45px rgba(87, 48, 31, 0.16),
    inset 0 0 0 1px rgba(26, 18, 15, 0.04);
}

.hub-kicker,
.branch-eyebrow {
  margin: 0;
  color: var(--hub-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 12vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  margin: 9px 0 12px;
}

.hub-tagline {
  margin: 0 auto;
  color: rgba(26, 18, 15, 0.76);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.hub-subline {
  margin: 5px 0 0;
  color: rgba(26, 18, 15, 0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hub-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.hub-social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 235, 0.72));
  border: 1px solid rgba(26, 18, 15, 0.1);
  box-shadow: 0 12px 28px rgba(87, 48, 31, 0.12);
  color: var(--hub-red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hub-social:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(237, 23, 25, 0.3);
  box-shadow: 0 16px 34px rgba(87, 48, 31, 0.18);
}

.branch-directory {
  padding: 16px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 238, 0.86)),
    var(--hub-card);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 24px 70px rgba(87, 48, 31, 0.16),
    inset 0 0 0 1px rgba(26, 18, 15, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: hubRise 760ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.branch-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.branch-topline h2 {
  margin: 5px 0 0;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.branch-total {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(73, 193, 51, 0.1);
  color: #286e1c;
  border: 1px solid rgba(73, 193, 51, 0.18);
  font-size: 11px;
  font-weight: 800;
}

.branch-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.search-field,
.select-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(26, 18, 15, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-field {
  padding: 0 14px;
}

.search-field span {
  color: rgba(26, 18, 15, 0.45);
  font-size: 22px;
  transform: translateY(-1px);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hub-ink);
  font-weight: 700;
}

.search-field input::placeholder {
  color: rgba(26, 18, 15, 0.42);
}

.select-field {
  position: relative;
  padding: 0 13px 0 14px;
}

.select-field::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-54%);
  color: rgba(26, 18, 15, 0.48);
  pointer-events: none;
}

.select-label {
  color: rgba(26, 18, 15, 0.46);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.select-field select {
  width: 100%;
  min-width: 0;
  padding-right: 22px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--hub-ink);
  font-weight: 800;
}

.branch-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 1px 12px;
  margin-bottom: 2px;
  scrollbar-width: none;
}

.branch-chips::-webkit-scrollbar {
  display: none;
}

.branch-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(26, 18, 15, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(26, 18, 15, 0.66);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.branch-chip:hover {
  transform: translateY(-1px);
}

.branch-chip.is-active {
  background: var(--hub-ink);
  border-color: var(--hub-ink);
  color: var(--hub-cream);
}

.branch-list {
  display: grid;
  gap: 10px;
}

.branch-mini-card {
  min-height: 94px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.88));
  border: 1px solid rgba(26, 18, 15, 0.08);
  box-shadow:
    0 13px 30px rgba(87, 48, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-origin: center;
  animation: branchPop 620ms var(--delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.branch-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 23, 25, 0.18);
  box-shadow:
    0 17px 36px rgba(87, 48, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.branch-mini-card:active {
  transform: scale(0.99);
}

.branch-mini-card.is-hidden {
  display: none;
}

.branch-photo-mini {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.32)),
    var(--photo),
    linear-gradient(135deg, rgba(237, 23, 25, 0.18), rgba(73, 193, 51, 0.18));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(26, 18, 15, 0.08);
  box-shadow: inset 0 -18px 24px rgba(26, 18, 15, 0.14);
}

.branch-info {
  min-width: 0;
}

.branch-info h3 {
  margin: 0 0 3px;
  overflow: hidden;
  color: var(--hub-ink);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-phone {
  display: inline-flex;
  color: var(--hub-red-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.branch-info p {
  margin: 4px 0 0;
  overflow: hidden;
  color: rgba(26, 18, 15, 0.52);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branch-actions-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-action {
  width: 50px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(26, 18, 15, 0.07);
  color: var(--hub-ink);
  border: 1px solid rgba(26, 18, 15, 0.08);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.mini-action:hover {
  transform: translateY(-1px);
}

.mini-action--call {
  background: var(--hub-red);
  color: #fff;
  border-color: rgba(237, 23, 25, 0.2);
  box-shadow: 0 10px 18px rgba(237, 23, 25, 0.18);
}

.branch-empty {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--hub-muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.hub-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px 2px;
  color: rgba(26, 18, 15, 0.48);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 520px) {
  .branch-controls {
    grid-template-columns: minmax(0, 1fr) 190px;
  }
}

@media (max-width: 380px) {
  .hub-shell {
    padding-left: 11px;
    padding-right: 11px;
  }

  .branch-directory {
    padding: 12px;
    border-radius: 26px;
  }

  .branch-mini-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 86px;
    padding: 8px;
    border-radius: 21px;
  }

  .branch-photo-mini {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .branch-info h3 {
    font-size: 14px;
  }

  .branch-phone {
    font-size: 12px;
  }

  .branch-info p {
    font-size: 10px;
  }

  .branch-actions-mini {
    gap: 5px;
  }

  .mini-action {
    width: 42px;
    min-height: 38px;
    border-radius: 13px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@keyframes hubRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes branchPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hubGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(12px, -10px, 0) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-ambient,
  .hub-hero,
  .branch-directory,
  .branch-mini-card {
    animation: none;
  }

  .hub-social,
  .branch-chip,
  .branch-mini-card,
  .mini-action {
    transition: none;
  }
}
