:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --navy: #172554;
  --blue: #2563eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

h1,
h2,
.brand,
.portrait-card figcaption,
.company-card strong {
  font-family: "Playfair Display", Georgia, serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 860px);
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgb(255 255 255 / 95%);
  border-bottom: 1px solid #f1f5f9;
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(100% - 32px, 1180px);
  height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.menu-button,
.carousel-controls button {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: var(--white);
  color: #334155;
  border-radius: 4px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: .75rem .9rem;
  text-transform: uppercase;
}

.menu-panel {
  position: absolute;
  inset-inline: 0;
  top: 96px;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 20px 35px rgb(15 23 42 / 10%);
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height .32s ease, opacity .22s ease, transform .22s ease;
}

.menu-panel.open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.menu-panel a {
  display: block;
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
  padding: 1rem;
  color: #334155;
  border-radius: 6px;
  font-weight: 600;
}

.menu-panel a:hover {
  background: #f8fafc;
}

.hero {
  padding: 150px 0 88px;
  background: var(--soft);
  overflow: hidden;
}

.franchise-hero {
  padding: 150px 0 88px;
  background: #f8fafc;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}

.franchise-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}

.hero h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.15rem, 6.4vw, 6.75rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.franchise-hero h1 {
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 1.04;
}

.hero h1 span {
  display: block;
  color: #64748b;
  font-style: italic;
}

.lead {
  max-width: 740px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button-row.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.45rem;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cbd5e1;
}

.button.blue {
  color: var(--white);
  background: var(--blue);
}

.button.dark-outline {
  color: var(--white);
  border: 1px solid #475569;
}

.portrait-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
  box-shadow: 0 25px 60px rgb(15 23 42 / 20%);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .7s ease;
}

.portrait-card:hover img {
  filter: grayscale(0);
}

.portrait-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem;
  color: #cbd5e1;
  font-size: 1.2rem;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgb(0 0 0 / 72%));
}

.franchise-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgb(15 23 42 / 18%);
}

.franchise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 80px 0;
}

.bordered {
  border-block: 1px solid #f1f5f9;
}

.split,
.editorial {
  display: grid;
  grid-template-columns: .85fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.section h2,
.contact h2,
.franchise-panel h2 {
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: 1.12;
}

.copy-stack > * + * {
  margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading p {
  max-width: 680px;
}

.eyebrow,
.company-card span,
.card-grid span,
.insight-card span,
.metric-grid span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.company-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.company-card:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  transform: translateY(-2px);
}

.company-card strong {
  display: block;
  margin: 1.5rem 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.15;
}

.company-card p {
  margin-bottom: 0;
  font-size: .84rem;
  line-height: 1.55;
}

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}

.numbers {
  padding: 88px 0;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgb(59 130 246 / 18%), transparent 35%),
    linear-gradient(#1e293b 1px, transparent 1px),
    linear-gradient(90deg, #1e293b 1px, transparent 1px),
    #020617;
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.numbers h2,
.numbers p,
.numbers .eyebrow {
  color: var(--white);
}

.metric-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.metric-grid article {
  min-height: 290px;
  padding: 2rem;
  border: 1px solid rgb(148 163 184 / 26%);
  background: rgb(15 23 42 / 62%);
}

.metric-grid strong {
  display: block;
  margin: 1.2rem 0 .6rem;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.metric-grid h3,
.metric-grid p {
  color: #e2e8f0;
}

.support {
  background: #f8fafc;
}

.opportunity {
  background: #0f172a;
}

.opportunity h2,
.opportunity h3,
.opportunity p,
.opportunity li {
  color: var(--white);
}

.opportunity p,
.opportunity li {
  color: #cbd5e1;
}

.clean-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
  line-height: 1.9;
}

.card-grid article {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
}

.opportunity .card-grid article {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 12%);
}

.card-grid h3 {
  margin: .8rem 0;
  font-size: 1.25rem;
}

.insights {
  background: #f8fafc;
}

.insight-card {
  scroll-snap-align: start;
  flex: 0 0 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
}

.insight-card:hover {
  box-shadow: 0 20px 36px rgb(15 23 42 / 12%);
  transform: translateY(-2px);
}

.insight-card > img,
.logo-tile,
.text-tile {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.logo-tile,
.text-tile {
  display: grid;
  place-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.logo-tile img {
  max-width: 180px;
  max-height: 64px;
}

.text-tile {
  padding: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, #4338ca, #334155);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}

.insight-card div:last-child {
  padding: 1.5rem;
}

.insight-card h3 {
  margin: .65rem 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.insight-card p {
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.55;
}

.story {
  background: #f8fafc;
}

.contact {
  padding: 96px 0;
  color: var(--white);
  text-align: center;
  background: #0f172a;
}

.contact h2,
.contact p {
  color: var(--white);
}

.contact p {
  color: #cbd5e1;
  font-size: 1.15rem;
}

.franchise-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  background: #f8fafc;
}

.feature-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.feature-grid article,
.process-grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid h3,
.process-grid h3 {
  margin-bottom: .65rem;
}

.feature-grid p,
.process-grid p {
  margin-bottom: 0;
  font-size: .92rem;
  line-height: 1.6;
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid span,
.small-note {
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.small-note {
  margin-top: 2rem;
  color: #94a3b8 !important;
}

.footer {
  padding: 48px 0;
  color: #64748b;
  background: #020617;
}

.footer p {
  margin: 0;
  color: #64748b;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  margin-left: 1.5rem;
  font-size: .9rem;
}

.footer a:hover {
  color: var(--white);
}

.section-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .franchise-hero-grid,
  .split,
  .editorial,
  .metric-grid,
  .card-grid,
  .card-grid.two,
  .feature-grid,
  .support-grid,
  .process-grid,
  .franchise-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .portrait-card {
    order: 1;
    max-width: 520px;
    margin-inline: auto;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer a {
    margin: 0 1rem 0 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 128px;
  }

  .franchise-hero {
    padding-top: 128px;
  }

  .nav-inner {
    height: 82px;
  }

  .menu-panel {
    top: 82px;
  }

  .button,
  .button-row {
    width: 100%;
  }

  .company-card,
  .insight-card {
    flex-basis: min(86vw, 320px);
  }

  .carousel-controls {
    justify-content: stretch;
  }

  .carousel-controls button {
    flex: 1;
  }
}
