:root {
  --navy: #0B1F33;
  --blue: #174A73;
  --gold: #C99A35;
  --gray: #F5F6F7;
  --graphite: #30363D;
  --line: #dfe3e7;
  --max: 1160px;
  --space-section: 4rem;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Open Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 1rem/1.65 var(--body);
  color: var(--graphite);
  background: #fff;
}

.certification-rail {
  position: fixed;
  z-index: 49;
  top: 50%;
  right: .75rem;
  display: flex;
  width: 156px;
  max-height: calc(100vh - 2rem);
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  transform: translateY(-50%);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  box-shadow: -4px 0 18px rgba(11, 31, 51, .08);
  overflow: visible;
}

.certification-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.certification-rail__title {
  margin: 0;
  color: #fff;
  font: 700 .72rem/1.2 var(--head);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.certification-rail__toggle {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(11, 31, 51, .16);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(11, 31, 51, .25);
  cursor: pointer;
  font: 600 1.1rem/1 var(--head);
  position: absolute;
  top: -.5rem;
  right: -.5rem;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.certification-rail__toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.06);
}

.certification-rail__toggle:focus-visible {
  /* Two rings, because the button sits on the navy panel when expanded and on the page itself
   * once docked: the white ring reads on dark backgrounds, the navy ring on light ones. */
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--navy);
}

.certification-rail__close-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.certification-rail__close-icon::before,
.certification-rail__close-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.certification-rail__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.certification-rail__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.certification-rail__logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.certification-rail__logos img {
  display: block;
  width: 100%;
  max-width: 112px;
  max-height: clamp(24px, calc((100vh - 12rem) / 4), 78px);
  object-fit: contain;
}

/* Docked, the rail collapses to a single vertical tab. The rail itself drops its background,
 * border and padding so nothing frames the button: the tab's border becomes the outer edge. */
.certification-rail.is-docked {
  width: auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.certification-rail.is-docked .certification-rail__header {
  justify-content: center;
}

.certification-rail.is-docked .certification-rail__title,
.certification-rail.is-docked .certification-rail__logos {
  display: none;
}

.certification-rail.is-docked .certification-rail__toggle {
  position: static;
  width: auto;
  height: auto;
  padding: .55rem .3rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 3px;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}

.env-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.env-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.env-card:hover img {
  transform: scale(1.05);
}


.env-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
  margin: 0 auto;
}

.env-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .8rem;
  background: linear-gradient(180deg, rgba(11,31,51,0) 40%, rgba(11,31,51,.85) 100%);
}

@media (max-width: 900px) {
  .env-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .env-grid { grid-template-columns: repeat(2, 1fr); }
  .env-desc {
    max-height: 6rem;
    opacity: 1;
  }
}

.env-label {
  color: #fff;
  font: 700 .72rem var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}

.env-desc {
  color: #dbe4ec;
  font: 400 .72rem var(--body);
  line-height: 1.35;
  margin: .4rem 0 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}

.env-card:hover .env-desc,
.env-card:focus-visible .env-desc {
  max-height: 6rem;
  opacity: 1;
}

.env-card:hover .env-overlay {
  background: linear-gradient(180deg, rgba(11,31,51,.1) 20%, rgba(11,31,51,.92) 100%);
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: var(--head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: .1rem;
}

.values-list {
  list-style: none;
  padding-left: 0;
}

.values-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
.values-list li::before {
  content: "";
  position: absolute;;
  left: 0;
  top: 0.15em;
  width: 1.1em;
  height: 1.1em;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231a2744" stroke-width="2.5"><rect x="3" y="3" width="18" height="18" rx="3"/><path d="M7 12l3 3 7-7"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}

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

.btn {
  display: inline-block;
  font: 700 .82rem var(--head);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
}

.btn:hover {
  background: #b98a2c;
  border-color: #b98a2c;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* header */
#site-header,
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  display: block;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
  text-decoration: none;
  font: 800 1.5rem var(--head);
  letter-spacing: .04em;
}

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

.brand small {
  display: block;
  font: 600 .55rem var(--head);
  letter-spacing: .18em;
  color: #b9c6d3;
  text-transform: uppercase;
}

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

.nav a {
  color: #fff;
  text-decoration: none;
  font: 600 .8rem var(--head);
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover:not(.btn) {
    border-color: var(--gold);
    color: var(--gold);
}
.nav a[aria-current=page]:not(.btn) {
  color: var(--gold);
}

.nav .btn {
  color: var(--navy);
  border: 2px solid var(--gold);
  padding: .4rem .7rem;
  margin-left: .5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  padding: .35rem .5rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: .22rem;
}

.nav-toggle__icon span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.is-open .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  color: #dbe4ec;
  padding: 6rem 0 5rem;
  background: linear-gradient(90deg, rgba(11, 31, 51, .96) 35%, rgba(11, 31, 51, .6)), url(../assets/img/hero.png) center/cover, var(--navy);
}

.hero h1 {
  color: #fff;
  max-width: 14ch;
}

.hero h1 span {
  color: var(--gold);
  display: block;
}

.hero p {
  max-width: 60ch;
  font-size: 1.1rem;
}

.hero--page {
  padding: 4rem 0 3.5rem;
}

.hero--page h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

/* sections */
.section {
  padding: var(--space-section) 0rem;
}

/* Anchor jumps on the projects page land well below the sticky header so the
 * section title has room to breathe instead of tucking under the nav. */
.section[id] {
  scroll-margin-top: 7rem;
}

.home-page {
  --space-section: 4rem;
}

.home-page > .section {
  padding-block: var(--space-section);
}

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

.section--navy {
  background: var(--navy);
  color: #dbe4ec;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.lead {
  max-width: 85ch;
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.grid-operations{
    display:grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 1.4rem;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: .6rem;   /* invisible bridge replaces the old margin gap */
  margin-bottom: -0.6rem;  /* cancels the extra spacing this adds to layout */
}

.nav-dropdown__toggle {
  color: #fff;
  text-decoration: none;
  font: 600 .8rem var(--head);
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-dropdown__toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-dropdown__expand {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-dropdown__expand::after {
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-.15rem) rotate(45deg);
}

.nav-dropdown.is-open .nav-dropdown__expand::after {
  transform: translateY(.15rem) rotate(225deg);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: .4rem 0;
  margin-top: 0;        /* was .6rem — removed */
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__menu a {
  display: block;
  padding: .55rem 1rem;
  color: #fff;
  font: 500 .78rem var(--head);
  text-decoration: none;
  border-bottom: none;
}

.nav-dropdown__menu a:hover {
  background: rgba(255,255,255,.08);
  color: var(--gold);
}

@media (max-width: 900px) {
  .nav {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-dropdown__toggle {
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 2.75rem;
  }

  .nav-dropdown__expand {
    display: inline-flex;
  }

  .nav-dropdown__menu {
    display: none;
    position: static;
    flex-basis: 100%;
    min-width: 0;
    background: rgba(255,255,255,.05);
    border: 0;
    box-shadow: none;
    margin: 0 0 .5rem;
    padding: .25rem 0;
  }

  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: block;
  }

  .nav-dropdown__menu a {
    padding: .7rem 1rem;
  }
}

.card p {
  margin: 0;
}

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

.section--navy .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .15);
  border-top-color: var(--gold);
}

.band {
  background: var(--gray);
  border-bottom: 1px solid var(--line);
}

.band ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: center;
  font: 700 .78rem var(--head);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.band li::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  background: var(--gold);
  margin-right: .6rem;
}

.proof {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.proof strong {
  font: 800 5rem/1 var(--head);
  color: var(--gold);
}

.proof div {
  max-width: 60ch;
}

.note {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: .6rem 1rem;
  margin-top: 1.5rem;
  color: var(--graphite);
}

/* form */
form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

label {
  display: grid;
  gap: .3rem;
  font: 600 .85rem var(--head);
  color: var(--navy);
}

input,
select,
textarea {
  font: inherit;
  padding: .7rem;
  border: 1px solid #b8c0c8;
  border-radius: 4px;
  width: 100%;
}

.check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font: 400 .95rem var(--body);
}

.check input {
  width: auto;
  margin-top: .35rem;
}

.form-note {
  margin: 0;
  color: var(--graphite);
  font: 400 .9rem/1.5 var(--body);
}

.req {
  color: #B3261E;
  font-weight: 700;
}

/* Flag required fields the visitor left empty, once they have interacted. */
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #B3261E;
}

.check-list {
  margin: 1.5rem 0 2rem 1.25rem;
  padding: 0;
  list-style: disc;
  display: grid;
  gap: .7rem;
  max-width: 42rem;
  font: 600 1rem var(--body);
  color: var(--navy);
  text-align: left;
}

/* footer */
.site-footer {
  background: var(--navy);
  color: #b9c6d3;
  padding: 3rem 0 1.5rem;
  font-size: .9rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 2rem 4rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.card {
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:is(a, .card-link):is(:hover, :focus-visible) h3,
.card:has(a[href]):is(:hover, :focus-within) h3 {
  color: var(--blue);
  text-decoration: underline;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card:is(a, .card-link):is(:hover, :focus-visible),
.card:has(a[href]):is(:hover, :focus-within) {
  box-shadow: 0 6px 18px rgba(11, 31, 51, 0.12);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.footer-contact {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: .75rem 1rem;
  margin: 0;
}

.footer-ceo__photo {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  /* Stretch to the full height of the name/contact/social rows so the
     photo bottom lines up with the bottom of the LinkedIn bubble. */
  align-self: stretch;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.footer-ceo {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #fff;
  font: 700 .9rem/1.4 var(--head);
}

.footer-ceo span {
  color: var(--gold);
  font: 700 .7rem/1 var(--head);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-contact__list {
  grid-column: 2;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

/* Contact links mirror the Explore/Resources columns: muted text, white on hover. */
.site-footer .footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #b9c6d3;
  font-size: .9rem;
}

.footer-contact__icon {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-contact__link:hover,
.site-footer .footer-contact__link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* Phones swap the sales chat link for a text message to the same number. */
.site-footer .footer-contact__link--mobile {
  display: none;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-links a {
  color: #b9c6d3;
  font-size: .9rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-footer h3 {
  margin: 0 0 .9rem;
  color: var(--gold);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.footer-brand {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  margin-top: .4rem;
}

/* Row of social bubbles (LinkedIn, Google). Kept in its own grid cell so the
   buttons sit side by side without changing the photo/contact column layout. */
.footer-socials {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
}

/* Both bubbles are built from one box so the circles are identical: a fixed
   flex basis stops the row from shrinking either button into an ellipse. */
.footer-social {
  flex: 0 0 2.4rem;
  box-sizing: border-box;
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  transition: background .15s ease, border-color .15s ease, color .15s ease,
    transform .15s ease;
}

.footer-social svg {
  display: block;
  fill: currentColor;
  shape-rendering: geometricPrecision;
}

/* Optical sizing: the two marks carry very different padding inside their 24x24
   view box (the LinkedIn mark inks 17.5 of 24 units, the Google G inks all 24),
   so one shared size left the G about a third larger and heavier than LinkedIn.
   These boxes give both glyphs the same ink height. */
.footer-social--linkedin svg {
  width: 1.4rem;
  height: 1.4rem;
}

.footer-social--google svg {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-social:hover,
.footer-social:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.footer-brand .brand {
  gap: .55rem;
  font-size: 1.25rem;
}

.footer-brand .brand img {
  height: 42px;
}

.legal {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #8fa2b4;
  font-size: .8rem;
}

@media (max-width: 900px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer .footer-contact__link--desktop {
    display: none;
  }

  .site-footer .footer-contact__link--mobile {
    display: inline-flex;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
  }

  .footer-brand .brand {
    gap: .45rem;
    font-size: 1.1rem;
  }

  .footer-brand .brand small {
    font-size: .48rem;
    letter-spacing: .12em;
  }
}

/* Header and footer use the same Anuva mark height below tablet width. */
@media (max-width: 900px) {
  .site-header .brand img,
  .footer-brand .brand img {
    height: 42px;
  }
}

@media (max-width: 900px) {
  .wrap,
  .site-header .wrap,
  .site-footer .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
  }

  .nav .btn {
    margin-left: 0;
    margin-top: .5rem;
  }

  .nav.open {
    display: flex;
  }

}

@media (max-width: 680px) {
  .band ul {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: left;
    align-items: flex-start;
    gap: .8rem 0;
    text-align: center;
    padding: 2rem;
  }

  .band li::before {
    display: block;
    flex: 0 0 .5rem;
    margin: .25em .6rem 0 0;
  }

  .band li {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  .band li:first-child {
    justify-content: flex-start;
    text-align: left;
  }

  /* Phones get a tighter rhythm, but still one value for every section. This replaced a
   * .section-home override that gave the closing section half the spacing of its neighbors. */
  :root {
    --space-section: 3rem;
  }
}

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

/* ---- Homepage and page visuals ---- */

.icon-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  height: 100%;
  padding: 1.4rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  font: 700 .92rem var(--head);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.icon-tile:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(11, 31, 51, 0.12);
}

.icon-tile svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card h3 {
  margin-top: .4rem;
}

.project-card__tag {
  font: 700 .72rem var(--head);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
}

.project-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.visual-note {
  color: #5d6670;
  font-size: .9rem;
}

.project-visual-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.project-visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-visual-card h3 {
  margin: 0;
  padding: 1rem 1.1rem;
}

.project-card__logo {
  display: block;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1rem;
  object-fit: contain;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: center;
  gap: 7rem;
  margin-top: 2rem;
}

.about-story img {
  display: block;
  width: 100%;
  max-width: 20rem;
  max-height: 25rem;
  aspect-ratio: 4 / 5;
  margin-inline: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.about-story p {
  max-width: 55ch;
}

.about-story__year {
  margin: 0 0 .6rem;
  color: var(--blue);
  font: 700 .9rem var(--head);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.about-story a {
  font-weight: 700;
}

.approach-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.approach-list li {
  display: grid;
  gap: .35rem;
  padding: 1.1rem;
  background: #fff;
  border-left: 3px solid var(--gold);
}

.approach-list strong {
  color: var(--navy);
  font-family: var(--head);
}

.government-summary {
  margin: 0;
}

.certification-logo-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.certification-logo-bar img {
  display: block;
  width: 100%;
  height: 5rem;
  object-fit: contain;
}

@media (max-width: 700px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Narrow screens: keep room for the contact links beside the photo. */
  .footer-contact {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .certification-logo-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 1100px) {
  .home-page {
    --space-section: 3rem;
  }

  .certification-rail {
    top: auto;
    right: .75rem;
    bottom: .75rem;
    left: auto;
    width: min(360px, calc(100% - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    min-height: 0;
    gap: .65rem;
    padding: .75rem;
    transform: none;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(11, 31, 51, .2);
  }

  .certification-rail__logos {
    flex-direction: row;
    justify-content: space-between;
    gap: .5rem;
  }

  .certification-rail__logos img {
    width: auto;
    max-width: 23%;
    height: clamp(28px, calc(100vh - 34rem), 58px);
  }

  .certification-rail.is-docked .certification-rail__header {
    justify-content: center;
  }

}

/* Event showcase on the venues & events page: a logo beside a block of copy. These two sat in
 * inline styles, and the fixed 8rem gap in a non-wrapping flex row made the page wider than a
 * phone screen. Kept here so the row can stack on narrow screens. */
.event-showcase {
  padding: 5rem 10rem 0rem 10rem;
  display: flex;
  gap: 8rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .event-showcase {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem 0rem 1.5rem;
  }
}
