/* ==========================================================================
   Next Wave Digital Agency LLC
   Design system: "Glass City" - layered panes, bottle green, cobalt accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour */
  --ink: #0f2b27;
  --ink-2: #17423c;
  --ink-3: #24544c;
  --pane: #edf1ee;
  --pane-2: #f7f9f7;
  --white: #ffffff;
  --edge: #6fb3a0;
  --edge-soft: #cfe3db;
  --cobalt: #2439c4;
  --cobalt-dark: #1a2b9b;
  --cobalt-soft: #dfe3fa;
  --sand: #e4d9c4;
  --sand-soft: #f2ebdd;
  --muted: #5c6f6b;
  --muted-2: #8ba099;
  --line: #cdd9d4;
  --line-dark: rgba(237, 241, 238, 0.18);
  --warn: #b4531a;

  /* type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* scale, based on a 1.25 minor third at the small end and wider at display */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.125rem;
  --t-md: 1.25rem;
  --t-lg: 1.5rem;
  --t-xl: 2rem;
  --t-2xl: clamp(1.9rem, 4vw, 2.625rem);
  --t-3xl: clamp(2.25rem, 4.8vw, 3.5rem);
  --t-4xl: clamp(2.75rem, 6vw, 5.25rem);

  /* space */
  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  /* layout */
  --wrap: 1240px;
  --gutter: 1.5rem;
  --radius: 2px;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pane);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 var(--s-3);
  max-width: 68ch;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cobalt-dark);
}

ul,
ol {
  margin: 0 0 var(--s-3);
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 650;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-5) 0;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

::selection {
  background: var(--cobalt);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--pane);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-family: var(--ui);
  font-size: var(--t-sm);
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 860px;
}

.band {
  padding: var(--s-6) 0;
}

.band-tight {
  padding: var(--s-5) 0;
}

.band-ink {
  background: var(--ink);
  color: var(--pane);
}

.band-ink h2,
.band-ink h3,
.band-ink h4 {
  color: var(--pane-2);
}

.band-sand {
  background: var(--sand-soft);
}

.band-white {
  background: var(--white);
}

.rule-top {
  border-top: 1px solid var(--line);
}

.lede {
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

.band-ink .lede {
  color: var(--edge-soft);
}

/* Section heading block: a short label with a leading rule, then the heading.
   Sentence case on purpose, no tracked out caps. */
.sec-head {
  margin-bottom: var(--s-5);
}

.sec-label {
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s-3);
}

.sec-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--edge);
  flex: none;
}

.band-ink .sec-label {
  color: var(--edge);
}

.band-ink .sec-label::before {
  background: var(--edge);
}

.sec-head h2 {
  font-size: var(--t-2xl);
  max-width: 26ch;
}

.sec-head .lede {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.split-wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--s-5);
  align-items: end;
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   4. Buttons and small UI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-3);
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pane);
}

.btn-light {
  background: var(--pane);
  border-color: var(--pane);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--edge-soft);
  border-color: var(--edge-soft);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--edge);
  color: var(--pane);
}

.btn-outline-light:hover {
  background: var(--edge);
  border-color: var(--edge);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: var(--s-4);
}

.tag {
  display: inline-block;
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: var(--cobalt-soft);
  color: var(--cobalt-dark);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.utility {
  background: var(--ink);
  color: var(--edge-soft);
  font-family: var(--ui);
  font-size: var(--t-xs);
  font-stretch: 100%;
}

.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  min-height: 38px;
}

.utility a {
  color: var(--edge-soft);
  text-decoration: none;
}

.utility a:hover {
  color: var(--white);
  text-decoration: underline;
}

.utility-right {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 241, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--ui);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-family: var(--ui);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.16s ease;
}

.nav-links a:hover {
  border-bottom-color: var(--edge);
}

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--cobalt);
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

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

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

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero with the laminated pane stack
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--pane) 0%, var(--pane-2) 100%);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* faint vertical guides, like the ruled edges of a cut sheet */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-6);
  align-items: center;
}

.hero h1 {
  font-size: var(--t-4xl);
  letter-spacing: -0.032em;
  line-height: 0.98;
  margin-bottom: var(--s-3);
}

.hero-kicker {
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--s-3);
}

.hero-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--edge);
  flex: none;
}

.hero p {
  font-size: var(--t-md);
  color: var(--ink-2);
  max-width: 52ch;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}

.hero-proof li {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--muted);
  padding-right: var(--s-4);
  border-right: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.hero-proof li:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-proof b {
  display: block;
  font-family: var(--display);
  font-stretch: 112%;
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* the signature element */
.panes {
  position: relative;
  height: 430px;
  margin-left: auto;
  max-width: 460px;
  width: 100%;
}

.pane-card {
  position: absolute;
  left: 0;
  width: 78%;
  height: 128px;
  border: 1px solid var(--edge);
  background: rgba(111, 179, 160, 0.14);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: skewY(-8deg);
  backdrop-filter: blur(2px);
}

.pane-card:nth-child(1) {
  top: 0;
  left: 0;
  background: rgba(36, 57, 196, 0.1);
  border-color: var(--cobalt);
}

.pane-card:nth-child(2) {
  top: 84px;
  left: 7%;
  background: rgba(111, 179, 160, 0.16);
}

.pane-card:nth-child(3) {
  top: 168px;
  left: 14%;
  background: rgba(228, 217, 196, 0.5);
  border-color: #c9b78f;
}

.pane-card:nth-child(4) {
  top: 252px;
  left: 21%;
  background: rgba(15, 43, 39, 0.9);
  border-color: var(--ink);
}

.pane-card:nth-child(4) .pane-title,
.pane-card:nth-child(4) .pane-note {
  color: var(--pane);
}

.pane-title {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pane-note {
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--ink-2);
  line-height: 1.4;
}

.panes-caption {
  margin-top: var(--s-3);
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--muted);
  max-width: 40ch;
  margin-left: auto;
  text-align: right;
}

/* one orchestrated load, nothing else animates on scroll */
@media (prefers-reduced-motion: no-preference) {
  .pane-card {
    animation: laminate 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }

  .pane-card:nth-child(1) {
    animation-delay: 0.05s;
  }
  .pane-card:nth-child(2) {
    animation-delay: 0.16s;
  }
  .pane-card:nth-child(3) {
    animation-delay: 0.27s;
  }
  .pane-card:nth-child(4) {
    animation-delay: 0.38s;
  }

  @keyframes laminate {
    from {
      opacity: 0;
      transform: skewY(-8deg) translate(38px, -26px);
    }
    to {
      opacity: 1;
      transform: skewY(-8deg) translate(0, 0);
    }
  }
}

/* page header for interior pages */
.page-head {
  background: var(--ink);
  color: var(--pane);
  padding: var(--s-6) 0 var(--s-5);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--line-dark);
  transform: skewY(-8deg);
}

.page-head .wrap {
  position: relative;
  z-index: 2;
}

.page-head h1 {
  color: var(--pane-2);
  font-size: var(--t-3xl);
  max-width: 24ch;
}

.page-head p {
  color: var(--edge-soft);
  font-size: var(--t-md);
  max-width: 56ch;
  margin-bottom: 0;
}

.crumb {
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--edge);
  margin-bottom: var(--s-3);
}

.crumb a {
  color: var(--edge);
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   7. Differentiators
   -------------------------------------------------------------------------- */
.diffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diff {
  padding: var(--s-5) var(--s-4);
  border-right: 1px solid var(--line);
}

.diff:first-child {
  padding-left: 0;
}

.diff:last-child {
  border-right: 0;
  padding-right: 0;
}

.diff h3 {
  font-size: var(--t-md);
  margin-bottom: 0.6rem;
}

.diff p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}

.diff-mark {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-3);
  color: var(--cobalt);
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--white);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.16s ease;
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--edge);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.service:hover::before,
.service:focus-within::before {
  transform: scaleX(1);
}

.service:hover {
  background: var(--pane-2);
}

.service-mark {
  width: 38px;
  height: 38px;
  color: var(--cobalt);
  margin-bottom: var(--s-3);
}

.service h3 {
  font-size: var(--t-md);
  margin-bottom: 0.6rem;
}

.service h3 a {
  color: inherit;
  text-decoration: none;
}

.service h3 a:hover {
  color: var(--cobalt);
}

.service p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.service ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
}

.service ul li {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.service ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--edge);
}

/* deep service blocks on services.html */
.service-deep {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-deep:last-of-type {
  border-bottom: 1px solid var(--line);
}

.service-deep h3 {
  font-size: var(--t-xl);
  margin-bottom: var(--s-2);
}

.service-deep .service-mark {
  width: 44px;
  height: 44px;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.5rem;
  list-style: none;
  padding: var(--s-3) 0 0;
  margin: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
}

.deliverables li {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding-left: 1.1rem;
  position: relative;
}

.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cobalt);
}

.stack-note {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--muted);
  margin-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   9. Process
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  counter-reset: stage;
}

.stage {
  border-top: 3px solid var(--edge);
  padding-top: var(--s-3);
}

.stage-no {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--edge);
  display: block;
  margin-bottom: 0.5rem;
}

.stage h3 {
  font-size: var(--t-md);
  margin-bottom: 0.6rem;
}

.band-ink .stage h3 {
  color: var(--pane-2);
}

.stage p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}

.band-ink .stage p {
  color: var(--edge-soft);
}

.stage-meta {
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--muted-2);
  margin-top: var(--s-2);
  display: block;
}

/* --------------------------------------------------------------------------
   10. About page: story, timeline, values, quote
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--edge-soft);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--s-5) var(--s-4);
  margin: 0;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--pane);
  border: 2px solid var(--cobalt);
}

.timeline .year {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--t-lg);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.timeline h3 {
  font-size: var(--t-md);
  margin-bottom: 0.4rem;
}

.timeline p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 56ch;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value {
  background: var(--pane-2);
  padding: var(--s-4);
}

.value h3 {
  font-size: var(--t-md);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.value h3::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--sand);
  border: 1px solid #c9b78f;
  flex: none;
  transform: translateY(1px);
}

.value p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}

.pull {
  border-top: 3px solid var(--edge);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
  margin: 0;
}

.pull blockquote {
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-stretch: 106%;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  max-width: 22ch;
}

.pull cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-style: normal;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-stretch: 112%;
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--edge);
}

.stat span {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--edge-soft);
}

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tier {
  background: var(--white);
  color: var(--ink);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
}

.tier-featured {
  background: var(--ink);
  color: var(--edge-soft);
}

.tiers .tier-featured h3,
.tiers .tier-featured .price {
  color: var(--pane-2);
}

.tiers .tier-featured .tier-sum,
.tiers .tier-featured li {
  color: var(--edge-soft);
}

.tier-featured li::before {
  border-color: var(--edge);
}

.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.tier h3 {
  font-size: var(--t-lg);
  margin: 0;
  color: var(--ink);
}

.tier-featured .tag {
  background: var(--edge);
  color: var(--ink);
}

.price {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: var(--t-2xl);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
  margin: var(--s-2) 0 0.3rem;
}

.price small {
  font-size: var(--t-sm);
  font-weight: 500;
  font-stretch: 100%;
  color: var(--muted);
  letter-spacing: 0;
}

.tiers .tier-featured .price small {
  color: var(--edge);
}

.tier-sum {
  font-size: 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
}

.tier-featured .tier-sum {
  border-bottom-color: var(--line-dark);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
}

.tier li {
  font-family: var(--ui);
  font-size: var(--t-sm);
  line-height: 1.5;
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--ink-2);
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cobalt);
}

.tier .btn {
  margin-top: auto;
  width: 100%;
}

/* add on table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

table.rate {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 0.95rem;
  min-width: 640px;
}

table.rate caption {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

table.rate th,
table.rate td {
  text-align: left;
  padding: 0.95rem var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.rate thead th {
  background: var(--pane);
  font-weight: 650;
  font-size: var(--t-sm);
  color: var(--ink);
}

table.rate tbody tr:last-child th,
table.rate tbody tr:last-child td {
  border-bottom: 0;
}

table.rate tbody th {
  font-weight: 650;
  color: var(--ink);
  width: 32%;
}

table.rate td.num {
  white-space: nowrap;
  font-weight: 650;
  color: var(--cobalt-dark);
}

table.rate .desc {
  color: var(--muted);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-3) 3rem var(--s-3) 0;
  font-family: var(--display);
  font-stretch: 106%;
  font-weight: 650;
  font-size: var(--t-md);
  letter-spacing: -0.015em;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--cobalt);
  border-bottom: 2px solid var(--cobalt);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq summary:hover {
  color: var(--cobalt);
}

.faq .answer {
  padding: 0 3rem var(--s-3) 0;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Testimonials
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.quote {
  border-left: 3px solid var(--edge);
  padding-left: var(--s-3);
}

.quote blockquote {
  margin: 0 0 var(--s-3);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.quote figcaption {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--ink);
  font-weight: 600;
}

.quote figcaption span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--ink);
  color: var(--pane);
  padding: var(--s-6) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 71%;
  top: -90px;
  width: 260px;
  height: 260px;
  background: rgba(111, 179, 160, 0.1);
  border: 1px solid var(--line-dark);
  transform: skewY(-8deg);
  pointer-events: none;
}

.cta .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--s-5);
  align-items: center;
}

.cta h2 {
  color: var(--pane-2);
  font-size: var(--t-2xl);
  margin-bottom: var(--s-2);
}

.cta p {
  color: var(--edge-soft);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-6);
  align-items: start;
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  padding: var(--s-4);
}

.field {
  margin-bottom: var(--s-3);
}

.field label {
  display: block;
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--ui);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--pane-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--cobalt);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.form-note {
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--muted);
  margin-top: var(--s-3);
}

.form-status {
  font-family: var(--ui);
  font-size: var(--t-sm);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  margin-bottom: var(--s-3);
  display: none;
}

.form-status.is-error {
  display: block;
  background: #fbeee6;
  border: 1px solid var(--warn);
  color: var(--warn);
}

.form-status.is-ok {
  display: block;
  background: var(--cobalt-soft);
  border: 1px solid var(--cobalt);
  color: var(--cobalt-dark);
}

.contact-card {
  border: 1px solid var(--line);
  background: var(--pane-2);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}

.contact-card h3 {
  font-size: var(--t-md);
  margin-bottom: var(--s-2);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--cobalt);
  flex: none;
  margin-top: 3px;
}

.contact-list .k {
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--muted);
  display: block;
}

.contact-list .v {
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

a.v:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. Legal pages
   -------------------------------------------------------------------------- */
.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 110px;
  border-left: 2px solid var(--line);
  padding-left: var(--s-3);
}

.legal-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: legal;
}

.legal-nav li {
  margin-bottom: 0.55rem;
}

.legal-nav a {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

.legal-nav a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.legal-body h2 {
  font-size: var(--t-lg);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.legal-body > h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.legal-body h3 {
  font-size: var(--t-md);
  margin-top: var(--s-4);
}

.legal-body p,
.legal-body li {
  font-size: 1.05rem;
}

.legal-meta {
  font-family: var(--ui);
  font-size: var(--t-sm);
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--pane-2);
  padding: var(--s-3);
  margin-bottom: var(--s-4);
}

.legal-meta p {
  margin: 0 0 0.35rem;
  font-size: var(--t-sm);
}

.legal-meta p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--edge-soft);
  padding: var(--s-6) 0 var(--s-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-dark);
}

.site-footer h4 {
  font-family: var(--ui);
  font-size: var(--t-sm);
  font-weight: 650;
  font-stretch: 100%;
  color: var(--white);
  margin-bottom: var(--s-3);
  letter-spacing: 0;
}

.site-footer p {
  font-size: 1rem;
  color: var(--edge-soft);
  max-width: 34ch;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--edge-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--s-3);
  color: var(--white);
  text-decoration: none;
}

.footer-brand svg {
  width: 34px;
  height: 34px;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-name span {
  color: var(--edge);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  font-family: var(--ui);
  font-size: var(--t-xs);
  color: var(--muted-2);
}

.footer-bottom a {
  color: var(--muted-2);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .split-wide,
  .split-head,
  .contact-grid,
  .cta .wrap,
  .service-deep {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-head {
    align-items: start;
  }

  .service-grid,
  .tiers,
  .quotes,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-4) var(--s-3);
  }

  .panes {
    margin-left: 0;
  }

  .panes-caption {
    text-align: left;
    margin-left: 0;
  }

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

  .legal-nav {
    position: static;
  }

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

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  :root {
    --s-6: 3.5rem;
    --s-7: 4.5rem;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--gutter) var(--s-3);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 0;
    font-size: 1.05rem;
  }

  .nav-links a[aria-current="page"] {
    color: var(--cobalt);
  }

  .nav .btn {
    display: none;
  }

  .site-header .wrap {
    position: relative;
  }

  .utility .wrap {
    justify-content: center;
    text-align: center;
  }

  .utility-address {
    display: none;
  }

  .diffs,
  .service-grid,
  .tiers,
  .quotes,
  .process,
  .values,
  .deliverables,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .diff {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }

  .diff:last-child {
    border-bottom: 0;
  }

  .panes {
    height: 400px;
    max-width: 100%;
  }

  .pane-card {
    width: 84%;
    height: 118px;
  }

  .pane-card:nth-child(2) {
    top: 78px;
  }
  .pane-card:nth-child(3) {
    top: 156px;
  }
  .pane-card:nth-child(4) {
    top: 234px;
  }

  .hero-proof li {
    border-right: 0;
    padding-right: 0;
    width: 50%;
  }
}

@media (max-width: 520px) {
  .stat-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
  }

  .hero-proof li {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .utility,
  .cta,
  .nav-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
