:root {
  --ink: #001f2b;
  --teal: #0d5d4e;
  --teal-deep: #09463b;
  --sand: #e8f0ec;
  --mist: #f4f7f6;
  --muted: #5b6b72;
  --line: rgba(0, 31, 43, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 31, 43, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 246, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 8px;
}

.brand span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.3rem auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.btn--solid {
  background: var(--teal);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--teal-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero — full-bleed image */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 31, 43, 0.28) 0%, rgba(0, 31, 43, 0.72) 52%, rgba(0, 31, 43, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 31, 43, 0.55) 0%, rgba(0, 31, 43, 0.15) 55%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: 7rem 0 4.5rem;
  max-width: 40rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero__lead {
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section--intro {
  padding-bottom: 1.5rem;
}

.section--tint {
  background: var(--sand);
}

.section--contact {
  background: linear-gradient(180deg, var(--mist), #e7efeb);
}

.section--band {
  padding: 0 0 4.5rem;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Module blocks with large images */
.module-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 560px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.module-block--flip .module-block__media {
  order: 2;
}

.module-block--flip .module-block__body {
  order: 1;
}

.module-block__media {
  min-height: 320px;
  overflow: hidden;
}

.module-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-block__body {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.module-block__body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.module-block__lead {
  margin: 0.85rem 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
}

.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.module-list li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.module-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.module-list li {
  color: var(--muted);
  font-size: 0.95rem;
}

.module-list li strong {
  color: var(--ink);
}

/* Portal grid */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.portal-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
}

.portal-item img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.portal-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

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

.split__visual {
  overflow: hidden;
  border-radius: 16px;
  min-height: 280px;
}

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

.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.audience li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.05rem;
}

.band {
  padding: 2.75rem clamp(1.5rem, 4vw, 3rem);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(13, 93, 78, 0.95), rgba(0, 31, 43, 0.96)),
    url("../assets/photos/hero-login.jpg") center/cover;
  color: var(--white);
}

.band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.band p {
  margin: 0.75rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36ch;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fbfcfb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(13, 93, 78, 0.35);
  border-color: var(--teal);
}

.contact-form__note {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form__note a {
  color: var(--teal);
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer__inner {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.site-footer a[href*="app."] {
  color: var(--teal);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, 1%, 0); }
}

@media (max-width: 980px) {
  .module-block,
  .module-block--flip {
    grid-template-columns: 1fr;
  }

  .module-block--flip .module-block__media,
  .module-block--flip .module-block__body {
    order: initial;
  }

  .module-block__media {
    max-height: 280px;
  }

  .portal-grid,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .portal-item {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .site-header__inner > .btn {
    display: none;
  }

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

  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__content {
    padding-top: 6rem;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 86vh;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-item {
    grid-template-columns: 1fr;
  }

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