/* Aurora Sandstorm — automatedinfrastructure */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=Spline+Sans:wght@300;400;500;600&display=swap");

:root {
  --sand-50: #f7f0e4;
  --sand-100: #efe4d2;
  --sand-200: #e2d2b8;
  --sand-300: #cbb896;
  --sand-800: #3f3428;
  --sand-900: #2a2219;
  --aurora: #2f9b78;
  --aurora-deep: #1d6f56;
  --aurora-soft: rgba(47, 155, 120, 0.18);
  --violet: #6f5f94;
  --violet-haze: rgba(111, 95, 148, 0.22);
  --gold: #d4b86a;
  --gold-soft: rgba(212, 184, 106, 0.35);
  --cream: #faf6ef;
  --ink: #2a2219;
  --muted: #6a5c4c;
  --line: rgba(63, 52, 40, 0.14);
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Spline Sans", sans-serif;
  --shadow-dust: 0 18px 40px rgba(42, 34, 25, 0.12);
  --max: 1120px;
}

*,
*::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;
  letter-spacing: 0.01em;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--violet-haze), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, var(--aurora-soft), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, var(--gold-soft), transparent 55%),
    linear-gradient(165deg, var(--cream) 0%, var(--sand-100) 45%, #e8dcc8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(250, 246, 239, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--aurora);
}

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

.nav a {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand-800);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink);
  cursor: pointer;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.55rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.35s ease;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 40%, rgba(212, 184, 106, 0.55), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(47, 155, 120, 0.45), transparent 42%),
    radial-gradient(circle at 50% 80%, rgba(111, 95, 148, 0.35), transparent 45%);
  opacity: 0;
  transform: translateX(-30%) scale(0.8);
  transition: opacity 0.45s ease, transform 0.55s ease;
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  transform: translateX(0) scale(1.05);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-dust);
}

.btn-primary {
  background: linear-gradient(120deg, var(--aurora-deep), var(--aurora) 55%, var(--violet));
  color: #faf8f3;
}

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

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

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

/* Hero — full-bleed asymmetric, brand-first */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-bottom: 4rem;
}

.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);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(42, 34, 25, 0.72) 0%, rgba(42, 34, 25, 0.35) 48%, rgba(47, 155, 120, 0.2) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(111, 95, 148, 0.35), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 34rem;
  color: var(--cream);
  animation: drift-in 1.1s ease both;
}

.hero-content .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  margin-bottom: 1.4rem;
  color: var(--gold);
}

.hero-content h1 {
  color: var(--cream);
  margin-bottom: 0.85rem;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  letter-spacing: 0.05em;
}

.hero-content p {
  color: rgba(250, 246, 239, 0.86);
  font-weight: 300;
  font-size: 1.1rem;
  max-width: 28rem;
  margin-bottom: 1.8rem;
}

.hero-content .btn-primary {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

@keyframes dust-wave {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.section {
  padding: 3.5rem 0;
}

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

.section-head p {
  margin: 0;
}

.lead-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

.lead-block img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.9);
  box-shadow: var(--shadow-dust);
  animation: dust-wave 12s ease-in-out infinite;
}

.lead-meta {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.8rem;
}

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

.offer-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease, padding 0.3s ease;
}

.offer-row:hover {
  background: rgba(255, 255, 255, 0.35);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.offer-row h3 {
  margin: 0;
  color: var(--ink);
}

.offer-row p {
  margin: 0;
  font-size: 0.98rem;
}

.offer-row .price {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--aurora-deep);
  white-space: nowrap;
  font-size: 0.95rem;
}

.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.evidence blockquote {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--gold);
}

.evidence p {
  font-size: 1.02rem;
  color: var(--sand-800);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.evidence footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-tile,
.post-tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.service-tile img,
.post-tile img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.service-tile:hover img,
.post-tile:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.service-tile h3,
.post-tile h3 {
  margin: 0;
  color: var(--ink);
}

.service-tile p,
.post-tile p {
  margin: 0;
  font-size: 0.95rem;
}

.meta-line {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

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

.page-hero p {
  max-width: 38rem;
}

.prose {
  max-width: 42rem;
}

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

.prose ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.detail-side {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-self: start;
  position: sticky;
  top: 5.5rem;
}

.detail-side dl {
  margin: 0 0 1.5rem;
}

.detail-side dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-top: 1rem;
}

.detail-side dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

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

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-800);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

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

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

.form-status {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--aurora);
  background: var(--aurora-soft);
  color: var(--sand-900);
  display: none;
}

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

.form-status.is-error {
  border-left-color: #8b3a2f;
  background: rgba(139, 58, 47, 0.12);
}

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

.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-grid figure {
  margin: 0;
}

.team-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.85rem;
}

.team-grid figcaption strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.team-grid figcaption span {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(111, 95, 148, 0.08));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h2 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

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

.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--sand-800);
}

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

.footer-bottom {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  max-width: 420px;
  margin-left: auto;
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(145deg, rgba(250, 246, 239, 0.96), rgba(226, 210, 184, 0.95)),
    var(--sand-100);
  border: 1px solid var(--sand-300);
  box-shadow: var(--shadow-dust);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: drift-in 0.5s ease both;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
}

.cookie-actions a {
  font-size: 0.85rem;
}

.js-error {
  margin: 0.5rem 0;
  padding: 0.6rem 0.8rem;
  background: rgba(139, 58, 47, 0.12);
  color: #8b3a2f;
  font-size: 0.9rem;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--violet);
  margin-bottom: 0.2em;
}

@media (max-width: 900px) {
  .lead-block,
  .detail-layout,
  .footer-grid,
  .evidence,
  .grid-cards,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .offer-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(250, 246, 239, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 0.7rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    position: relative;
  }

  .detail-side {
    position: static;
  }
}
