:root {
  --blue: #0b497e;
  --blue-deep: #062743;
  --ink: #172230;
  --muted: #4d5e70;
  --paper: #f4f7fb;
  --line: #d7e1ea;
  --white: #ffffff;
  --ice: #d7e6f4;
  --measure: 72rem;
  --header: 4.5rem;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h3 {
  font-weight: 600;
  line-height: 1.2;
}

section {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.wrap {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  height: var(--header);
  background: rgba(6, 39, 67, 0.94);
  color: var(--white);
  backdrop-filter: blur(10px);
}

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

.brand img {
  width: 8.4rem;
}

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

nav a {
  color: var(--ice);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover,
nav a:focus-visible {
  color: var(--white);
}

.nav-contact {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: var(--white);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--white);
  color: var(--blue-deep);
}

.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(166, 204, 236, 0.22), transparent 42%),
    linear-gradient(160deg, #0d5a96 0%, var(--blue-deep) 58%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: end;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4.5rem, 9vw, 6.5rem);
}

.hero .eyebrow {
  color: #b9d4ec;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 6.4vw, 5.4rem);
}

.lead {
  max-width: 34rem;
  margin-top: 1.35rem;
  color: #d5e4f2;
  font-size: 1.2rem;
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.95rem 1.35rem;
  background: var(--white);
  color: var(--blue-deep);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

.button:hover,
.button:focus-visible {
  background: var(--ice);
}

.hero-panel {
  padding: 1.4rem 1.35rem 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-panel p {
  margin-bottom: 0.4rem;
  color: #b9d4ec;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-panel li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.15rem;
  font-weight: 500;
}

.hero-panel span {
  color: #9ec3e2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.services {
  padding: clamp(4.25rem, 8vw, 6rem) 0;
  background: var(--paper);
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head .eyebrow {
  margin: 0;
}

.section-head h2,
.contact h2,
.practice h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: service;
}

.cards li {
  counter-increment: service;
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.4rem 1.45rem;
  background: var(--white);
  border-radius: 1.15rem;
  border-top: 4px solid var(--blue);
  box-shadow: 0 18px 40px rgba(6, 39, 67, 0.08);
}

.cards li::before {
  content: counter(service, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
}

.cards h3 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.cards p {
  color: var(--muted);
}

.ops {
  padding: clamp(4.25rem, 8vw, 6rem) 0;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  counter-reset: ops;
}

.ops-list li {
  counter-increment: ops;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.ops-list li::before {
  content: counter(ops, decimal-leading-zero);
  display: block;
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}

.ops-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.ops-list p {
  max-width: 36rem;
  color: var(--muted);
}

.practice {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    var(--blue-deep);
  color: var(--white);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.practice-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "label title"
    "label text";
  column-gap: 3rem;
  row-gap: 1.25rem;
  align-items: start;
}

.practice .eyebrow {
  grid-area: label;
  margin: 0.4rem 0 0;
  color: #9ec3e2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.practice h2 {
  grid-area: title;
  max-width: 12ch;
}

.practice p:last-child {
  grid-area: text;
  max-width: 38rem;
  color: #d5e4f2;
  font-size: 1.2rem;
}

.contact {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

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

.contact .eyebrow {
  margin-bottom: 0.6rem;
}

.contact-intro {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--muted);
}

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

.contact-list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border-radius: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(6, 39, 67, 0.05);
}

.contact-list a::after {
  content: "→";
  align-self: end;
  margin-top: -1.4rem;
  color: var(--blue);
  font-size: 1.25rem;
}

.contact-list a span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.contact-primary {
  background: var(--blue) !important;
  color: var(--white);
}

.contact-primary span,
.contact-primary::after {
  color: #d7e6f4 !important;
}

.site-footer {
  background: var(--blue-deep);
  color: #c5d7e8;
  padding: 1.35rem 0;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bar img {
  width: 6.5rem;
}

.footer-bar p {
  font-size: 0.92rem;
}

.footer-bar a {
  color: var(--white);
  font-weight: 500;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.practice :focus-visible {
  outline-color: var(--white);
}

@media (max-width: 860px) {
  .hero-grid,
  .contact-grid,
  .cards,
  .ops-list,
  .practice-inner {
    grid-template-columns: 1fr;
  }

  .practice-inner {
    grid-template-areas:
      "label"
      "title"
      "text";
  }

  .practice .eyebrow {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .hero h1,
  .practice h2 {
    max-width: none;
  }

}

@media (max-width: 640px) {
  :root {
    --header: auto;
  }

  .site-header {
    height: auto;
  }

  .header-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding-block: 0.85rem;
  }

  .footer-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  section {
    scroll-margin-top: 7.5rem;
  }
}

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