/* Lumina Consultancy — shared styles */

:root {
  --ink: #0e1a36;
  --night: #0f2347;
  --night-deep: #0a1830;
  --paper: #f3f6fa;
  --white: #ffffff;
  --glow: #3ec6f2;
  --glow-soft: #b5eaff;
  --sky: #c4d8f5;
  --mist: #dfe7f3;
  --muted: #51607f;
  --leaf: #9bd13c;

  --font-display: "Geologica", "Commissioner", system-ui, sans-serif;
  --font-body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bubble: 28px 28px 28px 6px;
  --bubble-alt: 28px 28px 6px 28px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--glow);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.skip:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--white);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  display: block;
  width: auto;
  height: 60px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.nav a.nav__cta {
  margin-left: 8px;
  background: var(--glow);
  color: var(--ink);
  font-weight: 600;
}

.nav a.nav__cta:hover {
  background: var(--glow-soft);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--glow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--glow-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--dark {
  background: var(--night);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink);
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px 1px rgba(62, 198, 242, 0.7);
}

.on-night .eyebrow {
  color: var(--sky);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(62, 198, 242, 0.16), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--white);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(140px, 17vw, 210px);
  padding-bottom: clamp(150px, 17vw, 220px);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--glow);
}

.hero__lead {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--glow-soft);
}

.hero__text {
  max-width: 54ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__photo {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--bubble-alt);
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1.5px solid rgba(62, 198, 242, 0.55);
  border-radius: var(--bubble-alt);
}

/* Page hero (inner pages) */

.hero--page .hero__grid {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(130px, 14vw, 180px);
}

.hero--page h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.hero--page .hero__text {
  margin-top: 22px;
  font-size: 1.15rem;
}

/* Waveform of light */

.wave {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.45vw, 6px);
  height: clamp(90px, 11vw, 140px);
  padding-inline: var(--gutter);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.wave span {
  flex: 1 1 0;
  min-width: 2px;
  height: var(--h, 40%);
  border-radius: 999px;
  background: var(--c, var(--glow));
  opacity: var(--o, 0.9);
  transform-origin: center;
  animation: speak var(--t, 1.4s) ease-in-out var(--d, 0s) infinite alternate;
}

@keyframes speak {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

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

.section--night {
  background: var(--night);
  color: var(--white);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
}

.prose p + p {
  margin-top: 1.2em;
}

.prose {
  color: var(--muted);
}

.on-night .prose {
  color: rgba(255, 255, 255, 0.82);
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.pillar {
  padding: clamp(28px, 3.2vw, 40px);
  background: var(--white);
  border-radius: var(--bubble);
  box-shadow: 0 1px 0 var(--mist), 0 24px 48px -32px rgba(14, 26, 54, 0.25);
  transition: transform 0.25s ease;
}

.pillar:hover {
  transform: translateY(-6px);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--night);
  color: var(--glow);
}

.pillar__icon svg {
  width: 28px;
  height: 28px;
}

.pillar h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.pillar p {
  color: var(--muted);
}

/* Growth */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: start;
}

.split__media img {
  width: 100%;
  border-radius: var(--bubble);
}

.split__media {
  position: sticky;
  top: 40px;
}

.split h2 {
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.stat {
  padding: 26px 28px;
  border-radius: var(--bubble);
  background: var(--paper);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--night);
}

.stat__value small {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.split .btn {
  margin-top: 36px;
}

/* Good hands */

.hands {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}

.hands h2 {
  margin-bottom: 22px;
}

.hands__figure {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hands__value {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--glow);
}

.hands__label {
  max-width: 18ch;
  padding-bottom: 6px;
  line-height: 1.35;
  color: var(--sky);
}

.hands__media {
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

.hands__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--bubble-alt);
}

/* ---------- About ---------- */

.chapters {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 60px);
  background: var(--white);
  border-radius: var(--bubble);
}

.chapter:nth-child(even) {
  border-radius: var(--bubble-alt);
}

.chapter h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.chapter .prose {
  font-size: 1.1rem;
}

.meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.meter__value {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--glow);
}

.meter__bar {
  height: 6px;
  margin-block: 20px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.meter__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--glow), var(--leaf));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.is-visible .meter__bar span,
.no-js .meter__bar span {
  transform: scaleX(1);
}

.meter__label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact h2 {
  margin-bottom: 32px;
}

.channels {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel {
  display: block;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--bubble);
  text-decoration: none;
  transition: transform 0.2s ease;
}

a.channel:hover {
  transform: translateX(6px);
}

.channel__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel__value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form {
  padding: clamp(28px, 4.5vw, 56px);
  background: var(--white);
  border-radius: var(--bubble-alt);
  box-shadow: 0 32px 64px -40px rgba(14, 26, 54, 0.3);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--night);
  background: var(--white);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c4314b;
}

.field__error {
  display: block;
  min-height: 1.2em;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #c4314b;
}

.form__status {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form__captcha:not(:empty) {
  margin-bottom: 18px;
}

/* Honeypot field for spam bots, kept out of sight and out of the tab order */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-deep);
  color: var(--white);
}

.offices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 88px);
}

.office__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
}

.office address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__base a {
  color: var(--white);
  text-underline-offset: 4px;
}

.site-footer__base a:hover {
  color: var(--glow);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid,
  .split,
  .hands,
  .contact,
  .chapter {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__photo,
  .hands__media {
    justify-self: start;
    max-width: 380px;
  }

  .hero__photo img {
    aspect-ratio: 4 / 3;
    object-position: center 25%;
  }

  .split__media {
    position: static;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    inset: 100% var(--gutter) auto var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: var(--white);
    color: var(--ink);
    border-radius: 20px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
  }

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

  .nav a {
    padding: 14px 16px;
  }

  .nav a:hover {
    background: var(--paper);
  }

  .nav a[aria-current="page"] {
    color: var(--night);
    background: var(--paper);
  }

  .nav a.nav__cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .brand__logo {
    height: 50px;
  }
}

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

  .hero__photo::after {
    inset: 12px -10px -12px 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .meter__bar span {
    transform: scaleX(1);
  }
}
