:root {
  --obsidian: #05070c;
  --obsidian-lift: #0b1018;
  --obsidian-glass: rgba(12, 18, 28, 0.72);
  --midnight: #0d1a2e;
  --midnight-mid: #13233a;
  --silver: #c5ced9;
  --silver-dim: #8a96a6;
  --rain: #9aa7b8;
  --cyan: #5ec8d6;
  --cyan-soft: #7fd4e0;
  --cyan-glow: rgba(94, 200, 214, 0.18);
  --text: #e4eaf0;
  --muted: #8f9bab;
  --line: rgba(154, 167, 184, 0.18);
  --droplet: rgba(197, 206, 217, 0.07);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shell: min(1100px, calc(100% - 2.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 70% 45% at 20% -5%, rgba(19, 35, 58, 0.9), transparent 55%),
    radial-gradient(ellipse 50% 35% at 95% 15%, var(--cyan-glow), transparent 50%),
    linear-gradient(180deg, #060910 0%, var(--obsidian) 40%, #070b12 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(1.5px 1.5px at 12% 18%, rgba(197, 206, 217, 0.55), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(127, 212, 224, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 47% 31%, rgba(197, 206, 217, 0.35), transparent),
    radial-gradient(1px 1px at 63% 78%, rgba(94, 200, 214, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 81% 22%, rgba(197, 206, 217, 0.4), transparent),
    radial-gradient(1px 1px at 91% 55%, rgba(127, 212, 224, 0.35), transparent);
}

.site-header,
main,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

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

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

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

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

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

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

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

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

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

.btn-rain {
  color: var(--obsidian);
  background: linear-gradient(160deg, var(--cyan-soft) 0%, var(--cyan) 55%, #3aa8b8 100%);
  border-color: transparent;
}

.btn-rain:hover {
  color: var(--obsidian);
  filter: brightness(1.06);
}

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

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

.rain-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 4px rgba(94, 200, 214, 0.15),
    0 0 0 10px rgba(94, 200, 214, 0.06);
  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 — full bleed, brand-led, asymmetric bottom stack */
.hero-rain {
  position: relative;
  min-height: min(92vh, 920px);
  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.45) contrast(1.1);
}

.hero-rain__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.35) 0%, rgba(5, 7, 12, 0.55) 40%, rgba(5, 7, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.75) 0%, transparent 55%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 7px,
      rgba(94, 200, 214, 0.03) 7px,
      rgba(94, 200, 214, 0.03) 8px
    );
}

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

.brand-hero {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 1.5rem;
  text-shadow: 0 0 40px rgba(94, 200, 214, 0.2);
}

.brand-hero span {
  display: block;
  color: var(--cyan-soft);
  font-weight: 300;
}

.hero-rain h1 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--rain);
  margin: 0 0 0.85rem;
  max-width: 32rem;
}

.hero-support {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

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

.page-hero {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(19, 35, 58, 0.35), transparent),
    var(--obsidian-lift);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

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

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

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

.section-head h2,
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.lede {
  color: var(--muted);
  margin: 0;
}

/* Glass panels */
.glass {
  background:
    linear-gradient(145deg, rgba(197, 206, 217, 0.06), rgba(94, 200, 214, 0.04)),
    var(--obsidian-glass);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(197, 206, 217, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  position: relative;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 48%, rgba(127, 212, 224, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 78%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  opacity: 0.7;
}

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

.primary-offer img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
  border: 1px solid var(--line);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: rgba(11, 16, 24, 0.65);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}

.service-row:hover {
  border-color: rgba(94, 200, 214, 0.45);
  background: rgba(19, 35, 58, 0.45);
}

.service-row img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  filter: saturate(0.65);
}

.service-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: var(--silver);
}

.service-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-item {
  padding: 1.5rem 1.75rem;
  border-left: 1px solid var(--cyan);
  background: linear-gradient(90deg, rgba(94, 200, 214, 0.08), transparent 70%);
  animation: rise-in 0.8s ease-out both;
}

.quote-item:nth-child(2) {
  animation-delay: 0.1s;
}

.quote-item:nth-child(3) {
  animation-delay: 0.2s;
}

.quote-item blockquote {
  margin: 0 0 0.75rem;
  font-weight: 300;
  font-size: 1.08rem;
  color: var(--text);
}

.quote-item cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.blog-teaser {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid var(--line);
  background: rgba(11, 16, 24, 0.55);
  transition: border-color 0.2s;
}

.blog-teaser:hover {
  border-color: rgba(94, 200, 214, 0.4);
}

.blog-teaser img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.8);
}

.blog-teaser h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1rem 1.1rem 0.4rem;
  color: var(--silver);
}

.blog-teaser p {
  margin: 0 1.1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  margin-bottom: 4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(94, 200, 214, 0.1), transparent 55%),
    rgba(11, 16, 24, 0.7);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.prose p {
  color: var(--rain);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 0.95rem;
}

.deliverables {
  padding-left: 1.1rem;
  color: var(--rain);
}

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

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

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

.pattern-item {
  padding: 1.35rem 1.4rem;
}

.pattern-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--silver);
}

.pattern-item .family {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}

.pattern-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(11, 16, 24, 0.55);
}

.price-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.price-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-row .amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--cyan-soft);
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.form-panel {
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--rain);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(5, 7, 12, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 200, 214, 0.15);
}

.field-error {
  min-height: 1.1rem;
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: #e08a9a;
  opacity: 0;
}

.field-error.is-visible {
  opacity: 1;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--cyan-soft);
}

.form-status.is-error {
  color: #e08a9a;
}

.contact-aside {
  padding: 1.5rem;
  color: var(--muted);
}

.contact-aside strong {
  color: var(--silver);
  font-weight: 500;
}

.contact-aside p {
  margin: 0 0 1rem;
}

.legal-prose {
  max-width: 44rem;
}

.legal-prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.35rem;
  margin: 2.25rem 0 0.65rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--rain);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-split img {
  width: 100%;
  border: 1px solid var(--line);
  filter: saturate(0.6) brightness(0.8);
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(4rem, 12vw, 7rem);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(94, 200, 214, 0.25);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.9);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--silver);
}

.footer-topic {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-grid p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

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

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-base p {
  margin: 0;
  color: var(--silver-dim);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(8, 12, 20, 0.94);
  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;
  justify-content: space-between;
}

.cookie-inner > p {
  margin: 0;
  flex: 1 1 18rem;
  color: var(--rain);
  font-size: 0.92rem;
}

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

.cookie-error {
  flex-basis: 100%;
  color: #e08a9a;
  margin: 0;
  font-size: 0.88rem;
}

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

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

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

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

  .site-nav a {
    padding: 0.85rem 1.25rem;
  }

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

  .primary-offer,
  .blog-grid,
  .pattern-grid,
  .contact-grid,
  .about-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 80px 1fr;
  }

  .service-row .meta {
    grid-column: 2;
  }

  .service-row img {
    width: 80px;
    height: 60px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-rain {
    min-height: 85vh;
  }

  .brand-hero {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }
}
