:root {
  --brand: #367da2;
  --brand-deep: #245a78;
  --brand-soft: #e8f2f7;
  --ink: #14232e;
  --ink-muted: #4a5d6a;
  --paper: #f4f7f9;
  --paper-elevated: #ffffff;
  --line: rgba(20, 35, 46, 0.12);
  --accent-warm: #c47a3a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(54, 125, 162, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(196, 122, 58, 0.08), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.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);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 249, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 249, 0.94);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img,
.brand__logo,
.custom-logo {
  height: 40px;
  width: auto;
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.menu a:hover,
.menu .current-menu-item > a {
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease);
}

.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;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 35, 46, 0.22);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

/* Hero — one composition, brand first */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(244, 247, 249, 0.2) 0%, rgba(244, 247, 249, 0.75) 48%, rgba(232, 242, 247, 0.55) 100%),
    radial-gradient(ellipse 80% 70% at 70% 40%, rgba(54, 125, 162, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(196, 122, 58, 0.18), transparent 55%),
    linear-gradient(180deg, #d7e8f1 0%, #f4f7f9 100%);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 35, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 46, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
  opacity: 0.55;
}

@keyframes hero-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

.hero__content {
  max-width: 42rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
  max-width: 36ch;
}

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

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

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section__intro h2,
.about-band h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

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

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.service-row:hover {
  background: rgba(54, 125, 162, 0.06);
  padding-left: 0.65rem;
}

.service-row__index {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand);
}

.service-row__eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.service-row__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.service-row__summary {
  display: block;
  color: var(--ink-muted);
  max-width: 46ch;
}

.service-row__go {
  font-size: 1.4rem;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}

.service-row:hover .service-row__go {
  transform: translateX(4px);
}

.about-band {
  padding-top: 0;
}

.about-band__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  padding: 2.5rem;
  background:
    linear-gradient(145deg, rgba(54, 125, 162, 0.12), transparent 45%),
    var(--paper-elevated);
  border: 1px solid var(--line);
}

.about-band p {
  color: var(--ink-muted);
}

.about-band__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem;
  border-left: 1px solid var(--line);
}

.about-band__place {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink) !important;
}

.about-band__mail {
  margin: 0 0 0.5rem;
}

/* Page template */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.page-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 80% at 90% 0%, rgba(54, 125, 162, 0.28), transparent 55%),
    linear-gradient(180deg, #e4eef4, var(--paper));
}

.page-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.page-hero__lead {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.prose {
  padding-bottom: 5rem;
  max-width: 42rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin-top: 2.25rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: #12202a;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}

.site-footer__tag,
.site-footer__label {
  margin: 0;
}

.site-footer__label {
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__bar p {
  margin: 0;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.service-row {
  opacity: 0;
  transform: translateY(12px);
  animation: none;
}

.services.is-visible .service-row {
  animation: rise 0.65s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@media (max-width: 860px) {
  .about-band__inner,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .about-band__aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .service-row {
    grid-template-columns: 2.5rem 1fr;
  }

  .service-row__go {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(244, 247, 249, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .site-nav__cta {
    width: fit-content;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    align-items: center;
    padding-top: 2.5rem;
  }

  .hero__brand {
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }
}
