/* Cloudaianalyticspro — layered audit-room theme */
:root {
  --ink: #14282f;
  --ink-soft: #3a5259;
  --paper: #dfe8ec;
  --paper-deep: #c5d4db;
  --surface: #f2f6f8;
  --surface-raised: #ffffff;
  --jade: #2f7a6b;
  --jade-deep: #1f554a;
  --brass: #b8923a;
  --brass-soft: #e8d5a3;
  --coral: #c45c3a;
  --line: rgba(20, 40, 47, 0.12);
  --shadow: 0 18px 40px rgba(20, 40, 47, 0.08);
  --radius: 4px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Figtree", system-ui, sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --measure: 68ch;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 122, 107, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 146, 58, 0.14), transparent 50%),
    linear-gradient(165deg, var(--paper) 0%, var(--surface) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--jade-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--coral);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.u-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(242, 246, 248, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-header__brand span {
  color: var(--jade);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 550;
}

.site-nav__list a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--ink);
}

.site-nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--jade);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 122, 107, 0.28);
}

.btn--primary:hover {
  background: var(--jade-deep);
  color: #fff;
}

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

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

.btn--brass {
  background: var(--brass);
  color: #1a1608;
}

.btn--brass:hover {
  background: #a07d2e;
  color: #1a1608;
}

/* Hero — full-bleed layered */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 40, 47, 0.88) 8%, rgba(20, 40, 47, 0.55) 48%, rgba(47, 122, 107, 0.35) 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(232, 213, 163, 0.04) 18px,
      rgba(232, 213, 163, 0.04) 19px
    );
}

.hero__content {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(3.5rem, 9vh, 7rem);
  color: #f5f8f9;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero__brand em {
  font-style: normal;
  color: var(--brass-soft);
}

.hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 36ch;
  color: rgba(245, 248, 249, 0.9);
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.5%, 1%);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section--band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(20, 40, 47, 0.03) 40px,
      rgba(20, 40, 47, 0.03) 41px
    );
  border-block: 1px solid var(--line);
}

.section__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.75rem;
}

.section__intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.media-plane {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: var(--shadow);
}

.media-plane img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.media-plane::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(20, 40, 47, 0.35));
  pointer-events: none;
}

/* Offer list — not cards by default; interaction containers use light surface */
.offer-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .offer-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offer-item {
  padding: 0;
  border: none;
  background: transparent;
}

.offer-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.offer-item__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.offer-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.offer-item a:hover .offer-item__img img {
  transform: scale(1.05);
}

.offer-item h3 {
  margin-bottom: 0.35rem;
}

.offer-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* Quote / evidence */
.quote-stack {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .quote-stack {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.quote {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--brass);
}

.quote p {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.quote footer {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: normal;
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  margin: 1.5rem 0 2rem;
}

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

.rate-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rate-table td:last-child {
  font-weight: 650;
  white-space: nowrap;
}

.rate-note {
  background: rgba(47, 122, 107, 0.08);
  border-left: 3px solid var(--jade);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 560px;
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form__row--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.form label {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-family: var(--font-ui);
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
  border-color: var(--jade);
}

.form__error {
  color: var(--coral);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.form__status {
  font-family: var(--font-ui);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: rgba(47, 122, 107, 0.12);
  color: var(--jade-deep);
}

.form__status--err {
  background: rgba(196, 92, 58, 0.12);
  color: var(--coral);
}

.contact-aside {
  font-family: var(--font-ui);
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-aside dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.contact-aside dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

/* Blog */
.post-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .post-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-tease {
  display: grid;
  gap: 0.85rem;
}

.post-tease__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
}

.post-tease__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-tease time {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.post-body {
  max-width: 70ch;
}

.post-body h2 {
  margin-top: 1.75rem;
}

.prose {
  max-width: 70ch;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  display: block;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(47, 122, 107, 0.08);
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.page-hero--media {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #f5f8f9;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 1rem;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(20, 40, 47, 0.9), rgba(20, 40, 47, 0.45));
}

.page-hero--media .u-container {
  padding: 3rem 0;
}

.page-hero--media p {
  color: rgba(245, 248, 249, 0.88);
}

/* Process steps (engagements page) */
.process {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.process__step {
  position: relative;
  padding-left: 3.5rem;
  border-left: 2px solid var(--brass-soft);
  margin-left: 0.75rem;
  padding-bottom: 0.5rem;
}

.process__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.15rem;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: rgba(245, 248, 249, 0.88);
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: var(--brass-soft);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer h3 {
  font-size: 0.85rem;
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer__meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(245, 248, 249, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  max-width: 520px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-banner .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--jade);
  margin-bottom: 0.25rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
@media (max-width: 900px) {
  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__list {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface-raised);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }

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

  .site-nav__cta {
    display: none;
  }
}

.team-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member__img {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  max-width: 280px;
}

.team-member__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.story h3 {
  margin-bottom: 0.5rem;
}
