/* Index page */
:root {
  --section: 88px;
  --panel: 42px 36px 40px;
}

.hero-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  will-change: height;
}

.hero-head.is-scrolled {
  background: #fff;
}

.hero-head.is-nav {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 22, 26, 0.07);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.hero-spacer {
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

.hero-head .brand img {
  width: min(320px, 72vw);
  height: auto;
  max-height: 108px;
  object-fit: contain;
}

.hero-tag {
  display: block;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(0.88rem, 2.8vw, 1.05rem);
  text-wrap: balance;
  max-width: 90vw;
  overflow: hidden;
}

.hero-tag::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), rgba(230, 110, 2, 0.15));
}

.hero-head.is-scrolled .hero-tag::after {
  display: none;
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.3s var(--ease);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--orange), rgba(230, 110, 2, 0));
}

.scroll-cue:hover { color: var(--orange); }

.scroll-cue.is-hidden {
  pointer-events: none;
}

.scroll-cue span {
  display: block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-head.is-scrolled .hero-tag {
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

.hero-head.is-scrolled .scroll-cue {
  opacity: 0;
  pointer-events: none;
}

.mast-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "left brand right";
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  gap: 16px;
}

.brand { grid-area: brand; }

.mobile-menu-panel {
  display: contents;
}

.nav-left { grid-area: left; }
.nav-right { grid-area: right; }

.nav-left, .nav-right {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  position: relative;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-left a:hover, .nav-right a:hover,
.nav-left a.is-active, .nav-right a.is-active { color: var(--orange); }

@media (min-width: 901px) {
  .nav-left a::after, .nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1.5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.38s var(--ease);
  }

  .nav-left a:hover::after, .nav-right a:hover::after,
  .nav-left a.is-active::after, .nav-right a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-right a.nav-cta {
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }

  .nav-right a.nav-cta::after { display: none; }

  .nav-right a.nav-cta:hover,
  .nav-right a.nav-cta.is-active {
    background: var(--orange-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px var(--orange-glow);
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.32s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hero-head.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hero-head.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hero-head.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

body.menu-open { overflow: hidden; }

.menu-backdrop {
  position: fixed;
  inset: 70px 0 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
}

.menu-backdrop.is-visible {
  pointer-events: auto;
}

@media (min-width: 901px) {
  .menu-backdrop { display: none; }
}

/* Shared section rhythm */
.section { padding: var(--section) 0; }

#verticals {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-head h1,
.section-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-head .lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  text-wrap: balance;
}

.panel { padding: var(--panel); }

/* Three verticals */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.col.enterprises { --accent: var(--orange); --accent-deep: var(--orange-deep); --accent-soft: var(--orange-soft); --accent-glow: var(--orange-glow); }
.col.fitness { --accent: var(--green); --accent-deep: var(--green-deep); --accent-soft: var(--green-soft); --accent-glow: var(--green-glow); }
.col.edvantage { --accent: var(--blue); --accent-deep: var(--blue-deep); --accent-soft: var(--blue-soft); --accent-glow: var(--blue-glow); }

.col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}

.col:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.col:hover::before { transform: scaleX(1); }

.col-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px 22px;
  min-height: 196px;
}

.col .num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  color: var(--accent);
}

.icon-circle {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 0 8px var(--accent-soft), 0 12px 24px -10px var(--accent-glow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.col:hover .icon-circle {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 10px var(--accent-soft), 0 16px 30px -10px var(--accent-glow);
}

.icon-circle svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.col h2 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.col h2 .name {
  display: block;
  margin-top: 3px;
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.col.fitness h2 .name { font-size: 0.72rem; letter-spacing: 0.04em; }
.col.edvantage h2 .name { text-transform: none; letter-spacing: 0.02em; font-size: 1.12rem; }

.col .sub {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.col-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}

.col-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 26, 0.14));
  pointer-events: none;
}

.col-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--ease);
}

.col:hover .col-photo img { scale: 1.06; }

.col-points {
  margin-top: auto;
  padding: 22px 22px 12px;
  color: #fff;
  text-align: left;
  flex: 1;
  background: linear-gradient(165deg, var(--accent), var(--accent-deep));
}

.point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 13px 0;
}

.point + .point { border-top: 1px solid rgba(255, 255, 255, 0.2); }

.point svg {
  width: 24px;
  height: 24px;
  padding: 5px;
  box-sizing: content-box;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.point h3 { font-size: 0.94rem; letter-spacing: 0.01em; }
.point p { font-size: 0.81rem; opacity: 0.92; margin-top: 3px; line-height: 1.5; }

/* Whole-card link: a transparent overlay so any click on the card navigates */
.col.is-linked { cursor: pointer; }

.col-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.col-cover:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--radius);
}

/* Commitment panel */
.commitment-card {
  position: relative;
  padding: 70px 56px 62px;
  text-align: center;
  background: linear-gradient(155deg, #262a33 0%, #171a20 52%, #0f1115 100%);
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(15, 17, 21, 0.75);
}

/* Faint blueprint grid, faded at the edges */
.commitment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 38%, #000, transparent 80%);
  mask-image: radial-gradient(72% 72% at 50% 38%, #000, transparent 80%);
}

.commitment-card > * { position: relative; z-index: 1; }

.commitment-card .kicker { color: rgba(255, 255, 255, 0.85); }

.commitment-card .section-head {
  max-width: none;
  margin-bottom: 52px;
}

.commitment-card .section-head h2 {
  color: #fff;
  white-space: nowrap;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
}

.commitment-card .section-head h2 span {
  background: linear-gradient(100deg, #ffb066 0%, #ff9a3c 40%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-top: 0;
}

.value {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 4px 14px;
}

/* Hairline separators instead of boxes */
.value + .value::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.value svg {
  width: 44px;
  height: 44px;
  padding: 18px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease),
              border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.value:hover svg {
  transform: translateY(-5px);
  background: linear-gradient(140deg, #f2820f, var(--orange-deep));
  border-color: transparent;
  box-shadow: 0 16px 30px -10px var(--orange-glow);
}

.value.promise svg circle[fill] { fill: #fff; }

.value strong {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  transition: color 0.35s var(--ease);
}

.value:hover strong { color: #ff9a3c; }

.value span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

#commitment {
  padding-bottom: calc(var(--section) + 40px);
}

@media (min-width: 901px) {
  .menu-backdrop { display: none; }
}

@media (max-width: 900px) {
  .mast-inner { width: min(var(--max), calc(100% - 32px)); }

  /* Hero: logo + tagline, then 2×2 nav grid */
  .hero-head .mast-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
  }
  .hero-head .mobile-menu-panel {
    display: contents;
  }
  .hero-head:not(.is-scrolled) .mobile-menu-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 14px;
    width: min(100%, 320px);
    margin-inline: auto;
    order: 2;
    flex: 1 0 100%;
    padding-top: 8px;
    opacity: 1;
    visibility: visible;
    height: auto;
    pointer-events: auto;
    position: static;
  }
  .hero-head:not(.is-scrolled) .nav-left,
  .hero-head:not(.is-scrolled) .nav-right {
    display: contents;
  }
  .hero-head:not(.is-scrolled) .nav-left a,
  .hero-head:not(.is-scrolled) .nav-right a {
    opacity: 1;
    visibility: visible;
  }
  .hero-head .brand {
    order: 1;
    flex: 1 0 100%;
    align-items: center;
  }
  .hero-head .nav-toggle {
    order: 4;
    display: none;
  }
  .hero-head .nav-left a,
  .hero-head .nav-right a {
    min-height: 44px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .hero-head:not(.is-scrolled) .nav-right a.nav-cta {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 8px 20px -8px var(--orange-glow);
  }
  .hero-head:not(.is-scrolled) .nav-left a.is-active,
  .hero-head:not(.is-scrolled) .nav-right a.is-active {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 8px 18px -10px var(--orange-glow);
  }
  .hero-head:not(.is-scrolled) .nav-left a:active,
  .hero-head:not(.is-scrolled) .nav-right a:active {
    background: var(--fog);
  }
  .hero-head:not(.is-scrolled) .nav-right a.nav-cta:active {
    background: var(--orange-deep);
    color: #fff;
  }
  .hero-head .hero-tag {
    margin-top: 14px;
    max-width: 22em;
    line-height: 1.45;
  }
  .scroll-cue {
    bottom: 22px;
    gap: 8px;
  }

  .hero-head.is-scrolled {
    overflow: visible;
  }

  /* Compact bar: logo left, hamburger right */
  .hero-head.is-scrolled .mast-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 0;
    column-gap: 16px;
  }
  .hero-head.is-scrolled .brand {
    flex: 0 1 auto;
    align-items: flex-start;
  }
  .hero-head.is-scrolled .hero-tag {
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-head.is-scrolled .nav-toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .hero-head.is-scrolled .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 51;
    height: 0;
    opacity: 0;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    padding: 0;
  }
  .hero-head.is-scrolled.is-open .mobile-menu-panel {
    visibility: visible;
    pointer-events: auto;
    padding: 12px 0 16px;
    overflow: visible;
    min-height: 196px;
  }
  .hero-head.is-scrolled .nav-left,
  .hero-head.is-scrolled .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }
  .hero-head.is-scrolled .nav-left a,
  .hero-head.is-scrolled .nav-right a {
    min-height: 46px;
    width: 100%;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 16px;
  }
  .hero-head.is-scrolled .nav-left a:active,
  .hero-head.is-scrolled .nav-right a:active { background: var(--fog); }
  .verticals {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 36px;
  }
  .value-row {
    grid-template-columns: 1fr 1fr;
    gap: 36px 18px;
  }
  .value-row .value:last-child {
    grid-column: 1 / -1;
  }
  .value + .value::before { display: none; }
  .value { gap: 14px; }
  .value svg { width: 40px; height: 40px; padding: 17px; }
  .value strong { font-size: 0.82rem; }
  .value span { font-size: 0.9rem; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 52px;
  }
  .footer-contact { gap: 24px; }
  .pillars { text-align: center; }
  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
  }
  
  .col-head { min-height: 0; padding: 28px 22px 20px; }
  .col:hover { transform: none; }
  .section { padding: 60px 0; }
  #commitment { padding-bottom: 88px; }
  .section-head { margin-bottom: 34px; }
  .commitment-card { padding: 48px 24px 44px; border-radius: 24px; }
  .commitment-card .section-head { margin-bottom: 34px; }
  .commitment-card .section-head h2 {
    white-space: normal;
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .section { padding: 48px 0; }
  #commitment { padding-bottom: 72px; }
  .value-row { gap: 40px 20px; }
  .value { gap: 16px; padding: 0 8px; }
  .value svg { width: 44px; height: 44px; padding: 20px; }
  .value strong { font-size: 0.88rem; }
  .value span { font-size: 0.95rem; }
  .mast-inner { width: min(var(--max), calc(100% - 28px)); }
  .hero-head .mast-inner { row-gap: 18px; }
  .hero-head .brand img { max-height: 68px; width: min(220px, 68vw); }
  .hero-tag {
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 18em;
    letter-spacing: 0.05em;
  }
  .hero-head:not(.is-scrolled) .mobile-menu-panel {
    width: min(100%, 300px);
    column-gap: 16px;
    row-gap: 14px;
    padding-top: 4px;
  }
  .hero-head .nav-left a,
  .hero-head .nav-right a {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    min-height: 42px;
  }
  .scroll-cue {
    bottom: 18px;
    font-size: 0.62rem;
  }
  .scroll-cue::after { height: 28px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
  }
  .footer-contact { gap: 28px; }
  .footer-contact a { white-space: normal; }
  .pillars { text-align: center; line-height: 1.7; }
  
  .footer-legal { margin-top: 44px; gap: 8px; }
  .footer-brand img { height: 36px; }
  .col.fitness h2 .name { font-size: 0.68rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-head { will-change: auto; }
  .nav-toggle span { transition: none; }
  .col, .col-photo img, .icon-circle, .value svg { transition: none; }
  .col:hover { transform: none; }
  .col:hover .col-photo img { scale: 1; }
  .col:hover .icon-circle, .value:hover svg { transform: none; }
  .hero-head.is-scrolled .mobile-menu-panel { transition: none; }
}
