.home-opening {
  background: #0a1b2c;
  color: #fbf7ee;
  border-bottom: 1px solid #26384a;
}

.home-opening-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #091522;
}
.home-opening-stage::after {
  position: absolute;
  inset: auto -2% -1px;
  height: clamp(14px, 2.2vw, 33px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #f5f0e6;
  pointer-events: none;
  content: '';
}

.home-opening-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  min-height: clamp(520px, 48vw, 695px);
  padding-block: clamp(52px, 6vw, 96px) 30px;
}

.home-opening-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-opening-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.02);
}

.home-opening-scene::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, #071422 0%, #071422ee 22%, #071422b5 41%, #07142220 69%, #07142208 100%),
    linear-gradient(0deg, #071422b3 0%, transparent 35%);
}

.home-opening-copy {
  align-self: center;
  padding-bottom: 28px;
}

.home-opening-name {
  color: #fff8e9;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.15;
}
.home-opening-brand .eyebrow {
  color: #e6d7bd;
  margin-top: 5px;
  font-size: 10px;
}

.home-opening h1 {
  margin-top: 18px;
  font-size: clamp(47px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.home-opening h1 em {
  color: #e4c890;
  font-size: .85em;
  font-weight: 400;
}

.home-opening-description {
  max-width: 42ch;
  margin-top: 23px;
  color: #e0e6eb;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.62;
}

.home-opening-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 25px;
  margin-top: 28px;
}

.home-opening-actions .button {
  background: #e0bd79;
  color: #0b1c2c;
  white-space: normal;
}

.home-opening-actions .button:hover {
  background: #f2d79d;
}

.home-opening-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 9px;
  border-bottom: 1px solid #c9a76a;
  font-size: 14px;
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .home-opening-scene img {
    animation: home-camera-drift 4.4s cubic-bezier(.16,.7,.25,1) both;
  }
}

@keyframes home-camera-drift {
  from { transform: scale(1.12) translateX(-1.6%); }
  to { transform: scale(1.02); }
}

.home-opening-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d4b16a63;
}

.home-opening-topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 24px 17px 0;
  font-size: 15px;
  font-weight: 700;
}

.home-opening-topics a + a {
  padding-left: 24px;
  border-left: 1px solid #d4b16a36;
}

.home-opening-topics a:hover,
.home-opening-link:hover {
  color: #f0cf8c;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.home-opening-topics span {
  color: #e0bd79;
}

@media (max-width: 720px) {
  .home-opening-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding-block: 220px 14px;
  }
  .home-opening-copy { padding-bottom: 0; }
  .home-opening-scene img { object-position: 76% center; }
  .home-opening-scene::after {
    background:
      linear-gradient(0deg, #071422 0%, #071422fa 40%, #071422b0 63%, #07142214 100%),
      linear-gradient(90deg, #07142292, transparent 90%);
  }
  .home-opening h1 { font-size: clamp(39px, 9vw, 58px); }
  .home-opening-description { margin-top: 16px; }
  .home-opening-actions { margin-top: 19px; }
  .home-opening-topics a { padding: 12px 8px 12px 0; font-size: 13px; line-height: 1.35; }
  .home-opening-topics a + a { padding-left: 8px; }
}

/* The opening, service pathways and closing share one architectural palette. */
.home-opening {
  background: #f5f0e6;
  color: #0b2035;
  border-bottom: 0;
}
.home-opening-stage { color: #fbf7ee; }
.home-opening-layout {
  min-height: clamp(540px, 45vw, 725px);
  padding-bottom: 78px;
}
.home-opening-copy { padding-bottom: 0; }

.home-opening h1 {
  font-size: clamp(63px, 8.1vw, 116px);
  line-height: .98;
  letter-spacing: -.06em;
  margin-top: 23px;
}
.home-opening h1 em { font-size: 1em; }
.home-opening-description {
  max-width: 34ch;
  margin-top: 27px;
  font-size: clamp(17px, 1.55vw, 21px);
}
.home-opening-scene::after {
  background:
    linear-gradient(90deg, #071422 0%, #071422df 21%, #0714228a 42%, #0714220d 68%),
    linear-gradient(0deg, #071422d9 0%, #0714221a 32%, transparent 60%);
}
.home-opening-scene img { object-position: 64% center; }
.home-opening-topics {
  position: relative;
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid #d3c7b1;
}
.home-opening-topics a,
.home-opening-topics a + a {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 25px clamp(12px, 2vw, 26px);
  border-color: #d3c7b1;
  transition: background-color .2s ease;
}
.home-opening-topics a:hover {
  background: #eee6d8;
  color: #0b2035;
  text-decoration: none;
}
.home-opening-topics a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.home-opening-topics a > img { margin-top: 3px; }
.home-opening-topics a .arrow { margin-top: 7px; color: #80612b; }
.home-opening-topics .home-topic-copy,
.home-topic-copy span { color: #374b5d; }
.home-topic-copy strong {
  display: block;
  color: #0b2035;
  font-family: var(--serif);
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}
.home-topic-copy span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

#solutions { background: #f5f0e6; padding-top: clamp(60px, 7vw, 112px); }
#solutions .section-intro {
  padding-bottom: 28px;
  border-bottom: 1px solid #cfc1a7;
  margin-bottom: 25px;
}
#solutions h2,
.approach h2,
#questions h2,
.home-closing h2 {
  font-size: clamp(36px, 5.05vw, 71px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
#solutions .section-intro > p {
  max-width: 36ch;
  color: #435364;
  font-size: 17px;
  line-height: 1.6;
}
#solutions .section-intro h2 em,
#questions h2 em { color: #80612b; }
#solutions .solution-grid { gap: clamp(30px, 5vw, 70px); }
#solutions .solution-card {
  background: transparent;
  color: var(--ink);
}
#solutions .solution-content h3,
#solutions .category-notes dt,
#solutions .card-link { color: var(--ink); }
#solutions .solution-content > p,
#solutions .category-notes dd { color: var(--body); }
#solutions .solution-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
#solutions .solution-content .eyebrow::before {
  width: 16px;
  border-top: 2px solid #b28d51;
  content: '';
}
#solutions .coverage-categories a,
#solutions .category-notes summary {
  color: var(--deep);
  font-weight: 700;
}
#solutions .coverage-categories .arrow,
#solutions .category-notes summary > span { color: #795d28; }
#solutions .category-notes summary { font-size: 14px; }
#solutions .card-link { font-weight: 800; }
#solutions .coverage-categories li,
#solutions .category-notes,
#solutions .card-link { border-color: #bbc5ce; }
#solutions .coverage-categories a:hover,
#solutions .category-notes summary:hover,
#solutions .card-link:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: .2em;
}
#solutions .coverage-categories a:focus-visible,
#solutions .category-notes summary:focus-visible { outline-color: #8a6a34; }
#solutions .solution-photo {
  position: relative;
  height: clamp(215px, 23vw, 320px);
  border-radius: 28px;
}
#solutions .solution-photo::after {
  position: absolute;
  content: '';
  inset: 0;
  background: linear-gradient(0deg, #0b203566, transparent 40%);
  pointer-events: none;
}
#solutions .solution-content {
  padding: clamp(21px, 2.5vw, 35px) 0 0;
}
.home-opening-actions .button,
.home-closing .contact-action .button { border-radius: 999px; }

.home-all-solutions {
  margin-top: clamp(24px, 3vw, 42px);
  text-align: center;
}

.approach {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b2035;
  color: #f9f2e4;
  border-top: 1px solid #b69862;
}
.approach::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 40%, #233e52 0%, transparent 58%),
    repeating-linear-gradient(120deg, transparent 0 79px, #d4b16a0d 80px 81px);
}
.approach .eyebrow,
.approach h2 em,
.approach-intro .text-link { color: #e6c68d; }
.approach-intro > p:not(.eyebrow),
.approach .steps p { color: #d1dbe4; }
.approach .steps li { border-color: #d4b16a50; }
.approach .steps li > span { color: #e6c68d; }
.approach .steps h3 { color: #fff8e9; }

#questions { padding-bottom: clamp(30px, 4vw, 54px); }
.carriers {
  border-bottom: 0;
  padding-block: 0 34px;
}
.carriers .carrier-top {
  padding-top: 20px;
  margin-bottom: 10px;
  border-top: 1px solid #cfc1a7;
}
.carriers #carrier-title {
  scroll-margin-top: 110px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.carriers .carrier-window { mix-blend-mode: multiply; }
.carriers .carrier-track { animation-duration: 46s; }
.carriers .carrier-group {
  min-width: 0;
  gap: 16px;
  padding-inline: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .carriers .carrier-window {
    mask-image: linear-gradient(to right, transparent, black 22px, black calc(100% - 22px), transparent);
  }
}
.carriers .carrier-group > div {
  flex: 0 0 196px;
  height: 68px;
  overflow: hidden;
}
.carriers .carrier-group img {
  flex: none;
  width: var(--logo-width, 188px);
  height: auto;
  max-width: none;
  max-height: none;
  transform: translate(var(--logo-x, 0px), var(--logo-y, 0px));
}

/* Size the visible artwork independently of the padding in each source PNG. */
.carrier-north-american { --logo-width: 207px; --logo-x: 8px; --logo-y: -5px; }
.carrier-fg { --logo-width: 83px; }
.carrier-foresters { --logo-width: 225px; }
.carrier-columbus { --logo-width: 253px; --logo-x: 40px; }
.carrier-liberty { --logo-width: 191px; }
.carrier-royal-neighbors { --logo-width: 204px; }

#questions, .carriers { background: #faf6ee; }
#questions .question-list { border-top: 1px solid #c9b38d; }
#questions .question-list details { border-color: #cfc1a7; }
#questions .question-list summary { color: #0b2035; }
#questions .question-list summary > span { color: #80612b; }

.home-closing {
  background:
    linear-gradient(90deg, #081827 0%, #081827f2 40%, #081827a6 100%),
    #081827 url('assets/aethelon-architectural-hero-900.webp') right center / cover no-repeat;
  border-top: 2px solid #bd9a5c;
}
.home-closing .contact-grid { padding-block: clamp(55px, 7vw, 106px); }

@media (max-width: 720px) {
  .home-opening-layout {
    min-height: 0;
    padding-block: clamp(145px, 35vw, 235px) 58px;
  }
  .home-opening h1 { font-size: clamp(49px, 12vw, 76px); }
  .home-opening-description { margin-top: 19px; }
  .home-opening-scene img { object-position: 79% center; }
  .home-opening-scene::after {
    background:
      linear-gradient(0deg, #071422 0%, #071422f2 35%, #071422a0 64%, #07142216 100%),
      linear-gradient(90deg, #07142264, transparent 90%);
  }
  .home-opening-topics { grid-template-columns: minmax(0, 1fr); }
  .home-opening-topics a,
  .home-opening-topics a + a {
    padding: 14px 15px;
    border-left: 0;
  }
  .home-opening-topics a + a { border-top: 1px solid #d3c7b1; }
  #solutions .solution-photo { border-radius: 20px; }
  .home-topic-copy strong { font-size: 19px; }
  .home-topic-copy span { margin-top: 3px; }
  .home-closing .contact-grid { padding-block: 54px; }
}

/* Homepage brand composition */
.branded-home .site-header {
  position: absolute;
  top: 58px;
  left: 0;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.branded-home .nav-row { justify-content: flex-end; min-height: 76px; }
.branded-home .portal-utility { background: #151615; }
.branded-home .home-opening-stage { background: #151615; }
.branded-home .home-opening-layout {
  min-height: clamp(650px, 54vw, 850px);
  padding-top: 140px;
  padding-bottom: 85px;
}
.branded-home .home-opening-copy { max-width: 48%; }
.branded-home .home-opening-name { font-size: clamp(28px, 3vw, 44px); }
.branded-home .home-opening h1 { font-size: clamp(58px, 6.2vw, 90px); }
.branded-home .home-opening-description { font-size: clamp(16px, 1.4vw, 20px); }
.branded-home .home-opening-scene img {
  object-position: center;
  animation: none;
  transform: scale(1.02);
}
.branded-home .home-opening-scene::after {
  background: linear-gradient(90deg, #11131185 0%, #11131140 36%, transparent 60%);
}
@media (prefers-reduced-motion: no-preference) {
  .branded-home .home-opening-scene img {
    animation: brand-camera 18s ease-in-out infinite alternate;
  }
}
@keyframes brand-camera {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.055) translateX(-.65%); }
}
@media (max-width: 900px) {
  .branded-home .home-opening-copy { max-width: 55%; }
}
@media (max-width: 720px) {
  .branded-home .site-header { top: 58px; }
  .branded-home .nav-row { min-height: 62px; }
  .branded-home #main-navigation { background: #17202a; }
  .branded-home .home-opening-layout { min-height: 0; padding-top: 320px; padding-bottom: 55px; }
  .branded-home .home-opening-copy { max-width: 100%; }
  .branded-home .home-opening-name { font-size: 31px; }
  .branded-home .home-opening h1 { font-size: clamp(49px, 12vw, 70px); }
  .branded-home .home-opening-scene img {
    height: 380px;
    object-position: 78% top;
  }
  .branded-home .home-opening-scene::after {
    background: linear-gradient(0deg, #151615 0%, #151615 54%, transparent 76%);
  }
}


/* Match the scale and palette of the surrounding site. */
.branded-home .site-header {
  background: linear-gradient(180deg, #0b2035f2, #0b2035b3 58%, transparent);
}
.branded-home .nav-row { min-height: 76px; }
.branded-home .nav-row nav > a { color: #fff8ed; text-shadow: 0 1px 4px #071422; }
.branded-home .nav-row .nav-cta {
  background: #0b2035;
  border-color: #c9ae79;
  color: #fff8ed;
  border-radius: 999px;
}
.branded-home .portal-utility { background: #0b2035; }
.branded-home .portal-utility a { color: #e9e5dc; }
.branded-home .home-opening-stage { background: #0b2035; }
.branded-home .home-opening-layout {
  min-height: clamp(570px, 43vw, 650px);
  padding-top: 105px;
  padding-bottom: 55px;
}
.branded-home .home-opening-copy { max-width: 48%; }
.branded-home .home-opening-name {
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.branded-home .home-opening-brand .eyebrow { margin-top: 9px; font-size: 10px; color: #e6d7bd; }
.branded-home .home-opening h1 {
  font-size: clamp(47px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-top: 23px;
}
.branded-home .home-opening h1 em { color: #e4c890; }
.branded-home .home-opening-description {
  font-size: 17px;
  line-height: 1.65;
  max-width: 35ch;
  margin-top: 22px;
  color: #e7ebef;
}
.branded-home .home-opening-scene img {
  width: 82%;
  height: 100%;
  margin-left: auto;
  object-fit: cover;
  object-position: right center;
  opacity: .9;
}
.branded-home .home-opening-scene::after {
  background:
    linear-gradient(90deg, #0b2035 0%, #0b2035f5 28%, #0b2035b3 43%, #0b203526 65%, #0b20351a),
    linear-gradient(0deg, #0b203580, transparent 35%);
}
.branded-home .home-opening-actions { margin-top: 25px; gap: 16px 23px; }
.branded-home .home-opening-actions .button { padding: 16px 22px; font-size: 12px; }
@media (max-width: 900px) {
  .branded-home .home-opening-copy { max-width: 55%; }
}
@media (max-width: 720px) {
  .branded-home .menu-toggle { background: #0b2035; border-color: #c9ae79; border-radius: 20px; }
  .branded-home .home-opening-layout { min-height: 0; padding-top: 245px; padding-bottom: 40px; }
  .branded-home .home-opening-copy { max-width: 100%; }
  .branded-home .home-opening-name { font-size: 25px; }
  .branded-home .home-opening h1 { font-size: clamp(43px, 10vw, 58px); margin-top: 18px; }
  .branded-home .home-opening-description { font-size: 16px; margin-top: 18px; }
  .branded-home .home-opening-scene img { width: 100%; height: 290px; object-position: 78% top; }
  .branded-home .home-opening-scene::after {
    background: linear-gradient(180deg, #0b203526 100px, #0b2035 285px);
  }
}

/* Commissioned architectural brand artwork: preserve room around the eagle. */
.branded-home .home-opening-scene img { width:100%; opacity:1; object-position:center; }
.branded-home .home-opening-scene::after {
  background: linear-gradient(90deg,#0b2035f5 0%,#0b2035de 25%,#0b203580 43%,#0b203510 64%,transparent);
}
@media(max-width:720px) {
  .branded-home .home-opening-scene img {height:310px; width:100%;object-position:80% center;}
  .branded-home .home-opening-scene::after {background:linear-gradient(180deg,#0b203510 140px,#0b2035 305px);}
}
