:root {
  --bg: #05070a;
  --bg-elevated: #0a1018;
  --midnight: #0d1b2a;
  --midnight-mid: #12263a;
  --glass: rgba(14, 24, 38, 0.72);
  --silver: #c5cdd8;
  --silver-dim: #8a96a8;
  --cyan: #5ec8d8;
  --cyan-soft: #7ad4e0;
  --cyan-deep: #3aa8b8;
  --line: rgba(94, 200, 216, 0.18);
  --line-soft: rgba(197, 205, 216, 0.12);
  --text: #d8dee8;
  --text-muted: #9aa6b8;
  --danger: #e08090;
  --ok: #6ec9a8;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 2px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(94, 200, 216, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(18, 38, 58, 0.9), transparent 50%),
    linear-gradient(180deg, #05070a 0%, #080d14 40%, #05070a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(197, 205, 216, 0.22) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 42%, rgba(94, 200, 216, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 78%, rgba(197, 205, 216, 0.14) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 12%, rgba(122, 212, 224, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 28%, rgba(197, 205, 216, 0.1) 0 1px, transparent 1.5px);
  background-size: 100% 100%;
  animation: droplet-drift 28s linear infinite;
}

@keyframes droplet-drift {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}

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

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

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

h1, h2, h3, .brand, .footer-brand {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--silver);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

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

.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.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(14px);
  background: rgba(5, 7, 10, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--cyan-soft); }

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

.site-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver-dim);
  font-weight: 400;
}

.site-nav a:hover { color: var(--cyan); }

.nav-cta {
  color: var(--bg) !important;
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover { filter: brightness(1.08); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--silver);
  margin: 0.28rem auto;
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-rain {
  background: linear-gradient(160deg, rgba(58, 168, 184, 0.35), rgba(13, 27, 42, 0.9));
  border-color: var(--cyan);
  color: var(--silver);
}

.btn-rain:hover {
  background: linear-gradient(160deg, rgba(94, 200, 216, 0.45), rgba(18, 38, 58, 0.95));
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--silver-dim);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.rain-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(94, 200, 216, 0.55);
  box-shadow: 0 0 0 1px rgba(197, 205, 216, 0.15);
  pointer-events: none;
  animation: rain-ripple 0.7s ease-out forwards;
}

@keyframes rain-ripple {
  from { transform: scale(0.15); opacity: 0.85; }
  to { transform: scale(1); opacity: 0; }
}

/* Hero — vertical brand stack over full-bleed rain glass */
.hero-rain {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-rain__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.38) contrast(1.1);
}

.hero-rain__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, rgba(5, 7, 10, 0.55) 45%, rgba(5, 7, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(13, 27, 42, 0.55), transparent 55%);
}

.hero-rain__content {
  padding: 4rem 0 3.5rem;
  max-width: 36rem;
  animation: rise-in 1s ease-out both;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eef3f8;
  margin: 0 0 1rem;
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(94, 200, 216, 0.25);
}

.hero-line {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: 1.25rem;
  animation: line-grow 1.2s ease-out 0.3s both;
}

@keyframes line-grow {
  from { width: 0; opacity: 0; }
  to { width: 4rem; opacity: 1; }
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--silver-dim);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

.section-muted {
  background: linear-gradient(180deg, transparent, rgba(13, 27, 42, 0.45), transparent);
  border-block: 1px solid var(--line-soft);
}

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

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--cyan);
  margin: 0 0 0.5rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(120deg, rgba(13, 27, 42, 0.65), transparent 60%);
}

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

/* Offer band */
.offer-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.offer-band img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 40px rgba(94, 200, 216, 0.08);
  filter: saturate(0.7) brightness(0.85);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--silver);
  margin: 1rem 0 1.5rem;
}

/* Service list — not cards; horizontal rules */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-soft);
}

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

.service-list a {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--silver);
}

.service-list a:hover { color: var(--cyan-soft); }

.service-list p { margin: 0.35rem 0 0; max-width: 34rem; }

.service-price {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
}

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

.service-tile {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.service-tile img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: saturate(0.65) brightness(0.8);
  border: 1px solid var(--line-soft);
}

.service-tile h2 {
  font-size: 1.6rem;
}

.service-tile h2 a {
  text-decoration: none;
  color: inherit;
}

.service-tile h2 a:hover { color: var(--cyan-soft); }

/* Quotes */
.quote-rail {
  display: grid;
  gap: 2rem;
}

.quote-item {
  border-left: 1px solid var(--cyan);
  padding-left: 1.25rem;
}

.quote-item blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--silver);
}

.quote-item cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--silver-dim);
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.blog-row img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.8);
  border: 1px solid var(--line-soft);
}

.blog-row h2 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.blog-row h2 a {
  text-decoration: none;
  color: var(--silver);
}

.blog-row h2 a:hover { color: var(--cyan-soft); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.tag-list li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

/* Pricing */
.price-stack {
  display: grid;
  gap: 0;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-soft);
}

.price-row:last-child { border-bottom: 1px solid var(--line-soft); }

.price-row ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

/* Curriculum timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 2.25rem 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(94, 200, 216, 0.55);
}

.timeline h3 { color: var(--silver); }

/* Prose / legal */
.prose {
  max-width: 42rem;
}

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

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

.detail-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  filter: saturate(0.65) brightness(0.85);
}

.deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverables li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.4rem;
  height: 1px;
  background: var(--cyan);
}

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

label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--silver-dim);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(94, 200, 216, 0.25);
}

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.field-error.is-visible { display: block; }

.form-status {
  margin-top: 1rem;
  min-height: 1.4rem;
}

.form-status.is-success { color: var(--ok); }
.form-status.is-error { color: var(--danger); }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 12, 18, 0.85);
  position: relative;
  z-index: 1;
}

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

.footer-brand {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.footer-topic { color: var(--cyan); font-size: 0.95rem; }

.footer-label {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 0.75rem;
}

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

.footer-links li { margin-bottom: 0.35rem; }

.footer-links a,
.site-footer a {
  text-decoration: none;
  color: var(--silver-dim);
}

.footer-links a:hover,
.site-footer a:hover { color: var(--cyan); }

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 16, 24, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
}

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

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

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

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

.cookie-error {
  flex-basis: 100%;
  color: var(--danger);
  font-size: 0.9rem;
}

.cookie-error[hidden] { display: none !important; }

/* 404 */
.error-panel {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-panel .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  letter-spacing: 0.12em;
  color: var(--cyan);
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 60px rgba(94, 200, 216, 0.3);
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.55) brightness(0.75);
}

@media (max-width: 900px) {
  .offer-band,
  .about-split,
  .blog-row,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-list li {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 10, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .header-inner { position: relative; }
}

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