/* ==========================================================
DESIGN TOKENS  (brand guidelines: #001306 + white, Montserrat)
Greens 2-4 are the three service bands from the existing website.
========================================================== */
:root {
  --font:
    "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
    sans-serif;
  --ink: #001306;
  --ink-2: #063b21;
  --ink-3: #074f39;
  --ink-4: #275f30;
  --logo-green: #164b38;
  --green: #0f3d2e;
  --green-hover: #16523f;
  --green-deep: #0a2a20;
  --green-tint: #eaf1ed;
  --white: #ffffff;
  --mist: #d4e1da;
  --signal: #6dffa8;
  --radius: 22px;

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);

  /* semantic tokens: light (default) */
  --surface: #fff;
  --surface-alt: #eef4f0;
  --text: #001306;
  --text-muted: #3f5244;
  --line: #d4e1da;
  --accent: #074f39;
  --card: #fff;
  --field-line: #8ea699;
  --btn-bg: #001306;
  --btn-fg: #fff;
  --btn-hover: #074f39;
  --btn-fg-hover: #fff;
  --focus: #074f39;
  --shadow: 0 40px 70px -40px rgba(0, 19, 6, 0.45);
  color-scheme: light;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #001306;
    --surface-alt: #04200f;
    --text: #f3f8f5;
    --text-muted: #b7cbbd;
    --line: #1d3b2b;
    --accent: #6dffa8;
    --card: #082a17;
    --field-line: #4f6f5c;
    --btn-bg: #fff;
    --btn-fg: #001306;
    --btn-hover: #d4e1da;
    --btn-fg-hover: #001306;
    --focus: #6dffa8;
    --shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #001306;
  --surface-alt: #04200f;
  --text: #f3f8f5;
  --text-muted: #b7cbbd;
  --line: #1d3b2b;
  --accent: #6dffa8;
  --card: #082a17;
  --field-line: #4f6f5c;
  --btn-bg: #fff;
  --btn-fg: #001306;
  --btn-hover: #d4e1da;
  --btn-fg-hover: #001306;
  --focus: #6dffa8;
  --shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
/* areas that are always dark, regardless of viewer theme */
.on-dark {
  --surface: var(--ink);
  --text: #fff;
  --text-muted: #c4d6cb;
  --line: rgba(255, 255, 255, 0.2);
  --accent: var(--signal);
  --focus: var(--signal);
  --btn-bg: #fff;
  --btn-fg: #001306;
  --btn-hover: #d4e1da;
  --btn-fg-hover: #001306;
  color: #fff;
}

/* ==========================================================
BASE
========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px);
  background: var(--ink);
  scroll-behavior: smooth;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  min-height: 100%;
  margin: 0;
  background: var(--ink);
  color: #fff;
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus {
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.surface {
  background: var(--surface);
  color: var(--text);
}
.surface-alt {
  background: var(--surface-alt);
  color: var(--text);
}
.section {
  padding-block: var(--section-y);
}

.h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.muted {
  color: var(--text-muted);
}
.link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  transition:
    text-decoration-thickness 0.2s,
    color 0.2s;
}
.link:hover {
  text-decoration-thickness: 3px;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--btn-bg);
  --fg: var(--btn-fg);
  --hv: var(--btn-hover);
  --fgh: var(--btn-fg-hover);
  --bd: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.3s,
    border-color 0.3s,
    transform 0.2s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hv);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.4s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  color: var(--fgh);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--text);
  --hv: var(--text);
  --fgh: var(--surface);
  --bd: color-mix(in srgb, var(--text) 45%, transparent);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================
NAVIGATION
========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background 0.35s,
    box-shadow 0.35s,
    backdrop-filter 0.35s;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 19, 6, 0.75) 0%,
    rgba(0, 19, 6, 0.4) 60%,
    rgba(0, 19, 6, 0) 100%
  );
  opacity: 1;
  transition: opacity 0.35s;
  pointer-events: none;
}
.nav.is-solid::before {
  opacity: 0;
}
.nav.is-solid {
  background: rgba(0, 19, 6, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.nav__logo {
  display: block;
  flex: none;
  line-height: 0;
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: none;
  border: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}
.nav__link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease);
}
.nav__link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav__cta {
  margin-left: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}
.nav__item {
  position: relative;
}
.dd {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: -6rem;
  width: min(760px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease),
    visibility 0s 0.25s;
}
.nav__item.is-open .dd {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.dd__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  text-decoration: none;
  background: var(--band);
  transition: filter 0.3s;
}
.dd__link:hover,
.dd__link:focus-visible {
  filter: brightness(1.25);
}
.dd__link[aria-current="page"] {
  box-shadow: inset 0 -4px 0 var(--signal);
}
.dd__verb {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.dd__t {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.35s var(--ease),
    top 0.35s var(--ease);
}
.nav__toggle span:nth-child(1) {
  top: 19px;
}
.nav__toggle span:nth-child(2) {
  top: 27px;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  top: 23px;
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1rem)
    var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease),
    visibility 0s 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.menu__group {
  display: grid;
  gap: 0.25rem;
}
.menu__a {
  display: block;
  padding: 0.35rem 0;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}
.menu__sub {
  display: grid;
  gap: 0.15rem;
  margin: 0.4rem 0 0.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--band, var(--ink-3));
}
.menu__sub a {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0;
  text-decoration: none;
}
.menu__sub b {
  font-size: 1.15rem;
  font-weight: 600;
}
.menu__sub small {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.menu .btn {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .menu {
    display: none;
  }
}

/* ==========================================================
HERO  (the one memorable moment: city / headline / people)
========================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: max(100svh, 640px);
  overflow: hidden;
  background: var(--ink);
}
.hero__media,
.hero__city {
  position: absolute;
  inset: 0;
}
.hero__city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  transform: scale(1.06);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 19, 6, 0.9) 0%,
      rgba(0, 19, 6, 0.66) 36%,
      rgba(0, 19, 6, 0.14) 66%,
      rgba(0, 19, 6, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 19, 6, 0.6) 0%,
      rgba(0, 19, 6, 0) 24%,
      rgba(0, 19, 6, 0) 72%,
      rgba(0, 19, 6, 0.5) 100%
    );
}
.hero__people {
  position: absolute;
  bottom: 0;
  right: max(0px, calc((100% - var(--maxw)) / 2 - 2rem));
  height: min(84%, 800px);
  aspect-ratio: 1100/1123;
  will-change: transform;
}
.hero__people img {
  height: 100%;
  width: auto;
  opacity: 0;
  transform: translateY(5%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  will-change: transform, opacity;
}
.hero__title {
  max-width: 11.5em;
  font-size: clamp(2.1rem, min(5.5vw, 8.4vh), 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.tl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.tl > span {
  display: block;
  transform: translateY(108%);
}
.tl--2 {
  margin-top: 0.55em;
  color: var(--mist);
}
.hero__copy {
  max-width: 34rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.hero .btn-row {
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}
.hero__copy,
.hero .btn-row {
  opacity: 0;
  transform: translateY(14px);
}

.hero.is-ready .tl > span {
  animation: rise 1s var(--ease) forwards;
}
.hero.is-ready .tl:nth-child(1) > span {
  animation-delay: 0.05s;
}
.hero.is-ready .tl:nth-child(2) > span {
  animation-delay: 0.16s;
}
.hero.is-ready .tl:nth-child(3) > span {
  animation-delay: 0.3s;
}
.hero.is-ready .hero__people img {
  animation: emerge 1.3s var(--ease) 0.35s forwards;
}
.hero.is-ready .hero__copy {
  animation: fadeup 0.9s var(--ease) 0.6s forwards;
}
.hero.is-ready .btn-row {
  animation: fadeup 0.9s var(--ease) 0.75s forwards;
}
@keyframes rise {
  to {
    transform: none;
  }
}
@keyframes emerge {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeup {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero__shade {
    background: linear-gradient(
      180deg,
      rgba(0, 19, 6, 0.82) 0%,
      rgba(0, 19, 6, 0.6) 50%,
      rgba(0, 19, 6, 0.15) 100%
    );
  }
  .hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }
  .hero__inner {
    order: 1;
    flex: none;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.75rem) 0 0;
  }
  .hero__people {
    order: 2;
    position: relative;
    right: auto;
    height: auto;
    width: min(88%, 420px);
    margin: 2.25rem auto 0;
    aspect-ratio: 1100/1123;
  }
  .hero__people img {
    width: 100%;
    height: auto;
  }
  .hero__title {
    font-size: clamp(2.1rem, 9.6vw, 3.4rem);
  }
}

/* ==========================================================
WHAT WE DO + THREAD
========================================================== */
.wwd__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}
.wwd__grid .h2 {
  grid-column: 1 / span 6;
}
.wwd__copy {
  grid-column: 8 / span 5;
  display: grid;
  gap: 1.25rem;
  align-self: end;
  padding-bottom: 0.4rem;
}
.wwd__copy .lead {
  font-weight: 400;
}
@media (max-width: 900px) {
  .wwd__grid .h2,
  .wwd__copy {
    grid-column: 1 / -1;
  }
}

.thread {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.thread::before,
.thread::after {
  content: "";
  position: absolute;
  top: 41px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  border-radius: 2px;
}
.thread::before {
  background: var(--line);
}
.thread::after {
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p));
}
.thread__node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}
.thread__ic {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 34px;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--text-muted);
  transition:
    background 0.5s,
    border-color 0.5s,
    color 0.5s,
    box-shadow 0.5s,
    transform 0.4s var(--ease);
}
.thread__node.is-lit .thread__ic {
  background: var(--band);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--band) 16%, transparent);
}
.thread__node:hover .thread__ic {
  transform: translateY(-4px);
}
.thread__node[aria-current="page"] .thread__ic {
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.thread__txt {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}
.thread__verb {
  margin-top: 0.6rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.thread__area {
  max-width: 21ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .thread {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .thread::before,
  .thread::after {
    top: 42px;
    bottom: 42px;
    left: 41px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .thread::after {
    transform-origin: top;
    transform: scaleY(var(--p));
  }
  .thread__node {
    flex-direction: row;
    text-align: left;
    gap: 1.25rem;
  }
  .thread__ic {
    flex: none;
  }
  .thread__txt {
    gap: 0.2rem;
    justify-items: start;
  }
  .thread__verb {
    margin-top: 0;
  }
}
.ico svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================
SERVICE BANDS  (stack as you scroll: CSS sticky only)
========================================================== */
.band {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3.5rem, 8vw, 6rem);
  color: #fff;
  background:
    radial-gradient(
      70% 90% at 90% 6%,
      rgba(255, 255, 255, 0.07),
      transparent 62%
    ),
    var(--band);
}
.band__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2rem;
  row-gap: 2.5rem;
  align-items: start;
}
.band__head {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.band__body {
  grid-column: 8 / span 5;
  padding-top: 0.4rem;
}
.band__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.verb {
  display: block;
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.area {
  display: block;
  max-width: 22ch;
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}
.band__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}
.offer-list {
  margin: 1.75rem 0 2rem;
  max-width: 34rem;
}
.offer-list li {
  padding: 0.8rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: padding-left 0.3s var(--ease);
}
.offer-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.offer-list li:hover {
  padding-left: 0.6rem;
}
@media (min-width: 900px) and (min-height: 620px) {
  .stack .band {
    position: sticky;
    top: 0;
    min-height: 100svh;
  }
  .stack .band + .band {
    box-shadow: 0 -30px 60px -24px rgba(0, 0, 0, 0.5);
  }
}
@media (max-width: 899px) {
  .band__head,
  .band__body {
    grid-column: 1 / -1;
  }
  .band__inner {
    row-gap: 1.5rem;
  }
}

/* ==========================================================
BRAND IDEA
========================================================== */
.brand {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.brand__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}
.brand__bg img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 35% 50%;
  will-change: transform;
}
.brand__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--ink) 0%,
    rgba(0, 19, 6, 0.55) 45%,
    var(--ink) 100%
  );
}
.brand .wrap {
  position: relative;
  z-index: 1;
}
.statement {
  max-width: 21em;
  font-size: clamp(1.9rem, 4.4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.statement.is-scrub .w {
  opacity: 0.22;
  transition: opacity 0.4s;
}
.statement.is-scrub .w.on {
  opacity: 1;
}
.brand__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem 2rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  align-items: start;
}
.brand__ideas {
  grid-column: 1 / span 5;
}
.brand__logo {
  width: clamp(96px, 12vw, 150px);
  margin-bottom: 2rem;
}
.brand__ideas p {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.ideas li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.ideas li:last-child {
  border-bottom: 1px solid var(--line);
}
.ideas img {
  width: 44px;
  height: 44px;
  flex: none;
}
.ideas .k {
  color: var(--mist);
  font-weight: 600;
}
.ideas .eq {
  color: var(--text-muted);
  padding: 0 0.35em;
}
.ideas .v {
  font-weight: 700;
}
.ideas li {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}
.brand__story {
  grid-column: 7 / span 6;
}
.brand__story .h3 {
  margin-bottom: 0.9rem;
}
.brand__story > p {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .brand__ideas,
  .brand__story {
    grid-column: 1 / -1;
  }
}

/* ---------- accordion ---------- */
.acc {
  border-top: 1px solid var(--line);
}
.acc__item {
  border-bottom: 1px solid var(--line);
}
.acc__h {
  font-size: inherit;
}
.acc__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.35;
}
.acc__ico {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}
.acc__ico::before,
.acc__ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    transform 0.4s var(--ease),
    background 0.3s;
}
.acc__ico::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.acc__btn:hover .acc__ico {
  background: var(--text);
  color: var(--surface);
}
.acc__item.is-open .acc__ico::after {
  transform: translate(-50%, -50%) rotate(0);
}
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.45s var(--ease),
    visibility 0s 0.45s;
}
.acc__panel > div {
  overflow: hidden;
  min-height: 0;
}
.acc__item.is-open .acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}
.acc__panel p {
  padding: 0 3rem 1.5rem 0;
  max-width: 40rem;
  color: var(--text-muted);
}

/* ==========================================================
SERVICE PAGES
========================================================== */
.phero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(2rem, 6vw, 4.5rem)) 0
    clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(
      70% 90% at 90% 0%,
      rgba(255, 255, 255, 0.08),
      transparent 62%
    ),
    var(--band);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.6;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.phero h1 {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.phero .verb {
  font-size: clamp(4rem, 15vw, 13rem);
}
.phero .area {
  max-width: 26ch;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
}
.phero .lead {
  max-width: 36rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.92);
}
.phero .btn-row {
  margin-top: 2rem;
}
.offer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 2rem;
}
.offer__grid .h2 {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.rows {
  grid-column: 6 / span 7;
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.row:hover {
  padding-left: 0.6rem;
}
.row__t {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}
.row .link {
  flex: none;
  font-size: 0.9rem;
}
.rows .acc {
  grid-column: auto;
  border-top: 0;
}
@media (max-width: 900px) {
  .offer__grid .h2,
  .rows {
    grid-column: 1 / -1;
    position: static;
  }
  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
.chain .h2 {
  max-width: 14em;
}

/* ==========================================================
CONTACT
========================================================== */
.contact {
  position: relative;
  overflow: hidden;
}
.contact__mark {
  position: absolute;
  left: -7%;
  bottom: -14%;
  width: clamp(300px, 40vw, 600px);
  opacity: 0.07;
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3rem 2rem;
  align-items: start;
}
.contact__intro {
  grid-column: 1 / span 5;
  display: grid;
  gap: 1.5rem;
}
.contact__intro .lead {
  color: var(--text-muted);
  max-width: 28rem;
}
.contact__direct {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.contact__direct-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.contact__direct a {
  font-weight: 600;
  text-decoration: none;
}
.contact__direct a:hover {
  text-decoration: underline;
}
.tagline {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.form {
  grid-column: 7 / span 6;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.form__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-weight: 600;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1.5px solid var(--field-line);
  border-radius: 14px;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select option {
  color: #001306;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--text);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}
.field [aria-invalid="true"] {
  border-color: #c0392b;
}
.field__err {
  font-size: 0.85rem;
  color: #b3261e;
  font-weight: 600;
}
:root[data-theme="dark"] .field__err {
  color: #ff9d92;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field__err {
    color: #ff9d92;
  }
}
.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--surface-alt);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form__status[hidden] {
  display: none;
}
.form .btn {
  justify-self: start;
}
@media (max-width: 900px) {
  .contact__intro,
  .form {
    grid-column: 1 / -1;
  }
  .form__two {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
POP-UP MODAL (CONFIRMATION MESSAGE)
========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Card ---------- */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(140, 140, 140, 0.559);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal.is-open .modal-content {
  transform: none;
}
.modal-content:focus {
  outline: none;
}

/* ---------- Header: slanted edge echoes the tagline bubble ---------- */
.modal-header {
  position: relative;
  top: -1px;
  padding: 36px 32px 58px;
  text-align: center;
  color: var(--white);
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
  transform: scale(1.005);
  border-radius: var(--radius) var(--radius) 0 0;
}

.creait-logo {
  width: 30%;
  height: 30%;
  margin-bottom: 14px;
  margin-inline: auto;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- Close ---------- */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 50%;
  transition: background 0.2s;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.close-btn:focus-visible {
  outline-color: var(--white);
  outline-offset: 2px;
}
.close-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- Body ---------- */
.modal-body {
  padding: 0 32px;
  margin-top: 12.5px;
}
.modal-body p {
  color: #000;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
}

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--green-tint);
  border-left: 4px solid var(--green);
  border-radius: 4px 14px 14px 4px;
}
.note svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

/* ---------- Footer ---------- */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 32px 30px;
}

/* Small speech-bubble tagline */
.modal-tagline {
  position: relative;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-tint);
  border-radius: 12px;
}
.modal-tagline::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -7px;
  border: 7px solid transparent;
  border-top-color: var(--green-tint);
  border-bottom: 0;
}

.done-btn {
  padding: 13px 38px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: 999px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.done-btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .modal-header {
    padding: 32px 24px 54px;
  }
  .modal-body {
    padding: 0 24px;
  }
  .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 24px;
  }
  .tagline {
    align-self: center;
  }
  .tagline::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .done-btn {
    width: 100%;
  }
}

/* ==========================================================
FOOTER
========================================================== */
.footer {
  background: var(--ink);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__logo img {
  height: 52px;
  width: auto;
}
.footer__bir {
  position: relative;
  left: -10px;
  display: flex;
  justify-content: flex-start; /* or center / flex-end */
  margin-top: 24px;
}
.footer__bir img {
  display: block;
  width: 400px;
  height: auto;
}
.footer .tagline {
  text-align: right;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}
.footer h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--mist);
}
.footer li + li {
  margin-top: 0.55rem;
}
.footer a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
}
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.footer small {
  display: block;
  color: var(--text-muted, #c4d6cb);
  font-size: 0.85rem;
}

/* ---------- route transition ---------- */
#main {
  transition: opacity 0.2s;
}
#main.is-leaving {
  opacity: 0;
}
.notfound {
  padding: calc(var(--nav-h) + 6rem) 0 8rem;
  background: var(--ink);
}
.notfound .btn {
  margin-top: 2rem;
}

/* ==========================================================
REDUCED MOTION
========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .tl > span,
  .hero__copy,
  .hero .btn-row,
  .hero__people img {
    transform: none !important;
    opacity: 1 !important;
  }
  .statement.is-scrub .w {
    opacity: 1;
  }
}
