:root {
  --quartz: #eef4f8;
  --ink: #0f1b2a;
  --muted: #44586c;
  --emerald: #14936f;
  --emerald-glow: #7dffd2;
  --violet: #7a52ff;
  --violet-soft: #c9bbff;
  --cyan: #4ad6ee;
  --glass: rgba(255, 255, 255, 0.46);
  --stroke: rgba(122, 82, 255, 0.2);
  --shadow: 0 22px 48px rgba(16, 24, 38, 0.14);
  --radius: 28px;
  --font: "Be Vietnam Pro", sans-serif;
  --display: "Syne", "Be Vietnam Pro", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 8%, rgba(125, 255, 210, 0.34), transparent 58%),
    radial-gradient(780px 380px at 100% 0%, rgba(122, 82, 255, 0.26), transparent 52%),
    radial-gradient(640px 360px at 80% 100%, rgba(74, 214, 238, 0.2), transparent 55%),
    linear-gradient(165deg, #f7fbff 0%, var(--quartz) 48%, #e3eef7 100%);
  min-height: 100vh;
  line-height: 1.72;
}

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

a {
  color: #3d2bb8;
  text-underline-offset: 3px;
}

.shell {
  width: min(1080px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 255, 0.7);
  border-bottom: 1px solid var(--stroke);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.brand-mark {
  width: 26px;
  height: 30px;
  clip-path: polygon(50% 0%, 100% 22%, 82% 100%, 18% 100%, 0% 22%);
  background: linear-gradient(155deg, var(--emerald-glow), var(--violet), var(--cyan));
  box-shadow: 0 0 20px rgba(125, 255, 210, 0.55);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: var(--glass);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
}

.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(125, 255, 210, 0.4), rgba(122, 82, 255, 0.22));
}

.crystal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    linear-gradient(120deg, rgba(125, 255, 210, 0.12), rgba(122, 82, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.hero-banner {
  position: relative;
  margin: 20px auto 8px;
  overflow: hidden;
  min-height: 420px;
}

.hero-banner img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-plate {
  position: absolute;
  left: 28px;
  right: auto;
  bottom: 28px;
  width: min(560px, calc(100% - 56px));
  padding: 28px;
}

.hero-plate h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 800;
}

.hero-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #14624c;
  margin: 0 0 10px;
}

.hero-plate p {
  margin: 0 0 16px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  padding: 12px 20px;
  border-radius: 999px;
}

.btn-pulse {
  position: relative;
  overflow: hidden;
  color: #07131c;
  background: linear-gradient(120deg, var(--emerald-glow), #e8fff8 42%, var(--violet-soft));
}

.btn-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-120%);
}

.btn-pulse:hover::after,
.btn-pulse.is-firing::after {
  animation: crystalPulse 0.7s ease;
}

@keyframes crystalPulse {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #f4fbff;
}

.section {
  padding: 48px 0;
}

.section h2,
.page-hero h1 {
  font-family: var(--display);
}

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.lede {
  color: var(--muted);
  max-width: 62ch;
}

.primary-work {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  overflow: hidden;
  margin-top: 20px;
}

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

.card-grid,
.blog-grid,
.team-grid,
.price-grid,
.slot-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.card-grid,
.slot-grid {
  grid-template-columns: repeat(2, 1fr);
}

.blog-grid,
.price-grid {
  grid-template-columns: repeat(2, 1fr);
}

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

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img,
.cover,
.portrait {
  width: 100%;
  object-fit: cover;
}

.card img,
.cover {
  height: 188px;
}

.portrait {
  height: 250px;
}

.card-body {
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.muted {
  color: var(--muted);
}

.quote-rail {
  padding: 32px 36px;
  border-left: 6px solid var(--emerald-glow);
}

.quote-rail blockquote {
  margin: 0;
  font-size: 1.22rem;
  font-family: var(--display);
}

.page-hero {
  padding: 40px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin: 0 0 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.prose p {
  margin: 0 0 14px;
}

form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.82);
}

.field-error,
.island-error {
  color: #9b1c3a;
  font-size: 0.9rem;
  margin: 0;
}

.form-success {
  padding: 16px;
  border-radius: 14px;
  background: rgba(20, 147, 111, 0.14);
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 20px;
  border-top: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.32);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 24px;
}

.footer-grid a {
  display: block;
  margin-top: 6px;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  margin-top: 0;
}

.footer-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-copy {
  opacity: 0.7;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(15, 27, 42, 0.9);
  color: #f4fbff;
  padding: 16px 0;
}

.cookie-banner a {
  color: var(--emerald-glow);
}

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.legal-list {
  padding-left: 18px;
}

.price-tag {
  font-weight: 600;
  color: #14624c;
}

.flow-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
  padding: 14px 16px 14px 64px;
  position: relative;
  margin-bottom: 10px;
}

.flow-list li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--display);
  color: var(--violet);
  font-weight: 700;
}

@media (max-width: 960px) {
  .card-grid,
  .blog-grid,
  .team-grid,
  .price-grid,
  .slot-grid,
  .split,
  .footer-grid,
  .cookie-inner,
  .primary-work {
    grid-template-columns: 1fr;
  }

  .hero-plate {
    position: relative;
    left: 0;
    bottom: 0;
    width: auto;
    margin: -48px 16px 16px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 60px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: #f7fbff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
  }

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

  .cookie-banner .btn-ghost {
    color: var(--ink);
    background: #f7fbff;
  }
}
