:root {
  --ink: #0d2038;
  --ink-soft: #243a50;
  --paper: #f7f8f7;
  --white: #ffffff;
  --gold: #765d3f;
  --sea: #0d6b86;
  --sky: #dff3f7;
  --line: rgba(13, 32, 56, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --max: 1220px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.brand img {
  width: 168px;
  height: auto;
}

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

.nav-links a {
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.nav-contact {
  padding: 0.7rem 1rem;
  color: var(--white) !important;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  width: 19px;
  height: 1px;
  display: block;
  position: relative;
  background: currentColor;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button span::before {
  top: -6px;
}

.menu-button span::after {
  top: 6px;
}

.home-header {
  position: absolute;
  inset: 0 0 auto;
  color: var(--white);
  background: rgba(5, 17, 31, 0.44);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.home-header .brand img {
  filter: brightness(0) invert(1);
}

.home-header .nav-links a,
.home-header .menu-button {
  color: var(--white);
}

.home-header .nav-contact {
  color: var(--ink) !important;
  background: var(--white);
  border-color: var(--white);
}

.home-hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  background: var(--ink);
}

.division-panel {
  min-height: 46svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 4vw, 4rem);
  color: var(--white);
  isolation: isolate;
  text-decoration: none;
}

.panel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms ease;
}

.division-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 18, 31, 0.48);
  transition: background 500ms ease;
}

.division-panel:hover .panel-image {
  transform: scale(1.08);
}

.division-panel:hover::after {
  background: rgba(4, 18, 31, 0.27);
}

.panel-content {
  max-width: 460px;
}

.division-panel:nth-of-type(even) {
  justify-content: flex-end;
  text-align: right;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--sea);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.division-panel .eyebrow {
  color: #dff8ff;
}

.division-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
}

.panel-action {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-identity {
  width: min(660px, calc(100% - 40px));
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  color: var(--white);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-identity h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
  text-shadow: 0 8px 36px rgba(4, 18, 31, 0.55);
}

.hero-identity p {
  max-width: 570px;
  margin: 1.1rem auto 0;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  text-shadow: 0 3px 22px rgba(4, 18, 31, 0.8);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-white {
  background: var(--white);
}

.section-sky {
  background: var(--sky);
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
}

.section h1,
.section h2,
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.section h2 {
  max-width: 780px;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.lead {
  max-width: 730px;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.intro-links {
  border-top: 1px solid var(--line);
}

.intro-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}

.intro-links a:hover {
  color: var(--sea);
}

.page-hero {
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 18, 31, 0.56);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.7rem, 6vw, 6rem);
}

.page-hero p {
  max-width: 680px;
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  min-height: 220px;
  padding: 2rem;
  background: var(--white);
}

.principle span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.principle h3 {
  margin: 3.5rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
}

.division-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.division-row {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.division-row h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.division-row p {
  margin: 0;
  color: var(--ink-soft);
}

.division-row strong {
  color: var(--sea);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.contact-details {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-details span {
  display: block;
  color: var(--sea);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-details a {
  text-decoration: none;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(13, 32, 56, 0.24);
  border-radius: 0;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--sea);
  border-color: var(--sea);
}

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: #187349;
}

.form-status[data-state="error"] {
  color: #a32828;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  font-size: 1.8rem;
}

.site-footer {
  padding: 3.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

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

.footer-brand img {
  width: 170px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 430px;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .menu-button {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    padding: 1.5rem 20px 2rem;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-links[data-open] {
    display: grid;
  }

  .home-header .nav-links a {
    color: var(--ink);
  }

  .home-header .nav-contact {
    color: var(--white) !important;
    background: var(--ink);
  }

  .home-hero {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(300px, 1fr));
  }

  .division-panel {
    min-height: 54svh;
  }

  .hero-identity {
    top: 27svh;
  }

  .hero-identity p {
    display: none;
  }

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

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

  .division-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .shell,
  .narrow {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 146px;
  }

  .division-panel {
    padding: 2rem 1.4rem;
  }

  .hero-identity {
    width: calc(100% - 32px);
  }

  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .field-full,
  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
