/* GrowthBlaze — The Lumen Atrium */
:root {
  --porcelain: #F4F6F8;
  --mist: #E5EAEF;
  --ink: #101820;
  --sapphire: #155E75;
  --spark: #C9A227;
  --warm-grey: #7A828A;
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.125rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

/* Surfaces — one per section */
.surface-porcelain {
  background: var(--porcelain);
  color: var(--ink);
}

.surface-ink {
  background: var(--ink);
  color: var(--porcelain);
}

.surface-mist {
  background: var(--mist);
  color: var(--ink);
}

.surface-sapphire {
  background: var(--sapphire);
  color: var(--porcelain);
}

.spark {
  color: var(--spark);
}

.sapphire-text {
  color: var(--sapphire);
}

.warm {
  color: var(--warm-grey);
}

/* Header — porcelain on load, ink when sticky/scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--porcelain);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: var(--ink);
  color: var(--porcelain);
  border-bottom-color: rgba(244, 246, 248, 0.12);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  justify-self: start;
}

.wordmark:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.25rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sapphire);
}

.site-header.is-scrolled .header-cta {
  color: #7dd3e8;
}

.header-cta .arrow {
  transition: transform 0.25s var(--ease);
}

.header-cta:hover .arrow {
  transform: translateX(3px);
}

.header-cta:hover {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  width: 42px;
  height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  justify-self: end;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 4px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--sapphire);
  color: var(--porcelain);
  border-color: var(--sapphire);
}

.btn-primary:hover {
  background: #0f4c5c;
  border-color: #0f4c5c;
}

.btn-secondary {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

.btn-secondary:hover {
  background: rgba(16, 24, 32, 0.06);
}

.surface-ink .btn-secondary:hover,
.surface-sapphire .btn-secondary:hover {
  background: rgba(244, 246, 248, 0.08);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

/* Hero — The Lumen */
.hero-lumen {
  min-height: 92vh;
  padding: 2.5rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 0.75rem;
}

.hero-rule {
  height: 1px;
  background: var(--ink);
  position: relative;
  margin-bottom: 2rem;
}

.hero-rule::before,
.hero-rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--sapphire);
}

.hero-rule::before { left: 0; }
.hero-rule::after { right: 0; }

.hero-lumen h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.hero-lumen .standfirst {
  max-width: 42rem;
  font-size: 1.12rem;
  color: var(--ink);
  opacity: 0.9;
}

.trust-line {
  font-size: 0.88rem;
  color: var(--warm-grey);
  margin-top: 0.5rem;
}

/* Framed plate */
.framed-plate {
  position: relative;
  margin: 2.25rem 0 0;
  border: 1px solid var(--ink);
  padding: 0;
  background: var(--mist);
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.08);
  transition: box-shadow 0.8s var(--ease);
}

.framed-plate.is-bloom {
  box-shadow: 0 28px 72px rgba(21, 94, 117, 0.18), 0 8px 24px rgba(16, 24, 32, 0.1);
}

.framed-plate::before,
.framed-plate::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--sapphire);
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.framed-plate::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.framed-plate::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.framed-plate img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Lumen ladder */
.lumen-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
  max-width: 640px;
  position: relative;
}

.lumen-ladder::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14px;
  height: 2px;
  background: var(--mist);
  z-index: 0;
}

.lumen-ladder__fill {
  position: absolute;
  left: 8%;
  top: 14px;
  height: 2px;
  width: 0;
  background: var(--sapphire);
  z-index: 1;
  transition: width 0.9s var(--ease);
}

.lumen-ladder.is-climbed .lumen-ladder__fill {
  width: 84%;
}

.lumen-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.lumen-node__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--sapphire);
  background: var(--porcelain);
  transform: scale(0.7);
  opacity: 0.45;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), background 0.45s var(--ease);
}

.lumen-ladder.is-climbed .lumen-node__dot {
  transform: scale(1);
  opacity: 1;
  background: var(--sapphire);
}

.lumen-ladder.is-climbed .lumen-node:nth-child(2) .lumen-node__dot { transition-delay: 0.12s; }
.lumen-ladder.is-climbed .lumen-node:nth-child(3) .lumen-node__dot { transition-delay: 0.24s; }
.lumen-ladder.is-climbed .lumen-node:nth-child(4) .lumen-node__dot { transition-delay: 0.36s; }

.lumen-node__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

.lumen-node__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--sapphire);
  margin-bottom: -0.35rem;
}

.surface-ink .lumen-ladder::before {
  background: rgba(244, 246, 248, 0.2);
}

.surface-ink .lumen-node__dot {
  background: var(--ink);
}

.surface-ink .lumen-ladder.is-climbed .lumen-node__dot {
  background: var(--sapphire);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: 0.75rem;
}

.surface-ink .section-label,
.surface-sapphire .section-label {
  color: var(--spark);
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

/* Metric trio */
.metric-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.metric {
  border-top: 2px solid var(--sapphire);
  padding-top: 1rem;
}

.metric__value {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--sapphire);
  margin-bottom: 0.35rem;
}

.metric__label {
  font-size: 0.95rem;
  color: var(--warm-grey);
}

.surface-ink .metric {
  border-top-color: var(--spark);
}

.surface-ink .metric__value {
  color: var(--spark);
}

.surface-ink .metric__label {
  color: rgba(244, 246, 248, 0.65);
}

/* Stage grid */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.stage-card {
  padding: 0;
}

.stage-card__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sapphire);
  margin-bottom: 0.5rem;
}

.surface-ink .stage-card__num {
  color: var(--spark);
}

/* Capability list */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.cap-item {
  border-left: 2px solid var(--sapphire);
  padding-left: 1rem;
}

.cap-item h3 {
  margin-bottom: 0.4rem;
}

/* Work teasers */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.teaser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 1px solid rgba(16, 24, 32, 0.15);
}

.teaser h3 {
  margin-bottom: 0.4rem;
}

/* Programme / service blocks */
.programme-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.programme {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
}

.surface-ink .programme {
  border-bottom-color: rgba(244, 246, 248, 0.15);
}

.programme:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.programme__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sapphire);
}

.surface-ink .programme__num {
  color: var(--spark);
}

.programme__price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--sapphire);
  margin: 0.5rem 0 0.75rem;
}

.surface-ink .programme__price {
  color: var(--spark);
}

.split-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.split-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(16, 24, 32, 0.12);
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  padding: 1.35rem 0;
}

.surface-ink .faq-item {
  border-bottom-color: rgba(244, 246, 248, 0.15);
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(16, 24, 32, 0.25);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--sapphire);
  outline-offset: 1px;
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.checkbox-row input {
  margin-top: 0.3rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-aside {
  display: grid;
  gap: 0.35rem;
  font-size: 0.98rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

/* Page hero (inner) */
.page-hero {
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 1rem;
}

.page-hero .framed-plate {
  margin-top: 2rem;
}

.page-hero .framed-plate img {
  aspect-ratio: 18 / 8;
}

/* Legal prose */
.legal-prose {
  max-width: 46rem;
}

.legal-prose h2 {
  margin-top: 2.25rem;
}

.legal-prose h3 {
  margin-top: 1.5rem;
}

.meta-date {
  font-size: 0.9rem;
  color: var(--warm-grey);
  margin-bottom: 1.5rem;
}

.surface-ink .meta-date {
  color: rgba(244, 246, 248, 0.55);
}

/* Disclaimer */
.disclaimer {
  font-size: 0.88rem;
  color: var(--warm-grey);
  border-top: 1px solid rgba(16, 24, 32, 0.12);
  padding-top: 1.25rem;
  margin-top: 2rem;
  max-width: 48rem;
}

.surface-ink .disclaimer {
  color: rgba(244, 246, 248, 0.55);
  border-top-color: rgba(244, 246, 248, 0.15);
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 24, 32, 0.12);
  font-size: 0.85rem;
  color: var(--warm-grey);
}

.surface-ink .footer-bottom {
  border-top-color: rgba(244, 246, 248, 0.15);
  color: rgba(244, 246, 248, 0.55);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--warm-grey);
  max-width: 52rem;
  margin: 1.5rem 0 0;
  line-height: 1.55;
}

.surface-ink .footer-disclaimer {
  color: rgba(244, 246, 248, 0.45);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--porcelain);
  padding: 1.1rem 0;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 40rem;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-stage {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

.error-stage h1 {
  max-width: 14ch;
}

/* Thanks */
.thanks-block {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.value-item {
  padding-top: 1rem;
  border-top: 2px solid var(--sapphire);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .lumen-ladder__fill {
    width: 84% !important;
  }
  .lumen-node__dot {
    transform: scale(1) !important;
    opacity: 1 !important;
    background: var(--sapphire) !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: inherit;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(16, 24, 32, 0.1);
  }

  .site-header.is-scrolled .nav {
    border-bottom-color: rgba(244, 246, 248, 0.12);
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav li {
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  }

  .nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .header-cta {
    display: none;
  }

  .hero-lumen {
    min-height: 80vh;
    padding-top: 1.5rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.35rem;
  }

  .framed-plate img,
  .page-hero .framed-plate img {
    aspect-ratio: 16 / 10;
  }

  .metric-trio,
  .stage-grid,
  .cap-grid,
  .teaser-grid,
  .split-visual,
  .contact-layout,
  .footer-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lumen-ladder {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .lumen-ladder::before,
  .lumen-ladder__fill {
    display: none;
  }

  .programme {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 560px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}
