:root {
  --void: #05070c;
  --obsidian: #0a0e16;
  --glass: #121826;
  --midnight: #152033;
  --rain-silver: #b8c2ce;
  --mist: #8a96a8;
  --cyan: #6ecad8;
  --cyan-deep: #3a9aab;
  --ripple: rgba(110, 202, 216, 0.35);
  --line: rgba(184, 194, 206, 0.14);
  --text: #d7dde6;
  --text-dim: #9aa6b5;
  --danger: #e08a8a;
  --ok: #7dcea0;
  --radius: 2px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", sans-serif;
  --header-h: 4.25rem;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(58, 154, 171, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(21, 32, 51, 0.9), transparent 50%),
    linear-gradient(180deg, var(--void) 0%, var(--obsidian) 40%, #080c14 100%);
  background-attachment: fixed;
}

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

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

a:hover {
  color: #9fe0ea;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #eef2f6;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.45rem; letter-spacing: 0.04em; }

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--void);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Rain droplet texture overlay */
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(200, 220, 230, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 30% 65%, rgba(110, 202, 216, 0.35), transparent),
    radial-gradient(1px 1px at 55% 35%, rgba(184, 194, 206, 0.4), transparent),
    radial-gradient(1px 1px at 78% 15%, rgba(110, 202, 216, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 88% 72%, rgba(200, 220, 230, 0.35), transparent),
    radial-gradient(1px 1px at 42% 88%, rgba(184, 194, 206, 0.3), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(110, 202, 216, 0.25), transparent),
    radial-gradient(1px 1px at 65% 55%, rgba(200, 220, 230, 0.28), transparent);
  animation: drizzle 18s linear infinite;
}

@keyframes drizzle {
  from { transform: translateY(0); }
  to { transform: translateY(24px); }
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  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: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #eef2f6;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #dff4f8 0 12%, transparent 13%),
    linear-gradient(145deg, var(--cyan), var(--midnight));
  box-shadow: 0 0 0 1px rgba(110, 202, 216, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

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

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--rain-silver);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(10, 14, 22, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav.is-open { max-height: 20rem; }
  .nav-list {
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.85rem;
  }
}

/* Buttons with rain ripples */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(110, 202, 216, 0.18), rgba(110, 202, 216, 0.05));
  border-color: rgba(110, 202, 216, 0.55);
  color: #e8f7fa;
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(110, 202, 216, 0.28), rgba(110, 202, 216, 0.08));
  color: #fff;
}

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

.btn-ghost:hover {
  border-color: rgba(184, 194, 206, 0.4);
  color: #fff;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ripple);
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) scale(0);
  animation: rain-ripple 0.85s ease-out forwards;
  pointer-events: none;
}

@keyframes rain-ripple {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Surfaces */
.panel {
  background:
    linear-gradient(160deg, rgba(18, 24, 38, 0.92), rgba(10, 14, 22, 0.88));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.glass-edge {
  position: relative;
}

.glass-edge::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.07) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 38%, rgba(110, 202, 216, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 78%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px);
}

/* Hero - full bleed, brand first */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38) saturate(0.75) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  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.7) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 9vh, 5.5rem);
  max-width: 38rem;
  animation: rise-in 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero h1 {
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.12rem;
  max-width: 32rem;
  color: var(--rain-silver);
}

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

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

.section-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.section-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

@media (max-width: 860px) {
  .section-split { grid-template-columns: 1fr; }
}

.section-media {
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}

.section-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.85);
}

/* Service list */
.offer-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.offer-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: rgba(10, 14, 22, 0.92);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.offer-item:hover {
  background: rgba(18, 24, 38, 0.98);
}

.offer-item img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  filter: brightness(0.8);
}

.offer-item h3 {
  margin: 0 0 0.35rem;
  color: #eef2f6;
}

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

.offer-meta {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .offer-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .offer-item img {
    width: 100%;
    height: 160px;
  }
}

/* Testimonials as plain quotes, not cards */
.quote-rail {
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.quote-block blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--rain-silver);
  letter-spacing: 0.01em;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--mist);
}

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

@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  filter: brightness(0.78) saturate(0.85);
  transition: filter 0.3s ease;
}

.post-link:hover img {
  filter: brightness(0.9) saturate(0.95);
}

.post-link h3 {
  margin-bottom: 0.4rem;
}

.post-meta {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--cyan-deep);
  margin-bottom: 0.45rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

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

.page-hero .lead {
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--rain-silver);
}

.prose {
  max-width: 42rem;
}

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

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

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

.prose a { color: var(--cyan); }

/* Service detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.detail-aside {
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

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

.detail-aside dt {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--mist);
  margin-top: 0.85rem;
}

.detail-aside dd {
  margin: 0.2rem 0 0;
  color: var(--rain-silver);
  font-size: 1.15rem;
}

.include-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.include-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}

.include-list li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(110, 202, 216, 0.5);
  vertical-align: middle;
}

/* Team */
.team-list {
  display: grid;
  gap: 2.5rem;
}

.team-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: center;
}

.team-row img {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.25) brightness(0.9);
}

@media (max-width: 640px) {
  .team-row { grid-template-columns: 1fr; }
  .team-row img { width: 100%; height: 280px; }
}

/* Bootcamp curriculum timeline */
.timeline {
  border-left: 1px solid var(--line);
  margin-left: 0.5rem;
  padding-left: 1.75rem;
  display: grid;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(110, 202, 216, 0.15);
}

.timeline-week {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}

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

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(110, 202, 216, 0.55);
  box-shadow: 0 0 0 3px rgba(110, 202, 216, 0.12);
}

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

.form-field.has-error .field-error { display: block; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: rgba(224, 138, 138, 0.6);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.98rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2.5rem;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-aside address {
  font-style: normal;
  color: var(--text-dim);
  line-height: 1.8;
}

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

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #eef2f6;
  margin: 0 0 0.5rem;
}

.footer-tag { margin: 0; max-width: 18rem; }

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

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

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

.footer-col a {
  color: var(--mist);
  text-decoration: none;
}

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

.footer-col address {
  font-style: normal;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 0.98rem;
}

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

.footer-base p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(10, 14, 22, 0.96);
  border-top: 1px solid rgba(110, 202, 216, 0.25);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  animation: rise-in 0.45s ease both;
}

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

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  margin: 0;
  max-width: 42rem;
  color: var(--rain-silver);
  font-size: 0.98rem;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin: 0;
  line-height: 1;
}

/* Legal */
.legal-meta {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  body::before { animation: none; }
}
