:root {
  --bg: #0a0f1c;
  --bg-2: #111735;
  --surface: rgba(12, 18, 34, 0.78);
  --surface-strong: #111735;
  --surface-dark: #070b15;
  --text: #f3f7ff;
  --muted: #a5b1c5;
  --line: rgba(132, 145, 181, 0.16);
  --line-strong: rgba(132, 145, 181, 0.28);
  --primary: #5b7cff;
  --primary-2: #8b5cf6;
  --primary-dark: #eef3ff;
  --primary-soft: rgba(91, 124, 255, 0.18);
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.16);
  --warm: #aa8e67;
  --warm-deep: #8f734f;
  --warm-soft: rgba(170, 142, 103, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.26);
  --radius: 26px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(91, 124, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 2%, rgba(170, 142, 103, 0.24), transparent 18%),
    linear-gradient(180deg, #111735 0%, var(--bg) 45%, #0a0f1c 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto -8% 8% auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 142, 103, 0.2), transparent 68%);
  filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
  animation: driftGlow 14s ease-in-out infinite;
}

::selection {
  background: rgba(170, 142, 103, 0.38);
  color: white;
}

a {
  color: inherit;
}

p {
  line-height: 1.7;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 28, 0.82);
  border-bottom: 1px solid rgba(132, 145, 181, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  transition: box-shadow 260ms var(--ease-smooth), background 260ms var(--ease-smooth), border-color 260ms var(--ease-smooth);
}

.topbar.is-scrolled {
  background: rgba(10, 15, 28, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  border-bottom-color: rgba(170, 142, 103, 0.2);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.brand-link:hover .brand-logo {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.2;
}

.brand-logo {
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(132, 145, 181, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  background: white;
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: logoFloat 8s ease-in-out infinite;
}

.brand-logo-footer {
  width: 4rem;
  height: 4rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  transition: background 260ms var(--ease-smooth), color 260ms var(--ease-smooth), transform 260ms var(--ease-smooth), box-shadow 260ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 260ms var(--ease-smooth);
  pointer-events: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--warm));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.nav a:hover,
.nav a.active {
  color: white;
  background: rgba(170, 142, 103, 0.16);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(170, 142, 103, 0.18);
}

.nav a:hover::before,
.nav a.active::before {
  opacity: 1;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.hero,
.page-hero {
  position: relative;
  padding: 5.5rem 0 2rem;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(91, 124, 255, 0.18), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(170, 142, 103, 0.18), transparent 18%);
  pointer-events: none;
}

.hero-grid,
.split {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

h1,
h2,
h3,
.eyebrow {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 64ch;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--warm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.section {
  padding: 2rem 0;
}

.section-muted {
  position: relative;
}

.section-muted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

.section-heading {
  margin-bottom: 1rem;
}

.card,
.hero-card,
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(132, 145, 181, 0.12);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease-smooth), box-shadow 320ms var(--ease-smooth), border-color 320ms var(--ease-smooth);
}

.gallery-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(132, 145, 181, 0.12);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease-smooth), box-shadow 320ms var(--ease-smooth), border-color 320ms var(--ease-smooth);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
  border-color: rgba(91, 124, 255, 0.22);
}

.gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 380ms var(--ease-smooth);
}

.gallery-content {
  padding: 1rem;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.02);
}

.gallery-source {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
}

.gallery-source a {
  color: var(--warm);
  text-decoration: none;
}

.gallery-source a:hover {
  color: white;
}

.card::after,
.hero-card::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.card,
.hero-card {
  padding: 1.35rem;
}

.hero-card {
  border-color: rgba(132, 145, 181, 0.14);
}

.card:hover,
.hero-card:hover,
.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
  border-color: rgba(91, 124, 255, 0.22);
}

.hero-copy,
.hero-card,
.card,
.cta-card,
.section-heading {
  animation: fadeUp 700ms ease both;
}

.hero-card {
  animation-delay: 120ms;
}

.section-heading {
  animation-delay: 80ms;
}

.hero-copy > * {
  transform-origin: left center;
}

body.is-loaded .hero-copy > * {
  animation: slideIn 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-loaded .hero-copy > *:nth-child(1) {
  animation-delay: 40ms;
}

body.is-loaded .hero-copy > *:nth-child(2) {
  animation-delay: 110ms;
}

body.is-loaded .hero-copy > *:nth-child(3) {
  animation-delay: 180ms;
}

body.is-loaded .hero-copy > *:nth-child(4) {
  animation-delay: 250ms;
}

body.is-loaded .hero-card {
  animation: floatIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.is-loaded .section-heading {
  animation: slideIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -24% auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(170, 142, 103, 0.2), transparent 70%);
  pointer-events: none;
}

.logo-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.logo-showcase-mark {
  width: 5.75rem;
  height: 5.75rem;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(132, 145, 181, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  background: white;
  animation: logoPulse 6s ease-in-out infinite;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, var(--warm), var(--primary));
  box-shadow: 0 0 0 4px var(--warm-soft);
}

.button-row,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 260ms var(--ease-smooth), box-shadow 260ms var(--ease-smooth), background 260ms var(--ease-smooth), color 260ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.3), transparent 55%);
  transform: translateX(-120%);
  transition: transform 450ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button:hover::before {
  transform: translateX(120%);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  border-color: rgba(255, 255, 255, 0.16);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(132, 145, 181, 0.16);
  color: white;
}

.large {
  font-size: 1.1rem;
  line-height: 1.85;
}

.step,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 124, 255, 0.2), rgba(170, 142, 103, 0.18));
  color: white;
  font-weight: 700;
  border: 1px solid rgba(132, 145, 181, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stack {
  display: grid;
  gap: 1rem;
}

.mini-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(91, 124, 255, 0.12), rgba(170, 142, 103, 0.12)),
    var(--surface);
}

.footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(132, 145, 181, 0.12);
  background: linear-gradient(180deg, rgba(10, 15, 28, 0), rgba(10, 15, 28, 0.58));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 28rem;
}

.footer p {
  margin: 0.25rem 0;
}

.hero-card h2,
.card h2,
.cta-card h2 {
  color: white;
}

.section,
.page-hero,
.hero {
  scroll-margin-top: 90px;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.99);
  transition:
    opacity 760ms var(--ease-smooth),
    transform 760ms var(--ease-smooth);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-copy.is-visible h1 {
  animation: titleGlow 900ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 0 rgba(170, 142, 103, 0);
    letter-spacing: -0.05em;
  }
  60% {
    text-shadow: 0 8px 24px rgba(170, 142, 103, 0.24);
  }
  100% {
    text-shadow: none;
    letter-spacing: -0.04em;
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 16px 32px rgba(10, 18, 28, 0.12);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 20px 38px rgba(10, 18, 28, 0.16);
  }
}

@keyframes driftGlow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, -12px, 0);
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-link {
    width: 100%;
  }

  .hero-grid,
  .split,
  .grid.two,
  .grid.four,
  .gallery-grid,
  .cta-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, calc(100% - 1.15rem));
  }

  .hero,
  .page-hero {
    padding-top: 3.1rem;
  }

  .nav {
    gap: 0.35rem;
  }

  .nav a {
    padding: 0.55rem 0.8rem;
  }

  .brand-logo {
    width: 3.35rem;
    height: 3.35rem;
  }

  .logo-showcase {
    grid-template-columns: 1fr;
  }

  .logo-showcase-mark {
    width: 5rem;
    height: 5rem;
  }

  .card,
  .hero-card,
  .cta-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  body::after,
  body::before,
  .brand-logo,
  .logo-showcase-mark {
    animation: none;
  }
}
