:root {
  --ink: #14212b;
  --ink-soft: #3a4a56;
  --paper: #eef3f6;
  --paper-deep: #d9e4eb;
  --sky: #8b5a2b;
  --sky-deep: #6b4420;
  --field: #1f5a48;
  --milk: #f7fafc;
  --line: rgba(20, 33, 43, 0.12);
  --shadow: 0 24px 60px rgba(15, 40, 60, 0.18);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 111, 173, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 90, 72, 0.1), transparent 55%),
    linear-gradient(180deg, #f4f8fa 0%, var(--paper) 40%, #e8eef2 100%);
  min-height: 100vh;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(238, 243, 246, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 11ch;
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 0.35rem;
  background: var(--sky);
  color: white !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(26, 111, 173, 0.28);
}

.nav-cta:hover {
  background: var(--sky-deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 32, 0.35) 0%, rgba(10, 22, 32, 0.2) 35%, rgba(10, 22, 32, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 22, 32, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 12ch;
  text-wrap: balance;
  animation: rise 0.9s var(--ease) both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.22s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn-primary {
  background: white;
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--milk);
  color: var(--ink);
}

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

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

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

.btn-sky:hover {
  background: var(--sky-deep);
  color: white;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }

  .split.reverse {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split.reverse .split-copy {
    order: 2;
  }
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.15rem;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.order-band {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 55%, #0b3d62 100%);
  color: white;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.order-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.order-inner {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
}

.order-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 1.25rem;
  color: white;
  max-width: none;
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-lines a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.contact-lines a:hover {
  border-bottom-color: white;
}

.center-block {
  text-align: center;
}

.center-block h2,
.center-block .prose p {
  margin-left: auto;
  margin-right: auto;
}

.center-block .prose p {
  max-width: 46ch;
}

.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 2.5rem;
  width: min(800px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.legal,
.contact-page {
  width: min(800px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  max-width: none;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

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

.contact-item {
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-item h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  max-width: none;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--sky);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: rgba(255, 255, 255, 0.35);
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-meta,
.footer-links {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

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

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sky-deep);
}

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .reveal,
  .hero-brand,
  .hero-lead,
  .hero-actions {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero-content {
    padding-bottom: 3rem;
  }
}
