/*
 * Design reminder for this file:
 * Selected philosophy: Contemporary editorial corporate design with restrained Swiss influence.
 * Use navy, ivory, muted teal, disciplined spacing, thin rules, layered media,
 * restrained shadows, and motion that feels precise rather than flashy.
 */

:root {
  --background: #f7f5ef;
  --background-soft: #efebe1;
  --foreground: #1e2b42;
  --muted: #41526f;
  --muted-light: #5d6d84;
  --line: rgba(24, 40, 68, 0.1);
  --line-strong: rgba(20, 93, 105, 0.24);
  --primary: #20314b;
  --accent: #145d69;
  --accent-soft: #6aa6ad;
  --card: rgba(255, 255, 255, 0.55);
  --card-strong: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 22px 60px rgba(16, 28, 52, 0.08);
  --shadow-card: 0 12px 30px rgba(17, 29, 51, 0.08);
  --shadow-photo: 0 30px 70px rgba(10, 22, 44, 0.18);
  --page-max: 1280px;
  --radius: 1.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(100, 158, 170, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, #f3f1ea 100%);
  color: var(--foreground);
  min-height: 100vh;
}

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

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

::selection {
  background: rgba(103, 159, 170, 0.2);
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(18, 32, 57, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 57, 0.35) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 246, 0.84);
  border-bottom: 1px solid rgba(26, 41, 69, 0.08);
}

.header-grid,
.footer-grid,
.split-band,
.section-heading-row,
.services-layout,
.infrastructure-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.header-grid {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 86px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(20, 34, 60, 0.14);
  background: linear-gradient(135deg, #1e2b43, #30486b);
  color: #f7f5ef;
  font-family: "Libre Baskerville", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong,
.footer-brand {
  font-family: "Libre Baskerville", serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy span {
  font-size: 0.8rem;
  color: var(--muted-light);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.98rem;
  color: #2f3f5c;
}

.site-nav a,
.footer-links a,
.text-link {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after,
.footer-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
}

.site-nav a:hover::after,
.footer-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.header-cta,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.95rem 1.45rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--primary);
  color: #f7f5ef;
  box-shadow: var(--shadow-card);
}

.button-secondary {
  border: 1px solid rgba(24, 40, 68, 0.14);
  background: rgba(255, 255, 255, 0.45);
  color: var(--primary);
}

.header-cta:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.header-cta:hover,
.button-primary:hover {
  background: var(--accent);
}

.button-secondary:hover {
  border-color: rgba(20, 93, 105, 0.35);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
}

.hero-section,
.services-section,
.infrastructure-section,
.about-section,
.contact-section {
  padding: 5.5rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 2.5rem;
  padding-top: 3.5rem;
}

.editorial-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(22, 37, 62, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.editorial-panel::before,
.about-quote-block::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 1rem auto auto 1rem;
  width: 58px;
  height: 1px;
  background: rgba(20, 93, 105, 0.45);
}

.eyebrow,
.section-label,
.mini-label,
.note-label {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-light);
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  color: #17263f;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.05;
  max-width: 14ch;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

p,
li {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--muted);
}

.lead {
  margin-top: 1.5rem;
  max-width: 58ch;
  font-size: 1.14rem;
}

.hero-actions,
.hero-notes,
.contact-methods,
.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 1rem;
  margin-top: 2rem;
}

.hero-notes {
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-notes > div {
  flex: 1 1 240px;
}

.note-label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.hero-visual-stack {
  position: relative;
  padding-top: 4rem;
}

.hero-photo,
.support-image {
  overflow: hidden;
  box-shadow: var(--shadow-photo);
  background: #dfe7eb;
}

.primary-photo {
  margin-left: 3.5rem;
}

.hero-photo img,
.support-image img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-aside-card {
  position: absolute;
  left: 0;
  bottom: -2rem;
  width: min(320px, 85%);
  padding: 1.5rem;
  background: var(--primary);
  color: #f7f5ef;
  box-shadow: var(--shadow-soft);
}

.hero-aside-card .mini-label,
.hero-aside-card li {
  color: #d9e3ec;
}

.hero-aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.intro-band {
  padding: 4rem 0;
}

.split-band,
.section-heading-row,
.about-grid,
.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  align-items: start;
}

.section-side-copy {
  max-width: 38ch;
  padding-top: 1.75rem;
}

.services-layout,
.infrastructure-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  margin-top: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card,
.about-quote-block {
  position: relative;
  padding: 1.8rem;
  background: var(--card);
  border: 1px solid rgba(22, 37, 62, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.about-quote-block:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.service-number {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.training-image {
  margin-top: 4rem;
}

.infrastructure-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.infrastructure-copy {
  margin-left: -4rem;
  margin-top: 4rem;
  z-index: 1;
}

.about-copy {
  padding-right: 2rem;
}

.principles-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.principle-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.principle-mark {
  width: 14px;
  height: 14px;
  margin-top: 0.55rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-soft));
}

.about-quote-block {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(32, 49, 75, 0.96), rgba(28, 63, 86, 0.92));
}

.quote-mark,
.about-quote-block blockquote,
.quote-source {
  color: #f6f3ed;
}

.quote-mark {
  font-family: "Libre Baskerville", serif;
  font-size: 4rem;
  line-height: 0.8;
  margin-bottom: 1rem;
}

.about-quote-block blockquote {
  font-size: 1.45rem;
  line-height: 1.45;
}

.quote-source {
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  opacity: 0.84;
}

.contact-grid {
  align-items: center;
}

.contact-methods {
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.contact-methods a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

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

.footer-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.footer-links {
  gap: 1.25rem;
  justify-content: flex-end;
}

.hero-copy,
.hero-visual-stack,
.split-band > div,
.services-section,
.infrastructure-section,
.about-section,
.contact-section {
  animation: rise-in 820ms ease both;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .header-grid,
  .hero-grid,
  .split-band,
  .section-heading-row,
  .services-layout,
  .infrastructure-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-grid {
    gap: 1rem;
    padding: 1rem 0;
  }

  .primary-photo {
    margin-left: 0;
  }

  .hero-aside-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .training-image,
  .infrastructure-copy {
    margin-top: 0;
    margin-left: 0;
  }

  .about-copy {
    padding-right: 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1rem;
  }

  .site-header {
    position: static;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .hero-section,
  .services-section,
  .infrastructure-section,
  .about-section,
  .contact-section {
    padding: 4rem 0;
  }

  .hero-grid {
    padding-top: 2rem;
    gap: 1.75rem;
  }

  .editorial-panel,
  .service-card,
  .about-quote-block {
    padding: 1.45rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 9ch;
  }

  h2 {
    max-width: 12ch;
  }
}
