/* Editorial layout, interactive lists and motion. Shared styles live in site.css. */
html { scroll-padding-top: 6rem; }
.site-header :focus-visible { outline-color: var(--green-bright); }
.section h2 { font-weight: 730; }
.button { border-radius: .6rem; }
.section--navy { background: #10271f; }
.site-footer { background: #0a1d16; }
.footer-bottom { border-color: #9bb7a73b; }

/* Shared masthead for the homepage, section landings and detail pages. */
.masthead {
  --masthead-end: var(--navy-deep);
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #f5f8f1;
  background:
    radial-gradient(ellipse at 77% 4%, #284836, transparent 60%),
    var(--masthead-end);
}
.masthead .hero-picture, .masthead .hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.masthead .hero-picture { z-index: -3; }
.masthead .hero-picture img { object-fit: cover; object-position: 50% 56%; }
.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 48%, #0b2119d9 0%, #0b21197d 54%, transparent 100%),
    linear-gradient(180deg, #0b211935 0%, #0b211952 50%, var(--masthead-end) 100%);
}
.masthead:not(.masthead--image)::after {
  background:
    radial-gradient(ellipse at center, #0b21193d, var(--masthead-end) 95%),
    repeating-radial-gradient(ellipse at 87% 8%, transparent 0 27px, #badb9526 28px, transparent 29px 45px);
}
.masthead-inner {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  text-align: center;
}
.masthead-inner::before {
  content: "";
  display: block;
  width: 2.3rem;
  height: 3px;
  margin: 0 auto 1.1rem;
  background: var(--green-bright);
}
.masthead h1 {
  max-width: min(26ch, 100%);
  margin-inline: auto;
  font-size: clamp(2.35rem, 5.3vw, 5rem);
  letter-spacing: -.05em;
}
.masthead-inner > p {
  max-width: 37rem;
  margin: .85rem auto 0;
  color: #e0ebe5;
  font-size: clamp(1.05rem, 1.6vw, 1.27rem);
  text-wrap: balance;
}
.masthead .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: .5rem;
  color: #d6e7ce;
}
.masthead .eyebrow:hover { text-decoration: underline; text-underline-offset: .22em; }
.masthead :focus-visible { outline-color: var(--green-bright); }
.masthead--detail .masthead-inner { padding-block: clamp(3.25rem, 6vw, 6.4rem); }
.masthead--detail h1 { max-width: min(34ch, 100%); font-size: clamp(2.05rem, 4.6vw, 4.2rem); }
.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.55rem;
}
.masthead-actions .button--primary {
  color: var(--navy-deep);
  background: var(--green-bright);
}
.masthead-actions .button--primary:hover { background: #e8f5c9; }
.masthead-caption {
  position: absolute;
  right: var(--edge);
  bottom: .8rem;
  max-width: calc(100% - 2 * var(--edge));
  padding: .22rem .55rem;
  border-radius: .25rem;
  background: #102720e6;
  color: white;
  font-size: .8rem;
}
.view-services .masthead img { object-position: 54% 52%; }
.view-cases .masthead img { object-position: 52% 52%; }
.view-news .masthead img { object-position: 48% 57%; }
.view-about .masthead img { object-position: 48% 51%; }
.view-contact .masthead img { object-position: 60% 54%; }
.view-careers .masthead { --masthead-end: #0c211a; }
.view-careers .masthead img { object-position: 70% 60%; }

.home-hero {
  --light-x: 77%;
  --light-y: 29%;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), #9ec47729, transparent 56%);
}
.home-hero .hero-picture img { object-position: 50% 56%; }
.home-hero .masthead-inner {
  padding-block: clamp(4.2rem, 8.4vw, 8.75rem) clamp(2.8rem, 5vw, 5.15rem);
}
.home-hero h1 {
  max-width: min(21ch, 100%);
  font-size: clamp(2.8rem, 6.2vw, 6.25rem);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.home-hero h1 span { color: var(--green-bright); }
html[lang="en"] .home-hero h1 {
  font-size: clamp(2.55rem, 5vw, 5.25rem);
  letter-spacing: -.06em;
}
.home-hero .masthead-inner > p { max-width: 41rem; margin-top: 1.25rem; }
.home-hero .masthead-caption {
  position: static;
  display: table;
  margin: 0 var(--edge) .8rem auto;
}
.hero-contours {
  position: absolute;
  z-index: -1;
  inset: -25% -18% -25% 4%;
  opacity: .24;
  pointer-events: none;
  transform: rotate(-18deg) scale(1.15);
  background: repeating-radial-gradient(ellipse at 74% 55%, transparent 0 21px, #b6db965c 22px, transparent 23px 36px);
  mask-image: radial-gradient(ellipse at 72% 49%, black 10%, #000a 49%, transparent 75%);
}
.hero-proof { border-top: 1px solid #bddebd3e; }
.hero-proof .proof > div { border-color: #bddebd31; grid-template-rows: auto 1.5rem; }
.hero-proof .proof dd { color: #eff7ea; }
.hero-proof .proof dt { color: #c4d6c8; }
.section-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  font-weight: 720;
  letter-spacing: .115em;
}
.section-kicker::before {
  content: "";
  flex: 0 0 1.65rem;
  height: 2px;
  background: currentColor;
}
.service-overview .prose { margin-inline: auto; }

.service-grid--compact { gap: clamp(.85rem, 2vw, 1.45rem); }
.service-grid--compact .service-card {
  isolation: isolate;
  display: flex;
  justify-content: end;
  min-height: clamp(250px, 29vw, 365px);
  border: 0;
  border-radius: .85rem;
  background: #15392c;
  color: white;
}
.service-grid--compact .photo { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.service-grid--compact .photo-caption {
  inset: .7rem .7rem auto auto;
  background: #10281fda;
}
.service-grid--compact .service-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #0a1b14f5 0%, #0b2019b5 29%, #0b201922 65%, transparent 86%);
}
.service-grid--compact .service-card-body { padding: clamp(1.15rem, 3vw, 2.25rem); }
.service-grid--compact .service-card h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
.service-grid--compact .service-card h3 a:hover { color: var(--green-bright); }
.service-grid--compact .service-card-body p { max-width: 35rem; color: #e1ece2; }
:root .project-card, .editorial-split .photo, .featured-case, .gallery-link, .story > .photo { border-radius: .8rem; }
.featured-case { background: #18382c; border-color: #b1d0b34a; }
.featured-type + p, .section--navy .section-heading p { color: #d1dfd4; }

.recovery-section { background: #f5f5eb; }
.recovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5.4vw, 5.3rem);
  align-items: stretch;
}
.recovery-photo { min-height: 100%; border-radius: .85rem; background: #354f2d; }
.recovery-photo img { position: absolute; inset: 0; }
.recovery-copy { align-self: center; padding-block: .75rem; }
.section-kicker { color: var(--green); margin-bottom: .8rem; }
.recovery-copy > p:not(.section-kicker) { color: var(--muted); margin-top: .85rem; }
.recovery-copy dl { margin: 1.2rem 0 0; }
.recovery-copy dl > div { border-top: 1px solid #c9d7c4; padding-block: .65rem; }
.recovery-copy dt { font-weight: 720; }
.recovery-copy dd { margin: .15rem 0 0; color: var(--muted); }
.news-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.news-row-link {
  display: grid;
  grid-template-columns: clamp(116px, 16vw, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2.25vw, 2rem);
  padding: .78rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: white;
  text-decoration: none;
  transition: border-color var(--speed), background-color var(--speed), box-shadow var(--speed);
}
.news-row-link:hover {
  border-color: #9ab9a0;
  background: #f6faf3;
  box-shadow: 0 8px 22px #172d240e;
}
.news-row-link .photo { aspect-ratio: 1.65; border-radius: .5rem; }
.news-row-link .photo-caption { font-size: .72rem; inset: auto .15rem .15rem auto; }
.news-row-copy h3 { font-size: clamp(1.08rem, 2vw, 1.42rem); line-height: 1.35; }
.news-row-copy .card-meta { margin-bottom: .25rem; }
.news-summary { margin-top: .4rem; color: var(--muted); }
.read-label {
  justify-self: end;
  margin-inline-end: .7rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 720;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: .3em;
}
.news-index { max-width: 1100px; }
.news-index .section-heading { margin-bottom: 1.15rem; }
.news-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.news-filters button {
  min-height: 44px;
  padding: .35rem .82rem;
  border: 1px solid #a9bfaa;
  border-radius: 100px;
  background: transparent;
  color: var(--green);
  font-size: .9rem;
  font-weight: 690;
  transition: background-color var(--speed), color var(--speed), border-color var(--speed);
}
.news-filters button:hover { border-color: var(--green); }
.news-filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.view-careers main {
  --career-bg: #0c211a;
  --career-line: #395449;
  --career-muted: #c3d4c9;
  background: var(--career-bg);
  color: #f2f6ed;
}
.view-careers main :focus-visible { outline-color: var(--green-bright); }
.career-detail .button--primary { color: var(--navy-deep); background: var(--green-bright); }
.career-detail .button--primary:hover { background: #e8f5c9; }
.career-column { max-width: 880px; }
.career-section-heading { text-align: center; }
.career-section-heading p {
  max-width: 40rem;
  margin: .75rem auto 0;
  color: var(--career-muted);
}
.career-openings { padding-block: clamp(2.8rem, 5.4vw, 5rem); }
.career-list {
  display: grid;
  gap: .65rem;
  padding: 0;
  margin: clamp(1.4rem, 3vw, 2.25rem) 0 0;
  list-style: none;
}
.career-role {
  border: 1px solid var(--career-line);
  border-radius: .8rem;
  background: #132b22;
  transition: border-color var(--speed);
}
.career-role:focus-within, .career-role[open], .career-role:hover { border-color: #8ba99a; }
.career-role summary {
  display: grid;
  min-height: 78px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .85rem clamp(.9rem, 2.6vw, 1.65rem);
  border-radius: inherit;
  list-style: none;
  transition: background-color var(--speed);
}
.career-role summary::-webkit-details-marker { display: none; }
.career-role summary:hover, .career-role[open] summary { background: #1a372c; }
.career-role summary strong { display: block; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.32; }
.career-discipline {
  display: block;
  margin-bottom: .22rem;
  color: #b8d8a9;
  font-size: .875rem;
  font-weight: 680;
}
.career-read { display: inline-flex; align-items: center; gap: .65rem; color: var(--green-bright); font-size: .875rem; font-weight: 650; }
.career-chevron {
  width: .55rem;
  height: .55rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform var(--speed);
}
.career-role[open] .career-chevron { transform: rotate(225deg); }
.career-detail {
  padding: clamp(1rem, 2.6vw, 1.65rem);
  border-top: 1px solid var(--career-line);
}
.career-detail h3 { font-size: 1rem; }
.career-summary { margin-bottom: .85rem; color: var(--career-muted); }
.career-detail ul { margin: .45rem 0 0; padding-inline-start: 1.2rem; color: var(--career-muted); }
.career-detail li + li { margin-top: .45rem; }
.career-detail ul + h3, .career-detail .link-row { margin-top: 1.05rem; }
.career-list-note { margin-top: 1.05rem; color: var(--career-muted); text-align: center; font-size: .9rem; }
.career-application { padding-bottom: var(--section); }
.career-apply {
  padding: clamp(1.4rem, 4.1vw, 3.3rem);
  border: 1px solid var(--career-line);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 50% 2%, #234237, #142d23 72%);
  text-align: center;
}
.career-apply .email-copy { justify-content: center; margin-block: 1rem .85rem; }
.career-apply :is(.email-copy a, .copy-button, .copy-status) { color: var(--green-bright); }
.career-apply .copy-button { border-color: #8aa695; }
.career-apply .subject-format { color: var(--career-muted); }
.career-apply .subject-format strong { margin-inline-end: .45rem; color: #f2f6ed; }
.career-apply ol {
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  padding-inline-start: 1.3rem;
  color: var(--career-muted);
  text-align: start;
}
.career-apply li + li { margin-top: .4rem; }

@media (max-width: 780px) {
  .home-hero h1 { font-size: clamp(2.7rem, 8.9vw, 4.7rem); }
  html[lang="en"] .home-hero h1 { font-size: clamp(2.4rem, 7.4vw, 4.5rem); }
  .hero-contours { inset-inline: -45%; }
  .recovery-layout { grid-template-columns: minmax(0, 1fr); }
  .recovery-photo { aspect-ratio: 1.55; }
  .hero-proof .proof > div { grid-template-rows: auto 2.65rem; }
  .view-careers .masthead img { object-position: 69% center; }
}
@media (max-width: 600px) {
  .news-row-link { grid-template-columns: minmax(76px, 25%) minmax(0, 1fr); padding: .6rem; }
  .news-row-link .photo { align-self: start; }
  .read-label { display: none; }
  .news-summary { font-size: .94rem; }
  .news-row-copy .card-meta { font-size: .8rem; }
  .career-read > span:first-child { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-hero .masthead-inner { animation: rise-in 520ms cubic-bezier(.2,.75,.3,1) both; }
  .hero-contours { animation: contour-in 1800ms ease-out both; }
  [data-revealed] { animation: rise-in 460ms cubic-bezier(.2,.75,.3,1) both; }
  [data-showcase][data-enhanced] .featured-case:not([hidden]) { animation: rise-in 260ms ease-out both; }
  @keyframes rise-in {
    from { opacity: .46; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes contour-in {
    from { opacity: .08; transform: rotate(-22deg) scale(1.1); }
    to { opacity: .24; transform: rotate(-18deg) scale(1.15); }
  }
}
