/* Obsidian Rain — API Nexus Pro */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@300;400;500;600&family=Outfit:wght@200;300;400;500&display=swap");

:root {
  --void: #05070a;
  --obsidian: #0a0e14;
  --glass: #121820;
  --glass-lift: #1a222e;
  --midnight: #0d1b2a;
  --rain-silver: #a8b4c0;
  --rain-mist: #c0c8d0;
  --cyan-reflect: #7ec8d8;
  --cyan-deep: #4a9aab;
  --text: #d4dce4;
  --text-dim: #8a96a4;
  --line: rgba(126, 200, 216, 0.12);
  --line-strong: rgba(168, 180, 192, 0.22);
  --danger: #e07070;
  --ok: #6ec4a0;
  --font-display: "Outfit", sans-serif;
  --font-body: "IBM Plex Sans Condensed", sans-serif;
  --max: 1120px;
  --radius: 2px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--void);
  min-height: 100vh;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(13, 27, 42, 0.9), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(74, 154, 171, 0.08), transparent 50%),
    linear-gradient(180deg, var(--void) 0%, var(--obsidian) 40%, var(--midnight) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(192, 200, 208, 0.5), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(126, 200, 216, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(192, 200, 208, 0.4), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(126, 200, 216, 0.3), transparent),
    radial-gradient(1px 1px at 85% 40%, rgba(168, 180, 192, 0.45), transparent),
    radial-gradient(1px 1px at 45% 90%, rgba(126, 200, 216, 0.25), transparent);
  animation: rain-drift 18s linear infinite;
}

@keyframes rain-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(12px); }
}

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

a {
  color: var(--cyan-reflect);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rain-mist);
}

ul {
  list-style: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rain-mist);
}

.brand span {
  color: var(--cyan-reflect);
  font-weight: 200;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--rain-silver);
  margin: 5px auto;
  transition: transform 0.2s;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

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

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 20, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }

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

  .nav-list a {
    display: block;
    padding: 0.85rem 1.25rem;
    width: 100%;
  }
}

/* Typography */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--rain-mist);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 200;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 36rem;
}

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

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

.section-head p {
  color: var(--text-dim);
  max-width: 34rem;
}

/* Buttons — rain ripple */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--cyan-reflect);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--rain-mist);
  color: var(--void);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan-reflect);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(126, 200, 216, 0.08);
  color: var(--rain-mist);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(126, 200, 216, 0.5);
  transform: scale(0);
  animation: ripple-out 0.7s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-out {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

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

/* Hero — full bleed, brand first */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.7) contrast(1.1);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0.2) 35%, rgba(5, 7, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(13, 27, 42, 0.5) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  animation: hero-rise 1s ease-out both;
}

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

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rain-mist);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.hero__brand em {
  font-style: normal;
  color: var(--cyan-reflect);
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.18em;
  margin-top: 0.35rem;
  font-weight: 300;
}

.hero__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: var(--text);
  max-width: 28rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.hero__sub {
  color: var(--text-dim);
  max-width: 26rem;
  font-size: 1rem;
}

/* Split feature */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.feature-split ul {
  margin-top: 1.25rem;
}

.feature-split li {
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  color: var(--text-dim);
}

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

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

  .feature-split img {
    height: 240px;
  }
}

/* Service list — not cards by default; interaction containers for links */

.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.offer-item:hover {
  background: rgba(126, 200, 216, 0.03);
}

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

.offer-item h3 {
  margin-bottom: 0.25rem;
}

.offer-item h3 a {
  color: var(--rain-mist);
}

.offer-item h3 a:hover {
  color: var(--cyan-reflect);
}

.offer-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

@media (max-width: 700px) {
  .offer-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .offer-item img {
    width: 100%;
    height: 160px;
  }
}

/* Evidence quotes */

.evidence {
  border-left: 1px solid var(--cyan-deep);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.evidence blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--rain-silver);
  margin-bottom: 0.75rem;
}

.evidence cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

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

/* Blog */

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

.blog-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: brightness(0.75);
  border: 1px solid var(--line);
}

.blog-item time {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.blog-item h3 {
  margin: 0.35rem 0 0.5rem;
}

.blog-item h3 a {
  color: var(--rain-mist);
}

.blog-item p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

/* Curriculum timeline */

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-strong);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.25rem;
  animation: fade-in 0.6s ease both;
}

.timeline__item:nth-child(2) { animation-delay: 0.08s; }
.timeline__item:nth-child(3) { animation-delay: 0.16s; }
.timeline__item:nth-child(4) { animation-delay: 0.24s; }
.timeline__item:nth-child(5) { animation-delay: 0.32s; }
.timeline__item:nth-child(6) { animation-delay: 0.4s; }

@keyframes fade-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  background: var(--cyan-reflect);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(126, 200, 216, 0.15);
}

.timeline__week {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.25rem;
}

.timeline__item ul {
  margin-top: 0.5rem;
}

.timeline__item li {
  color: var(--text-dim);
  padding: 0.15rem 0;
  font-size: 0.95rem;
}

/* Page hero (inner) */

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.page-hero--media {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.7);
}

.page-hero--media .page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, var(--void) 100%);
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2.5rem;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 36rem;
  margin-top: 0.75rem;
}

/* Detail layouts */

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
}

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

.detail-aside dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-top: 1rem;
}

.detail-aside dd {
  color: var(--text);
  margin-top: 0.25rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.prose ul {
  margin: 1rem 0 1.5rem;
}

.prose li {
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  color: var(--text-dim);
}

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

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

/* Forms */

.form {
  max-width: 36rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--cyan-reflect);
}

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

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  color: var(--ok);
  border: 1px solid rgba(110, 196, 160, 0.35);
  background: rgba(110, 196, 160, 0.08);
}

.form-status--err {
  color: var(--danger);
  border: 1px solid rgba(224, 112, 112, 0.35);
  background: rgba(224, 112, 112, 0.08);
}

/* About portraits */

.team-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.team-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.75);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.team-row p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

/* Legal */

.legal-prose h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.legal-prose ul {
  margin: 0.5rem 0 1.25rem 1rem;
}

.legal-prose li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: rgba(5, 7, 10, 0.6);
}

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

.footer-grid h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.85rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  padding: 0.2rem 0;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

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

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 14, 20, 0.96);
  border-top: 1px solid var(--line-strong);
  padding: 1.25rem 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

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

.cookie-banner p {
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

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

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

/* 404 */

.error-page {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: flex;
  align-items: center;
  text-align: left;
  padding: 4rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 200;
  color: var(--cyan-reflect);
  line-height: 1;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* CTA band */

.cta-band {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.5), rgba(10, 14, 20, 0.2));
}

.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band p {
  color: var(--text-dim);
  max-width: 28rem;
  margin-top: 0.4rem;
}
