/* Aurora Sandstorm — mineral dust + luminous aurora */

:root {
  --sand-50: #f7efe3;
  --sand-100: #ead9c4;
  --sand-200: #d4b896;
  --sand-700: #5c4a36;
  --sand-900: #2c241a;
  --aurora: #2fbf8a;
  --aurora-soft: #7ee0b8;
  --violet-haze: #7a5ea8;
  --violet-mist: #b39ad4;
  --pale-gold: #e4c76a;
  --dust: rgba(244, 230, 205, 0.55);
  --surface: rgba(255, 248, 238, 0.72);
  --ink: #2a2118;
  --ink-muted: #6a5a48;
  --line: rgba(92, 74, 54, 0.18);
  --radius: 2px;
  --font-display: "Rajdhani", "Avenir Next Condensed", sans-serif;
  --font-body: "Source Sans 3", "Gill Sans", sans-serif;
  --space: clamp(1rem, 2vw, 2rem);
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(126, 224, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 15%, rgba(179, 154, 212, 0.32), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(228, 199, 106, 0.22), transparent 55%),
    linear-gradient(165deg, #efe2d0 0%, #e8d5b8 42%, #dcc9b0 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

main,
.site-header,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--violet-haze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--sand-900);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

/* Header */

.site-header {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(247, 239, 227, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--pale-gold), transparent 45%),
    radial-gradient(circle at 70% 60%, var(--aurora), transparent 50%),
    radial-gradient(circle at 40% 80%, var(--violet-haze), #c4a882 70%);
  box-shadow: 0 0 18px rgba(47, 191, 138, 0.35);
  animation: aurora-breathe 7s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

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

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

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 239, 227, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.4rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.9rem;
  }
  .site-header { position: relative; }
}

/* Buttons — illuminated dust waves */

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  color: var(--sand-50);
  background:
    linear-gradient(120deg, var(--sand-700), var(--violet-haze) 45%, var(--aurora) 100%);
  background-size: 180% 180%;
  box-shadow: 0 10px 30px rgba(122, 94, 168, 0.22);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 50%, rgba(228, 199, 106, 0.45), transparent 35%),
    radial-gradient(circle at 70% 40%, rgba(126, 224, 184, 0.35), transparent 40%);
  opacity: 0;
  transform: translateX(-30%) rotate(8deg);
  transition: opacity 0.35s ease, transform 0.7s ease;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: translateX(25%) rotate(8deg);
}

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

.btn-ghost:hover {
  border-color: var(--aurora);
  box-shadow: 0 0 0 4px rgba(47, 191, 138, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Typography */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.12;
  margin: 0;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 38rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-haze);
  margin: 0 0 0.85rem;
}

/* Hero — full-bleed, brand-first, top-weighted */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: start;
  overflow: hidden;
  color: var(--sand-50);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: dust-drift 28s linear infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 36, 26, 0.72) 0%, rgba(44, 36, 26, 0.35) 42%, rgba(44, 36, 26, 0.55) 100%),
    radial-gradient(ellipse at 15% 20%, rgba(47, 191, 138, 0.32), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(122, 94, 168, 0.34), transparent 40%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 12vh, 7rem) 0 4rem;
}

.hero-copy-top {
  padding-top: clamp(5.5rem, 16vh, 9rem);
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin: 0 0 1.15rem;
  line-height: 0.95;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  animation: rise-in 1s ease both;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: 0.05em;
  line-height: 1.25;
  max-width: 18ch;
  margin: 0 0 1rem;
  color: var(--aurora-soft);
  animation: rise-in 1s ease 0.15s both;
}

.hero-support {
  max-width: 34rem;
  color: rgba(247, 239, 227, 0.88);
  margin: 0;
  animation: rise-in 1s ease 0.28s both;
}

.hero .btn-row {
  animation: rise-in 1s ease 0.4s both;
}

.hero .btn-ghost {
  color: var(--sand-50);
  border-color: rgba(247, 239, 227, 0.4);
}

/* Offer strip / service preview */

.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .offer-item {
    grid-template-columns: 1.1fr 1.4fr auto;
    align-items: start;
  }
}

.offer-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}

.offer-item p {
  margin: 0;
  color: var(--ink-muted);
}

.offer-meta {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-700);
  white-space: nowrap;
}

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

.offer-item a:hover h3 {
  color: var(--violet-haze);
}

/* Evidence / quotes */

.evidence {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .evidence {
    grid-template-columns: 1fr 1fr;
  }
}

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

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 0 0 1rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Split media section */

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

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

.split-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.9);
}

.split-media::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(47, 191, 138, 0.35), transparent);
}

/* Service / blog grids — interaction containers */

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

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

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
}

.tile-media {
  overflow: hidden;
  margin-bottom: 1.1rem;
  aspect-ratio: 16 / 10;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.tile:hover .tile-media img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.tile h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.tile p {
  margin: 0;
  color: var(--ink-muted);
}

.tile-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-700);
}

/* Page heroes (inner) */

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.05em;
  margin: 0 0 0.85rem;
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-muted);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin: 2.5rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.detail-hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 1rem;
}

@media (min-width: 900px) {
  .detail-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-700);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Method page steps */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

@media (min-width: 800px) {
  .step {
    grid-template-columns: 5rem 1fr;
  }
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--aurora);
}

.step h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40rem;
}

/* Forms */

.form {
  max-width: 34rem;
  display: grid;
  gap: 1.1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  width: 100%;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(47, 191, 138, 0.45);
  outline-offset: 1px;
}

.field-error {
  color: #8a2f2f;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(126, 224, 184, 0.18);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: rgba(180, 70, 70, 0.12);
  border-color: rgba(180, 70, 70, 0.3);
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(44, 36, 26, 0.04);
}

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

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--ink-muted);
  margin: 0;
  max-width: 22rem;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-haze);
  margin: 0 0 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

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

.footer-links a:hover {
  color: var(--ink);
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 1rem 0;
  background:
    linear-gradient(120deg, rgba(232, 217, 196, 0.96), rgba(214, 196, 168, 0.96)),
    var(--sand-100);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(44, 36, 26, 0.12);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

.island-error {
  margin: 0.5rem auto 0;
  width: var(--shell);
  color: #8a2f2f;
  font-size: 0.9rem;
}

/* 404 */

.error-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  background: linear-gradient(100deg, var(--sand-700), var(--aurora), var(--violet-haze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animations */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aurora-breathe {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); transform: scale(1); }
  50% { filter: hue-rotate(18deg) brightness(1.08); transform: scale(1.06); }
}

@keyframes dust-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, 1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
