/* ==========================================================================
   Climate Pro HVAC, Climate Technology visual system
   Concept build for Summit Oak AI.
   No em or en dashes anywhere in this file (hard rule).
   ========================================================================== */

:root {
  /* Core palette */
  --bg:        #16202B;   /* deep blue-slate base */
  --bg-2:      #1E2B3A;   /* raised panels */
  --cool:      #38BDF8;   /* cyan-blue, cooling */
  --warm:      #FB923C;   /* amber-orange, heating */
  --text:      #EAF0F6;
  --text-dim:  #93A4B5;

  /* Derived */
  --bg-3:      #25364A;
  --line:      rgba(147, 164, 181, 0.16);
  --line-2:    rgba(147, 164, 181, 0.28);
  --duality:   linear-gradient(100deg, var(--cool) 0%, var(--warm) 100%);

  /* Type */
  --font-head: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, never hidden: hidden breaks sticky and pinned scroll effects. */
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Type scale ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}

.gradient-text {
  background: var(--duality);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

/* The gradient is painted from the border box. With the default padding-box
   origin it tiles under the 1px transparent border, which showed a sliver of
   orange on the left edge and blue on the right. */
.btn--primary {
  background: var(--duality) border-box;
  border: 0;
  padding: calc(0.95em + 1px) calc(1.6em + 1px);
  color: #0c1620;
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.5);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -12px rgba(251, 146, 60, 0.55);
}

.btn--ghost {
  background: rgba(234, 240, 246, 0.04);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--cool); background: rgba(56, 189, 248, 0.08); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(22, 32, 43, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brandmark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}
.nav__links {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 0.7em 1.3em; font-size: 0.92rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  margin-left: auto;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   HERO, scroll-scrub
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
}
.hero__stage {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Scrim keeps overlay text readable across the dusk shift */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(13, 19, 27, 0.55) 0%, rgba(13, 19, 27, 0.12) 32%, rgba(13, 19, 27, 0.35) 68%, rgba(13, 19, 27, 0.92) 100%),
    linear-gradient(90deg, rgba(13, 19, 27, 0.6) 0%, rgba(13, 19, 27, 0.0) 60%);
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cool);
  margin-bottom: 1.1rem;
  opacity: 0.95;
}
.hero__headline {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800;
  max-width: 14ch;
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero__subhead {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--text);
  opacity: 0.92;
  max-width: 52ch;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.4);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scrollcue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--cool), transparent);
}

/* ==========================================================================
   LAYOUT PRIMITIVES + REVEALS
   ========================================================================== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(72px, 11vh, 130px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin: 0.7rem 0 0;
}
.section__sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-top: 1rem;
  max-width: 56ch;
  text-wrap: pretty;
}
.section__title { text-wrap: balance; }

/* Centered section heads: title and subtext centered on the page. */
.section__head--center {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}
.section__head--center .section__sub { margin-inline: auto; max-width: 62ch; text-wrap: balance; }
/* One-line heads: sized so the line holds at desktop widths; below that the
   text balances into even lines. */
.section__title--oneline { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.section__sub--oneline { max-width: none; }
@media (min-width: 900px) {
  .section__title--oneline, .section__sub--oneline { white-space: nowrap; }
}

/* Depth elements: corners and edges only, never behind body copy. */
.section { position: relative; }
.deco { position: absolute; pointer-events: none; z-index: 0; }
.section > .container { position: relative; z-index: 1; }
.deco--dots {
  top: 0; left: 0;
  width: min(460px, 60vw); height: 340px;
  background-image: radial-gradient(rgba(143, 184, 232, 0.55) 1.1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.35;
  -webkit-mask: radial-gradient(100% 100% at 0 0, #000 10%, transparent 70%);
          mask: radial-gradient(100% 100% at 0 0, #000 10%, transparent 70%);
}

.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; }

/* ==========================================================================
   2. COMFORT STRIP, warm-amber accent
   ========================================================================== */
.comfort {
  position: relative;
  background:
    linear-gradient(90deg, rgba(251, 146, 60, 0.14), rgba(251, 146, 60, 0.03)),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.comfort__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.8rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}
.comfort__eyebrow { color: var(--warm); margin-bottom: 0.5rem; }
.comfort__line { color: var(--text); max-width: 62ch; font-size: 1.05rem; }
.comfort__cta {
  margin-left: auto;
  background: var(--warm);
  color: #20140a;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(251, 146, 60, 0.6);
}
.comfort__cta:hover { transform: translateY(-2px); }

/* ==========================================================================
   3. SERVICES
   ========================================================================== */
/* Index and stage. The section sits a shade deeper than the membership
   block below so the two read as separate sections. */
.services { background: #121B25; overflow: clip; }
.srv {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(1.6rem, 3.4vw, 3rem);
  align-items: stretch;
}
.srv__list { display: flex; flex-direction: column; gap: 0.5rem; }
.srv__item {
  --tone: var(--cool);
  --tone-rgb: 56, 189, 248;
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.1rem 0.95rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.srv__item--warm { --tone: var(--warm); --tone-rgb: 251, 146, 60; }
.srv__item + .srv__item::before {
  content: "";
  position: absolute;
  top: -0.3rem; left: 1rem; right: 1rem;
  height: 1px;
  background: var(--line);
  transition: opacity 0.3s ease;
}
.srv__item[aria-selected="true"]::before,
.srv__item[aria-selected="true"] + .srv__item::before,
.srv__item:hover::before,
.srv__item:hover + .srv__item::before { opacity: 0; }
.srv__ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(234, 240, 246, 0.03);
  color: var(--text-dim);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.srv__ic svg { width: 22px; height: 22px; }
.srv__main { display: flex; flex-direction: column; min-width: 0; }
.srv__title {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
/* The glowing dot carries each service's tone at all times. */
.srv__dot {
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 10px rgba(var(--tone-rgb), 0.9);
  opacity: 0.75;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.srv__descwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.srv__desc {
  overflow: hidden;
  min-height: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-wrap: pretty;
}
.srv__arr {
  color: var(--line-2);
  display: grid; place-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}
.srv__arr svg { width: 18px; height: 18px; }

/* Hover and selection take the item's own tone: blue, orange, blue... */
.srv__item:hover .srv__title { color: var(--text); }
.srv__item:hover .srv__ic { color: var(--tone); border-color: rgba(var(--tone-rgb), 0.45); }
.srv__item:hover .srv__dot { opacity: 1; }
.srv__item[aria-selected="true"] {
  background:
    linear-gradient(100deg, rgba(var(--tone-rgb), 0.12), rgba(var(--tone-rgb), 0.02) 70%),
    rgba(30, 43, 58, 0.55);
  border-color: rgba(var(--tone-rgb), 0.4);
  box-shadow: 0 18px 40px -26px rgba(var(--tone-rgb), 0.7);
}
.srv__item[aria-selected="true"] .srv__title { color: var(--text); }
.srv__item[aria-selected="true"] .srv__dot { opacity: 1; box-shadow: 0 0 14px 2px rgba(var(--tone-rgb), 0.85); }
.srv__item[aria-selected="true"] .srv__ic {
  color: var(--tone);
  border-color: rgba(var(--tone-rgb), 0.55);
  background: rgba(var(--tone-rgb), 0.1);
  box-shadow: 0 0 22px -6px rgba(var(--tone-rgb), 0.8);
}
.srv__item[aria-selected="true"] .srv__descwrap { grid-template-rows: 1fr; }
.srv__item[aria-selected="true"] .srv__desc { opacity: 1; padding-top: 0.35rem; }
.srv__item[aria-selected="true"] .srv__arr { color: var(--tone); transform: translateX(3px); }
.srv__item:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }

/* Stage: one large photo, framed in the selected service's tone. */
.srv__stage {
  --tone: var(--cool);
  --tone-rgb: 56, 189, 248;
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d141c;
  border: 1px solid rgba(var(--tone-rgb), 0.35);
  box-shadow: 0 30px 70px -40px rgba(var(--tone-rgb), 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  isolation: isolate;
}
.srv__stage[data-tone="warm"] { --tone: var(--warm); --tone-rgb: 251, 146, 60; }
.srv__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.srv__stage img.is-on { opacity: 1; transform: scale(1); }
.srv__stage::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 19, 27, 0.35) 0%, rgba(13, 19, 27, 0) 22%, rgba(13, 19, 27, 0) 50%, rgba(13, 19, 27, 0.9) 100%),
    radial-gradient(120% 70% at 50% 110%, rgba(var(--tone-rgb), 0.22), transparent 60%);
  transition: background 0.5s ease;
}
.srv__ticks {
  position: absolute; z-index: 2;
  top: 1.1rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.srv__tick {
  width: 22px; height: 3px;
  border-radius: 3px;
  background: rgba(234, 240, 246, 0.25);
  transition: background-color 0.3s ease, width 0.3s ease, box-shadow 0.3s ease;
}
.srv__tick.is-on { width: 38px; background: var(--cool); box-shadow: 0 0 10px rgba(56, 189, 248, 0.8); }
.srv__tick--warm.is-on { background: var(--warm); box-shadow: 0 0 10px rgba(251, 146, 60, 0.8); }
.srv__cap {
  position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  text-align: center;
}
.srv__capk {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tone);
  white-space: pre;
  transition: color 0.4s ease;
}
.srv__capt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ==========================================================================
   4. MEMBERSHIP
   ========================================================================== */
.membership {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(251, 146, 60, 0.08), transparent 60%),
    var(--bg);
}
.membership__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.membership__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  aspect-ratio: 4 / 5;
}
.membership__media img { width: 100%; height: 100%; object-fit: cover; }
.membership__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0c1620;
  background: var(--duality);
  padding: 0.5em 1em;
  border-radius: 100px;
}
.membership__benefits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.6rem;
  margin: 1.8rem 0 2.2rem;
}
/* No bar on the left: each benefit carries the tone as a glowing dot. */
.mbenefit__title { font-size: 1.05rem; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.55rem; }
.mbenefit__title::before {
  content: "";
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--cool);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}
.mbenefit:nth-child(even) .mbenefit__title::before { background: var(--warm); box-shadow: 0 0 10px rgba(251, 146, 60, 0.9); }
.mbenefit__text { color: var(--text-dim); font-size: 0.94rem; }

/* ==========================================================================
   5. WHY
   ========================================================================== */
.why { background: var(--bg-2); overflow: clip; }
.deco--mark {
  top: -120px; right: -150px;
  width: 460px; height: 460px;
  opacity: 0.06;
}
.deco--air {
  left: 0; bottom: 0;
  width: min(620px, 70vw); height: 280px;
  opacity: 0.16;
  -webkit-mask: linear-gradient(90deg, #000 30%, transparent);
          mask: linear-gradient(90deg, #000 30%, transparent);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  /* Narrower than the section title so the grid sits inside it. */
  max-width: 860px;
  margin-inline: auto;
}
.wcard {
  --tone: var(--cool);
  --tone-rgb: 56, 189, 248;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 2.5rem 2.8rem 2.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(var(--tone-rgb), 0.08), transparent 70%),
    rgba(22, 32, 43, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.wcard--warm { --tone: var(--warm); --tone-rgb: 251, 146, 60; }
.wcard:hover {
  border-color: rgba(var(--tone-rgb), 0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(var(--tone-rgb), 0.55);
}
.wcard__ic {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--tone);
  border: 1px solid rgba(var(--tone-rgb), 0.45);
  background: rgba(var(--tone-rgb), 0.08);
  box-shadow: 0 0 26px -6px rgba(var(--tone-rgb), 0.7);
  margin-bottom: 1.2rem;
}
.wcard__ic svg { width: 25px; height: 25px; }
.wcard__title { font-size: 1.2rem; margin: 0 0 0.55rem; white-space: nowrap; }
.wcard__text { color: var(--text-dim); font-size: 0.97rem; line-height: 1.65; max-width: 31ch; text-wrap: balance; }

/* ==========================================================================
   6. PROCESS
   ========================================================================== */
.process { overflow: clip; }
.deco--contour {
  right: 0; bottom: 0;
  width: min(520px, 70vw); height: 360px;
  opacity: 0.22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 360' fill='none' stroke='%2393A4B5' stroke-width='1'%3E%3Cpath d='M520 60c-120 10-190 60-230 130s-110 130-290 170'/%3E%3Cpath d='M520 100c-100 12-160 56-196 118s-100 112-256 142'/%3E%3Cpath d='M520 140c-84 12-134 50-164 104s-86 94-214 116'/%3E%3Cpath d='M520 180c-68 12-108 44-132 90s-70 76-170 90'/%3E%3Cpath d='M520 220c-52 12-82 38-100 76s-54 58-126 64'/%3E%3Cpath d='M520 260c-36 12-56 30-68 60s-38 38-84 40'/%3E%3C/svg%3E") right bottom / contain no-repeat;
}
.process__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
/* A thin cool to warm track runs behind the row at icon height and shows
   only in the gaps, tying the four steps into one sequence. */
.process__grid::before {
  content: "";
  position: absolute;
  top: 78px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.6), rgba(251, 146, 60, 0.6));
  z-index: 0;
}
.pstep {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 2.4rem 1.2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), #18232F);
  overflow: hidden;
}
/* Gradient rule sits inside the card, inset from both edges. */
.pstep::after {
  content: "";
  position: absolute;
  top: 0; left: 22%; right: 22%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--duality);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}
.pstep__num {
  position: absolute;
  top: -0.35rem; right: 0.6rem;
  font-family: var(--font-head);
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(234, 240, 246, 0.04);
  pointer-events: none;
}
.pstep__ic {
  position: relative;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: var(--bg);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), var(--duality);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 24px -8px rgba(56, 189, 248, 0.6);
  margin-bottom: 1.1rem;
}
.pstep__ic svg { width: 24px; height: 24px; }
.pstep__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cool);
}
.pstep:nth-child(even) .pstep__label { color: var(--warm); }
.pstep__title { font-size: 1.22rem; margin: 0.45rem 0 0.5rem; }
.pstep__text { color: var(--text-dim); font-size: 0.95rem; }

/* Section edge between How It Works and Our Work. */
.split-band {
  position: relative;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--cool) 12%, var(--cool) 50%, var(--warm) 50%, var(--warm) 88%, transparent 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25), 0 0 18px rgba(251, 146, 60, 0.2);
  opacity: 0.85;
}

/* ==========================================================================
   7. GALLERY
   ========================================================================== */
/* Every source image is natively 16/9, so a 16/9 container means no crop at
   all: no object-position tuning, no subject clipping. Hierarchy comes from
   how much width a tile is given, never from a different shape. */
.gallery { background: #111922; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.gtile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.gtile img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gtile:hover img { transform: scale(1.04); }
/* Invisible button over the whole tile: click or Enter opens the lightbox. */
.gtile__open {
  position: absolute; inset: 0;
  z-index: 3;
  background: none; border: 0;
  cursor: zoom-in;
  border-radius: inherit;
}
.gtile__open:focus-visible { outline: 2px solid var(--cool); outline-offset: -4px; }
.gtile__zoom {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(13, 19, 27, 0.55);
  border: 1px solid rgba(234, 240, 246, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gtile__zoom svg { width: 17px; height: 17px; }
.gtile:hover .gtile__zoom, .gtile__open:focus-visible .gtile__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gtile__zoom { opacity: 0.85; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 12, 18, 0.9); backdrop-filter: blur(6px); }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 150px);
  width: auto; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}
.lightbox__caption { font-family: var(--font-head); font-size: 0.95rem; color: var(--text-dim); text-align: center; }
.lightbox__btn {
  position: fixed;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(30, 43, 58, 0.7);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lightbox__btn:hover { border-color: var(--cool); background: rgba(56, 189, 248, 0.12); }
.lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
html.is-lightbox { overflow: hidden; }
@media (max-width: 560px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}
.gtile::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 19, 27, 0.78));
}
.gtile__caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-head);
  /* Scales down as tiles narrow so captions stay on one line. */
  font-size: clamp(0.74rem, 0.58rem + 0.32vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

/* Pyramid: 1 hero, then 2, then 3. Size comes only from how many tiles share a
   row, so every row fills the width and no row can leave a gap. Auto placement
   handles the rows, and tiles in a row are always the same height. */
.gtile--1                       { grid-column: span 12; }
.gtile--2, .gtile--3            { grid-column: span 6;  }
.gtile--4, .gtile--5, .gtile--6 { grid-column: span 4;  }

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--bg-2); overflow: clip; }
/* Depth: a cool glow at one side and a warm one at the other, plus a dot
   field fading out of the lower left corner. */
.deco--glow {
  inset: 0;
  background:
    radial-gradient(520px 320px at 8% 20%, rgba(56, 189, 248, 0.09), transparent 70%),
    radial-gradient(560px 340px at 94% 86%, rgba(251, 146, 60, 0.09), transparent 70%);
}
.deco--dots-bl {
  top: auto; bottom: 0;
  width: min(560px, 70vw); height: 380px;
  opacity: 0.5;
  background-image: radial-gradient(rgba(251, 186, 130, 0.55) 1.1px, transparent 1.6px);
  -webkit-mask: radial-gradient(100% 100% at 0 100%, #000 10%, transparent 70%);
          mask: radial-gradient(100% 100% at 0 100%, #000 10%, transparent 70%);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
/* Review cards: Google mark and a cool to warm star row on top, the quote,
   then an initials badge and name under a hairline. A faint cool to warm
   rim sits on the border so the cards read as glass over the glow. */
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.9rem 1.9rem 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(30, 43, 58, 0.9), rgba(22, 32, 43, 0.9)) padding-box,
    linear-gradient(140deg, rgba(56, 189, 248, 0.38), rgba(147, 164, 181, 0.12) 45%, rgba(251, 146, 60, 0.34)) border-box;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: 0 34px 64px -38px rgba(56, 189, 248, 0.35); }
.tcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.3rem;
}
.tcard__g {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(234, 240, 246, 0.95);
  box-shadow: 0 0 0 4px rgba(234, 240, 246, 0.06);
}
.tcard__g svg { width: 19px; height: 19px; display: block; }
.tcard__stars { display: inline-flex; gap: 3px; }
.tcard__stars svg { width: 17px; height: 17px; display: block; }
.tcard__stars { color: var(--warm); filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.35)); }
.tcard__bq { margin: 0 0 1.5rem; flex: 1; }
.tcard__quote { font-size: 1.02rem; line-height: 1.65; color: var(--text); }
/* Short copy blocks balance their lines so the three-word tail (bound in
   main.js) never leaves a ragged short line above it. */
.tcard__quote, .mbenefit__text, .contact__sidetext { text-wrap: balance; }
.tcard__foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.tcard__avatar {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--duality) border-box;
}
.tcard__who { display: flex; flex-direction: column; gap: 0.1rem; }
.tcard__name { font-family: var(--font-head); font-weight: 600; }
.tcard__locale { color: var(--text-dim); font-size: 0.88rem; }

/* ==========================================================================
   9. CONTACT
   ========================================================================== */
/* Full bleed: the photo spans edge to edge behind the section while the copy
   and form stay on the normal container. The source frames a dark wall on the
   left and blue to amber cove light on the right, so the intro column sits on
   the quiet side and the form gets a panel to stay legible over the lit side. */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Source is shot very dark. Lift it so the blue and amber cove light reads
     through the scrim instead of going to flat black. */
  filter: brightness(1.28) saturate(1.08);
}
/* Horizontal scrim for text contrast, plus a vertical fade so the band blends
   into the sections above and below instead of ending on a hard seam. */
.contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(22, 32, 43, 0) 12%, rgba(22, 32, 43, 0) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(22, 32, 43, 0.94) 0%, rgba(22, 32, 43, 0.74) 42%, rgba(22, 32, 43, 0.22) 100%);
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__side {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact__sidehead { font-size: 1.25rem; margin-bottom: 0.5rem; }
.contact__sidetext { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 1rem; }
.contact__phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--duality);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Raised, slightly translucent panel so the form reads cleanly over the photo
   without hiding it entirely. */
/* Glass card: translucent, blurred backdrop, hairline border with a light
   top edge, so the lit room behind reads through the form. */
.contact__form {
  position: relative;
  background:
    linear-gradient(160deg, rgba(234, 240, 246, 0.09), rgba(234, 240, 246, 0.02) 45%, rgba(56, 189, 248, 0.04)),
    rgba(22, 32, 43, 0.38);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(234, 240, 246, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 70px -20px rgba(6, 10, 16, 0.65);
}
.contact__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.field__input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(13, 19, 27, 0.5);
  border: 1px solid rgba(234, 240, 246, 0.14);
  border-radius: 10px;
  padding: 0.8em 0.95em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field__input::placeholder { color: rgba(147, 164, 181, 0.6); }
.field__input:focus {
  outline: none;
  border-color: var(--cool);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}
select.field__input { appearance: none; cursor: pointer; }
.contact__submit { width: 100%; }
.contact__note {
  margin-top: 1rem;
  color: var(--cool);
  font-size: 0.92rem;
  text-align: center;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.8rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.footer__tagline { color: var(--text-dim); max-width: 34ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a { color: var(--text-dim); transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--text); }
.footer__nap { display: flex; flex-direction: column; gap: 0.45rem; color: var(--text-dim); font-size: 0.95rem; }
.footer__nap a { color: var(--cool); }
.footer__naplabel {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  padding-bottom: 2.4rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
/* Bottom row: fiction line left, "Built by Summit Oak AI" plus the mark right. */
.footer__fiction { color: rgba(147, 164, 181, 0.8); font-size: 0.82rem; margin: 0; white-space: nowrap; }
.footer__copy { color: rgba(147, 164, 181, 0.8); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; margin-left: auto; transition: color .2s ease; }
.footer__copy:hover { color: var(--text); }
.footer__copy .soak-mark {
  display: inline-block; width: 20px; height: 20px; flex: none;
  background-color: var(--cool);
  -webkit-mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
          mask: url(../assets/images/summitoak-mark.png) center / contain no-repeat;
  opacity: .9; transition: opacity .2s ease;
}
.footer__copy:hover .soak-mark { opacity: 1; }
.footer__copy:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) {
  .footer__bottom { flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
  .footer__copy { margin-left: 0; }
  .footer__fiction, .footer__copy { font-size: 0.76rem; }
  .footer__fiction { white-space: normal; }
  .footer__fiction > span { white-space: nowrap; }
}
@media (max-width: 420px) {
  .footer__fiction, .footer__copy { font-size: 0.7rem; letter-spacing: -0.005em; }
}

/* Scroll offset so anchored sections clear the fixed nav */
section[id] { scroll-margin-top: 76px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid::before { display: none; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin: 0;
    padding: 1.2rem var(--gutter) 1.6rem;
    background: rgba(22, 32, 43, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    gap: 1.1rem;
  }

  .membership__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .srv { grid-template-columns: 1fr; }
  .srv__stage { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
  .srv__item { grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 0.85rem; padding: 0.8rem 0.9rem 0.8rem 0.8rem; }
  .srv__ic { width: 40px; height: 40px; border-radius: 11px; }
  .membership__media { aspect-ratio: 16 / 10; max-height: 380px; }

  /* Tablet: 1 / 1 / 2 / 2. Three across would be far too narrow for captions
     at the low end of this range. */
  .gtile--1, .gtile--2 { grid-column: span 12; }
  .gtile--3, .gtile--4,
  .gtile--5, .gtile--6 { grid-column: span 6; }

  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .comfort__cta { margin-left: 0; }
}

@media (max-width: 560px) {
  /* Phone heads: sized so four and five word titles hold one line and longer
     ones split into even lines of three words or more. */
  .section__title, .section__title--oneline { font-size: 1.5rem; letter-spacing: -0.025em; text-wrap: wrap; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }

  .why__grid,
  .process__grid { grid-template-columns: 1fr; }
  .wcard { padding: 1.9rem 1.3rem 2rem; }
  .deco--mark { width: 280px; height: 280px; top: -150px; right: -150px; }
  .srv__item { grid-template-columns: 40px minmax(0, 1fr); }
  .srv__arr { display: none; }
  .srv__title { font-size: 1.04rem; }
  .wcard__title { font-size: 1.08rem; }

  /* Mobile: one column, every tile full width and still 16/9. */
  .gtile--1, .gtile--2, .gtile--3,
  .gtile--4, .gtile--5, .gtile--6 { grid-column: span 12; }

  .membership__benefits,
  .contact__fields { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ==========================================================================
   REDUCED MOTION, show final states, no scrub or reveals
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .srv__item, .srv__ic, .srv__title, .srv__dot, .srv__descwrap, .srv__desc, .srv__arr,
  .srv__stage, .srv__stage img, .srv__tick, .wcard, .gtile__zoom { transition: none; }
  .srv__stage img { transform: none; }
  .wcard:hover, .tcard:hover { transform: none; }
  .tcard { transition: none; }
  .btn:hover { transform: none; }
  .hero__scrollcue { display: none; }
  .gtile img { transition: none; }
  .gtile:hover img { transform: none; }
}

/* Mobile: two-column footer (list beside contact) to cut height; brand spans full width. */
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  /* Links run as one wrapped row and the address gets the full width, so
     no address line is left with a lone word. */
  .footer__nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
  .footer__nap { grid-column: 1 / -1; }
}

/* Review 10-02: stars centered on each review card; the Google mark stays at the left. */
.tcard__top { position: relative; min-height: 28px; }
.tcard__stars { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
