/* Aurora Sandstorm — desert beige, emerald aurora, violet haze, pale gold */
:root {
  --sand: #e8dcc8;
  --sand-deep: #d4c4a8;
  --sand-dark: #a89070;
  --mineral: #f3ebe0;
  --ink: #2a241c;
  --ink-soft: #5a5044;
  --aurora: #2d9b7a;
  --aurora-bright: #3ecf9a;
  --violet: #7a5c9e;
  --violet-soft: #a88bc4;
  --gold: #e8d48a;
  --gold-pale: #f0e6c8;
  --surface: rgba(243, 235, 224, 0.72);
  --line: rgba(42, 36, 28, 0.12);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(62, 207, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(122, 92, 158, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 212, 138, 0.2), transparent 55%),
    linear-gradient(165deg, var(--sand) 0%, var(--mineral) 45%, var(--sand-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--aurora);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.08em; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.2em; }

.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(12px);
  background: rgba(232, 220, 200, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50% 40% 55% 45%;
  background:
    radial-gradient(circle at 30% 30%, var(--gold-pale), transparent 50%),
    linear-gradient(135deg, var(--aurora), var(--violet));
  animation: drift 8s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  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-soft);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  width: 2.4rem;
  height: 2.4rem;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 100%;
  transition: transform 0.25s ease;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(243, 235, 224, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav ul {
    flex-direction: column;
    padding: 1rem var(--space) 1.4rem;
    gap: 0.9rem;
  }
}

/* Buttons — soft illuminated dust waves */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 50%, rgba(240, 230, 200, 0.45), transparent 40%),
    radial-gradient(circle at 70% 40%, rgba(62, 207, 154, 0.35), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(168, 139, 196, 0.3), transparent 40%);
  opacity: 0;
  transform: translateX(-30%) scale(0.9);
  transition: opacity 0.45s ease, transform 0.6s ease;
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(10%) scale(1.05);
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--aurora) 0%, #3a8f75 50%, var(--violet) 100%);
  color: var(--gold-pale);
  box-shadow: 0 8px 28px rgba(45, 155, 122, 0.28);
}

.btn-primary:hover { color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: rgba(42, 36, 28, 0.25);
  color: var(--ink);
}

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed atmospheric composition */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.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: slow- ken 28s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 36, 28, 0.15) 0%, rgba(42, 36, 28, 0.55) 55%, rgba(42, 36, 28, 0.82) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(62, 207, 154, 0.25), transparent 45%),
    radial-gradient(ellipse at 20% 60%, rgba(122, 92, 158, 0.3), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) var(--space) clamp(3rem, 8vh, 5rem);
  color: var(--gold-pale);
}

.hero-content .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  margin: 0 0 0.35em;
  line-height: 0.95;
  animation: rise 1s ease-out both;
}

.hero-content h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  max-width: 18ch;
  color: var(--gold-pale);
  animation: rise 1s 0.15s ease-out both;
}

.hero-content .lead {
  max-width: 36ch;
  color: rgba(240, 230, 200, 0.88);
  font-weight: 300;
  animation: rise 1s 0.28s ease-out both;
}

.hero .btn-group { animation: rise 1s 0.4s ease-out both; }

.hero .btn-primary {
  background: linear-gradient(120deg, var(--aurora-bright), var(--violet));
}

.hero .btn-ghost {
  border-color: rgba(240, 230, 200, 0.45);
  color: var(--gold-pale);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--space);
}

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

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

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

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

.bleed-band {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0;
  background:
    linear-gradient(105deg, rgba(45, 155, 122, 0.12), rgba(122, 92, 158, 0.14)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  border-block: 1px solid var(--line);
}

.bleed-band .section { padding-block: 0; }

/* Offer list — not cards by default; interaction via links */
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.offer-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

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

.offer-list h3 { margin-bottom: 0.4rem; }

.offer-list .meta {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--sand-dark);
  margin-top: 0.75rem;
}

.offer-list img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.9);
}

@media (max-width: 700px) {
  .offer-list li { grid-template-columns: 1fr; }
  .offer-list img { order: -1; max-height: 200px; }
}

/* Journal preview */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 700px) {
  .journal-grid { grid-template-columns: 1fr; }
}

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

.journal-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.journal-item a:hover img {
  transform: scale(1.02);
  filter: saturate(1.1);
}

.journal-item time {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-dark);
}

/* Quote / evidence */
.evidence {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: 0.04em;
  line-height: 1.4;
  max-width: 28rem;
  margin: 0;
  color: var(--ink);
}

.evidence cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: sepia(0.15) saturate(0.85);
}

/* Page shell */
.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space) clamp(3rem, 8vw, 5rem);
}

.page-intro {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form input,
.form textarea,
.form select {
  font: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 100%;
}

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

.form .field-error {
  color: #8b3a3a;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { border-color: var(--aurora); color: var(--aurora); }
.form-status.is-error { border-color: #8b3a3a; color: #8b3a3a; }

/* Service / blog detail */
.detail-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(42, 36, 28, 0.75));
}

.detail-hero .inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--space);
  color: var(--gold-pale);
  width: 100%;
}

.include-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.include-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.03em;
}

.include-list li::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aurora), var(--violet));
  vertical-align: middle;
}

/* Methodology steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.5rem 0 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--aurora);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(42, 36, 28, 0.04);
  padding: 3rem var(--space) 2rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

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

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

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

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

.site-footer a:hover { color: var(--aurora); }

.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--sand-dark);
  letter-spacing: 0.06em;
}

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

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem var(--space);
  background: rgba(42, 36, 28, 0.92);
  color: var(--gold-pale);
  border-top: 1px solid rgba(232, 212, 138, 0.25);
  animation: rise 0.5s ease-out;
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.95rem;
}

.cookie-inner a { color: var(--gold); }

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

.cookie-banner .btn-ghost {
  border-color: rgba(240, 230, 200, 0.35);
  color: var(--gold-pale);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  letter-spacing: 0.2em;
  background: linear-gradient(120deg, var(--aurora), var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0%, 100% { border-radius: 50% 40% 55% 45%; transform: rotate(0deg); }
  50% { border-radius: 40% 55% 45% 50%; transform: rotate(8deg); }
}

@keyframes slow-ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

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