:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body.site {
  --green: #76b142;
  --green-ink: #3f6e22;
  --yellow: #ffca04;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --line: rgba(28, 28, 28, 0.1);
  --header: rgba(246, 245, 242, 0.92);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --charcoal: #595a5c;
  --font: "Montserrat", sans-serif;
  --slogan: "Jost", "Futura", "Trebuchet MS", sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
}

html[data-theme="dark"] body.site {
  --green-ink: #b7dc86;
  --bg: #141516;
  --surface: #1e2022;
  --text: #f4f4f2;
  --muted: #c6c6c3;
  --line: rgba(255, 255, 255, 0.12);
  --header: rgba(20, 21, 22, 0.92);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --charcoal: #3a3b3d;
}

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

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--yellow);
  color: #111;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  background: var(--green);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

html[data-theme="dark"] .loader {
  background: #595a5c;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

body:has(.loader:not(.is-done)) {
  overflow: hidden;
}

.loader__building {
  width: 7.5rem;
  height: auto;
}

.loader__building path {
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: loader-draw 0.7s ease forwards;
}

.loader__building path:nth-child(1) {
  stroke: #ffca04;
  stroke-width: 3;
  animation-duration: 0.4s;
}

.loader__building path:nth-child(2) { animation-delay: 0.25s; }
.loader__building path:nth-child(3) { animation-delay: 0.4s; animation-duration: 0.85s; }
.loader__building path:nth-child(4) { animation-delay: 0.6s; }
.loader__building path:nth-child(5) { animation-delay: 1.15s; animation-duration: 0.35s; }
.loader__building path:nth-child(6) { animation-delay: 1.3s; animation-duration: 0.45s; }
.loader__building path:nth-child(7) { animation-delay: 1.5s; animation-duration: 0.35s; }

.loader__slogan {
  margin: 0;
  color: #fff;
  font-family: var(--slogan);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

@keyframes loader-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.2rem;
  padding: 0.75rem 4vw;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: block;
  line-height: 0;
  margin-right: auto;
}

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

.brand .logo--dark {
  display: none;
}

html[data-theme="dark"] .brand .logo--light {
  display: none;
}

html[data-theme="dark"] .brand .logo--dark {
  display: block;
}

.nav-toggle,
.theme-toggle,
.menu__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  padding: 0;
  border-radius: 999px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

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

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

html[data-theme="dark"] .theme-toggle__moon,
html:not([data-theme="dark"]) .theme-toggle__sun {
  display: none;
}

.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 5.2rem);
  overflow: auto;
  padding: 0.5rem 4vw 1.4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.menu.is-open {
  display: block;
}

.menu > a,
.menu__dropwrap > a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu > a[aria-current="page"],
.menu__dropwrap > a[aria-current="page"] {
  color: var(--green-ink);
}

.menu__dropwrap {
  position: relative;
}

.menu__caret {
  position: absolute;
  top: 0.35rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
}

.menu__caret::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.menu__dropwrap.is-open .menu__caret::before {
  transform: rotate(225deg) translateY(-2px);
}

.menu__panel {
  display: none;
  padding: 0 0 0.6rem 0.2rem;
}

.menu__dropwrap.is-open .menu__panel {
  display: grid;
  gap: 0.15rem;
}

.menu__panel a {
  display: block;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.menu__panel--pair {
  display: none;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.menu__dropwrap.is-open .menu__panel--pair {
  display: flex;
}

.menu__panel--pair a {
  display: inline;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu__panel--pair span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.menu__panel a:hover,
.menu__panel a:focus-visible,
.menu > a:hover,
.menu__dropwrap > a:hover {
  color: var(--green-ink);
}

.wrap {
  width: min(1180px, calc(100% - 8vw));
  margin: 0 auto;
}

main {
  overflow-x: clip;
}

.hero {
  display: grid;
  min-height: calc(100vh - 5.2rem);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(246, 245, 242, 0.94) 0%, rgba(246, 245, 242, 0.72) 38%, rgba(246, 245, 242, 0.08) 68%),
    url("../images/hero-office.jpg");
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

html[data-theme="dark"] .hero {
  background-image:
    linear-gradient(90deg, rgba(20, 21, 22, 0.94) 0%, rgba(20, 21, 22, 0.7) 40%, rgba(20, 21, 22, 0.2) 70%),
    url("../images/hero-office.jpg");
}

.hero__copy {
  align-self: end;
  width: min(40rem, calc(100% - 8vw));
  max-width: 40rem;
  margin-left: 4vw;
  margin-right: auto;
  padding: 4rem 0 4.5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.8rem;
  color: var(--green-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.kicker a:hover,
.kicker a:focus-visible {
  color: var(--green);
  border-bottom-color: currentColor;
}

#services,
#products {
  scroll-margin-top: 5.2rem;
}

h1,
h2,
.display {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero h1 {
  font-family: var(--slogan);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.rule {
  display: block;
  width: 4.6rem;
  height: 4px;
  margin: 1.1rem 0 1.15rem;
  background: var(--yellow);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  background: var(--yellow);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.section {
  padding: 4.5rem 0;
}

.stats {
  padding: 3.2rem 0;
  text-align: center;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.25rem;
  justify-items: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 12rem;
}

.stats__value {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--charcoal {
  background: var(--charcoal);
  color: #fff;
}

html[data-theme="dark"] .section--charcoal {
  background: #2a2c2e;
}

.section--charcoal .lede,
.section--charcoal p {
  color: rgba(255, 255, 255, 0.82);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.card,
.service,
.project,
.ally {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.3rem 1.25rem 1.4rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service h3,
.project h3,
.ally h3,
.card h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.service p,
.project p,
.ally p,
.card p {
  margin: 0;
  color: var(--muted);
}

.service__index {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

#services .service {
  position: relative;
  align-self: start;
  border-radius: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

#services .service h3,
#services .service .service__index {
  transition: color 0.35s ease;
}

#services .service > p:not(.service__index) {
  max-height: 4.8em;
  overflow: hidden;
  transition: color 0.35s ease, max-height 0.45s ease;
}

#services .service:hover,
#services .service:focus-within {
  z-index: 2;
  background: var(--green);
  border-color: var(--green);
}

#services .service:hover h3,
#services .service:focus-within h3 {
  color: var(--yellow);
}

#services .service:hover p,
#services .service:focus-within p {
  color: #fff;
}

#services .service:hover > p:not(.service__index),
#services .service:focus-within > p:not(.service__index) {
  max-height: 80rem;
}

#services .service:hover .service__index,
#services .service:focus-within .service__index {
  color: rgba(255, 255, 255, 0.78);
}

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

.product-tile {
  position: relative;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(150px, auto);
  min-height: 150px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  cursor: default;
  outline: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.product-tile__icon {
  grid-area: 1 / 1;
  place-self: center;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  color: var(--green);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-tile__icon svg {
  width: 100%;
  height: 100%;
}

.product-tile__copy {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  background: var(--green);
  opacity: 0;
  max-height: 150px;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.45s ease;
}

.product-tile__copy h3 {
  margin: 0;
  color: var(--yellow);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.product-tile__copy p {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-tile:hover,
.product-tile:focus-within {
  z-index: 2;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  transform: translateY(-6px);
}

.product-tile:hover .product-tile__icon,
.product-tile:focus-within .product-tile__icon {
  opacity: 0;
  transform: scale(0.86);
}

.product-tile:hover .product-tile__copy,
.product-tile:focus-within .product-tile__copy {
  opacity: 1;
  max-height: 80rem;
}

@media (min-width: 720px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.brands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.brand-card img {
  width: min(100%, 210px);
  height: 78px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.brand-card:hover img,
.brand-card:focus-visible img {
  filter: none;
  opacity: 1;
  transform: translateY(-8px) scale(1.06);
}

.split {
  display: grid;
  gap: 1.5rem;
}

.media,
.project img {
  border-radius: 1.25rem;
}

.split,
.project {
  overflow: hidden;
}

.media {
  min-height: 280px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.page-hero {
  padding: 3.2rem 0 1rem;
}

html:has(.about-index) {
  scroll-behavior: smooth;
}

.about-index {
  height: calc(100dvh - 5.2rem);
  min-height: calc(100dvh - 5.2rem);
  display: flex;
  align-items: center;
  padding: 3rem 8vw;
  scroll-margin-top: 5.2rem;
  background:
    linear-gradient(180deg, rgba(55, 55, 55, 0.62) 0%, rgba(55, 55, 55, 0.42) 62%, rgba(255, 255, 255, 0.05) 100%),
    url("../images/hero-office.jpg") center 42% / cover no-repeat;
}

.about-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-index li {
  margin: 0.15rem 0;
}

.about-index li.reveal-item {
  opacity: 0;
}

.about-index li.reveal-item.is-in {
  animation: story-fade 0.7s ease both;
}

.about-index li.reveal-item.is-in:nth-child(2) { animation-delay: 0.14s; }
.about-index li.reveal-item.is-in:nth-child(3) { animation-delay: 0.28s; }
.about-index li.reveal-item.is-in:nth-child(4) { animation-delay: 0.42s; }
.about-index li.reveal-item.is-in:nth-child(5) { animation-delay: 0.56s; }
.about-index li.reveal-item.is-in:nth-child(6) { animation-delay: 0.7s; }

.about-index a {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-decoration: none;
}

.about-index a::before {
  content: "• ";
}

.about-index a:hover,
.about-index a:focus-visible {
  color: var(--yellow);
}

.story {
  display: grid;
  height: calc(100dvh - 5.2rem);
  min-height: calc(100dvh - 5.2rem);
  scroll-margin-top: 5.2rem;
  overflow: hidden;
  color: #fff;
}

.story--charcoal {
  background: #595a5c;
}

.story--green {
  background: #76b142;
}

.story--theme {
  background: var(--bg);
  color: var(--text);
}

.story__copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
  padding: 2.4rem 7vw 1.2rem;
  overflow: hidden;
}

.story__copy::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 11rem;
  pointer-events: none;
  background: url("../roaa-buildings-white.png") no-repeat center bottom / min(720px, 108%) auto;
  opacity: 0.48;
}

.story__copy > * {
  position: relative;
  z-index: 1;
}

.story h2 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
}

.story .rule {
  background: #ffca04;
  margin-top: 0.85rem;
}

.story p,
.story li {
  margin: 0 0 0.7rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.15rem, 1.35vw, 1.32rem);
  line-height: 1.55;
}

.story.story--theme {
  color: var(--text);
}

.story.story--theme p,
.story.story--theme li {
  color: var(--text);
}

.story.story--theme strong {
  color: var(--text);
  font-weight: 700;
}

.story.story--theme .story__copy::before {
  background-image: url("../roaa-buildings-dark.png");
  opacity: 0.22;
}

html[data-theme="dark"] .story.story--theme .story__copy::before {
  background-image: url("../roaa-buildings-white.png");
  opacity: 0.48;
}

.story li {
  margin-bottom: 0.42rem;
}

.story ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story li::before {
  content: "• ";
}

.story__photo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1.4rem 1.8rem;
}

.story__photo img {
  width: min(100%, 660px);
  height: auto;
  aspect-ratio: 6 / 5;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 1.25rem;
}

.story__photo img.reveal-right,
.story__photo img.reveal-left,
img.reveal-right,
img.reveal-left {
  opacity: 0;
}

.story__photo img.reveal-right,
img.reveal-right {
  transform: translateX(4.5rem);
}

.story__photo img.reveal-left,
img.reveal-left {
  transform: translateX(-4.5rem);
}

.story__photo img.reveal-right.is-in,
img.reveal-right.is-in {
  animation: story-in-right 0.95s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.story__photo img.reveal-left.is-in,
img.reveal-left.is-in {
  animation: story-in-left 0.95s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

@keyframes story-in-right {
  from {
    opacity: 0;
    transform: translateX(4.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes story-in-left {
  from {
    opacity: 0;
    transform: translateX(-4.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.story--flip .story__photo {
  order: -1;
}

.story__copy.reveal-copy,
.hero__copy.reveal-copy,
.reveal-copy {
  opacity: 0;
}

.story__copy.reveal-copy.is-in,
.hero__copy.reveal-copy.is-in,
.reveal-copy.is-in {
  animation: story-fade 0.95s ease both;
}

.grid-2 > .reveal-copy.is-in:nth-child(2),
.grid-3 > .reveal-copy.is-in:nth-child(2),
.grid-4 > .reveal-copy.is-in:nth-child(2) { animation-delay: 0.1s; }
.grid-2 > .reveal-copy.is-in:nth-child(3),
.grid-3 > .reveal-copy.is-in:nth-child(3),
.grid-4 > .reveal-copy.is-in:nth-child(3) { animation-delay: 0.2s; }
.grid-2 > .reveal-copy.is-in:nth-child(4),
.grid-4 > .reveal-copy.is-in:nth-child(4) { animation-delay: 0.3s; }
.grid-2 > .reveal-copy.is-in:nth-child(5),
.grid-4 > .reveal-copy.is-in:nth-child(5) { animation-delay: 0.4s; }
.grid-2 > .reveal-copy.is-in:nth-child(6),
.grid-4 > .reveal-copy.is-in:nth-child(6) { animation-delay: 0.5s; }
.grid-2 > .reveal-copy.is-in:nth-child(7),
.grid-4 > .reveal-copy.is-in:nth-child(7) { animation-delay: 0.6s; }
.grid-2 > .reveal-copy.is-in:nth-child(8),
.grid-4 > .reveal-copy.is-in:nth-child(8) { animation-delay: 0.7s; }

.reveal-copy.is-shown {
  opacity: 1;
  animation: none;
}

img.reveal-right.is-shown,
img.reveal-left.is-shown {
  opacity: 1;
  transform: none;
  animation: none;
}

.card:hover,
.card:focus-within,
.service:hover,
.service:focus-within,
.project:hover,
.project:focus-within,
.ally:hover,
.ally:focus-within,
.brand-card:hover,
.brand-card:focus-visible,
.gallery-grid button:hover,
.gallery-grid button:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  border-color: var(--green);
}

#services .service.reveal-copy.is-in:nth-child(2) { animation-delay: 0.08s; }
#services .service.reveal-copy.is-in:nth-child(3) { animation-delay: 0.16s; }
#services .service.reveal-copy.is-in:nth-child(4) { animation-delay: 0.24s; }
#services .service.reveal-copy.is-in:nth-child(5) { animation-delay: 0.32s; }
#services .service.reveal-copy.is-in:nth-child(6) { animation-delay: 0.4s; }
#services .service.reveal-copy.is-in:nth-child(7) { animation-delay: 0.48s; }
#services .service.reveal-copy.is-in:nth-child(8) { animation-delay: 0.56s; }

#brands .brand-card.reveal-copy.is-in:nth-child(2) { animation-delay: 0.1s; }
#brands .brand-card.reveal-copy.is-in:nth-child(3) { animation-delay: 0.2s; }
#brands .brand-card.reveal-copy.is-in:nth-child(4) { animation-delay: 0.3s; }

.stats__item.reveal-copy.is-in:nth-child(2) { animation-delay: 0.1s; }
.stats__item.reveal-copy.is-in:nth-child(3) { animation-delay: 0.2s; }
.stats__item.reveal-copy.is-in:nth-child(4) { animation-delay: 0.3s; }

.project.reveal-copy.is-in:nth-child(2) { animation-delay: 0.12s; }
.project.reveal-copy.is-in:nth-child(3) { animation-delay: 0.24s; }

.section__head > .reveal-copy.is-in:nth-child(1) { animation-delay: 0s; }
.section__head > .reveal-copy.is-in:nth-child(2) { animation-delay: 0.1s; }
.section__head > .reveal-copy.is-in:nth-child(3) { animation-delay: 0.2s; }
.section__head > .reveal-copy.is-in:nth-child(4) { animation-delay: 0.3s; }

.project-category > .reveal-copy.is-in:nth-child(1) { animation-delay: 0s; }
.project-category > .reveal-copy.is-in:nth-child(2) { animation-delay: 0.1s; }
.project-category > .reveal-copy.is-in:nth-child(3) { animation-delay: 0.2s; }
.project-category > .reveal-copy.is-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes story-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#who .story__photo img {
  object-position: 62% center;
}

.expertise {
  display: grid;
  gap: 0.8rem;
}

.expertise article {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding-top: 0.8rem;
  border-top: 3px solid var(--yellow);
}

.expertise h3 {
  margin: 0;
}

.projects-board {
  margin-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.project-category {
  padding-top: 1.6rem;
  padding-bottom: 0.4rem;
}

.project-category + .project-category {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.project-category h2 {
  margin: 0 0 0.85rem;
}

.project-category h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.project-category .lede {
  margin-bottom: 0.55rem;
}

.filters--sub {
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem;
  transform: none;
}

.filters--sub button {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  padding: 0.5rem 0.95rem;
}

.project-subpanel {
  min-height: 2rem;
}

.project-subgroup .lede {
  margin-top: 0.15rem;
}

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

.list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, padding-left 0.3s ease, background 0.3s ease;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 3px;
  background: var(--yellow);
  transition: width 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.list li:hover {
  color: var(--green-ink);
  padding-left: 1.35rem;
  background: linear-gradient(90deg, rgba(118, 177, 66, 0.12), transparent 72%);
}

.list li:hover::before {
  width: 0.85rem;
  background: var(--green);
  transform: translateY(-0.5px);
}

.filter-slider {
  margin-bottom: 1.2rem;
}

.filter-slider__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.filter-slider__view {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.filter-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.filter-slider__dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(89, 90, 92, 0.35);
  cursor: pointer;
}

.filter-slider__dots button[aria-current="true"] {
  background: var(--yellow);
}

.filters {
  display: flex;
  gap: 0.45rem;
  width: max-content;
  transition: transform 0.45s ease;
}

.filters button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #111;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.gallery-grid button {
  padding: 0;
  border: 0;
  background: var(--charcoal);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid img.reveal-fade {
  opacity: 0;
}

.gallery-grid img.reveal-fade.is-in {
  animation: story-fade 0.75s ease both;
}

.gallery-grid img.reveal-fade.is-shown {
  opacity: 1;
  animation: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-grid button:hover img,
.gallery-grid button:focus-visible img {
  transform: scale(1.04);
  opacity: 0.92;
}

.lightbox {
  width: min(1000px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #111;
}

.lightbox form {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.4rem;
}

.form {
  display: grid;
  gap: 0.9rem;
}

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

.field span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

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

.field__error {
  margin: 0;
  color: #9a3412;
  font-size: 0.85rem;
}

html[data-theme="dark"] .field__error {
  color: #fdba74;
}

.contact-page {
  padding: 2.6rem 0 3.2rem;
}

.contact-panel {
  display: grid;
  gap: 1.4rem;
  background: #fff;
  border-radius: 1.75rem;
  padding: 1.15rem;
  box-shadow: 0 22px 48px rgba(28, 28, 28, 0.08);
}

html[data-theme="dark"] .contact-panel {
  background: #111214;
  box-shadow: none;
}

.contact-panel__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0.7rem 0.45rem 0.4rem;
}

.contact-panel__copy h1 {
  margin: 0 0 0.75rem;
  max-width: 11ch;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.contact-panel__copy > div p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.8rem 0.28rem 0.28rem;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green-ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-pill svg {
  width: 1.55rem;
  height: 1.55rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 18rem;
  font-size: 0.92rem;
}

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

.contact-points a:hover,
.contact-map-open:hover {
  color: var(--green-ink);
}

.contact-map-open {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-map-open span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.map-popup {
  width: min(720px, calc(100% - 2rem));
  margin: auto;
  padding: 0.85rem 0.85rem 1rem;
  border: 0;
  border-radius: 1.35rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.map-popup::backdrop {
  background: rgba(17, 18, 20, 0.72);
}

.map-popup form {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.55rem;
}

.map-popup form button {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.map-popup h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.map-popup iframe {
  width: 100%;
  height: min(420px, 62vh);
  border: 0;
  border-radius: 0.9rem;
  background: #e7e4da;
}

.map-popup__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.map-popup__foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-map-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.footer-map-open:hover {
  color: var(--yellow);
}

.contact-points__icon {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green);
}

.contact-points__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-panel__form {
  background: var(--green);
  color: #fff;
  border-radius: 1.35rem;
  padding: 1.15rem 1.1rem 1rem;
  gap: 0.7rem;
}

.contact-panel__form .field span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.contact-panel__form .field input,
.contact-panel__form .field select,
.contact-panel__form .field textarea {
  border: 0;
  border-radius: 0.75rem;
  background-color: #fff;
  color: #1c1c1c;
  padding: 0.68rem 0.85rem;
}

.contact-panel__form .field input::placeholder,
.contact-panel__form .field textarea::placeholder {
  color: #8d8d8d;
}

.contact-panel__form .field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231c1c1c' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.85rem;
  padding-right: 2.1rem;
}

.contact-panel__form .field textarea {
  min-height: 72px;
}

.contact-panel__form .field input:focus,
.contact-panel__form .field select:focus,
.contact-panel__form .field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 202, 4, 0.55);
}

.contact-panel__form .field__error {
  color: #fff;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-submit__icon {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1c1c1c;
  color: #fff;
}

.contact-submit__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-submit:hover .contact-submit__icon {
  background: var(--yellow);
  color: #1c1c1c;
}

.contact-submit.is-sending {
  animation: contact-send 0.55s cubic-bezier(0.22, 0.7, 0.2, 1) forwards;
}

@keyframes contact-send {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(14rem);
    opacity: 0;
  }
}

.footer {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 1.35rem 0 3.4rem;
  background: #595a5c;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7.5rem;
  z-index: 0;
  pointer-events: none;
  background: url("../roaa-buildings-white.png") no-repeat center bottom / min(1000px, 100%) auto;
  opacity: 0.5;
}

html[data-theme="dark"] .footer {
  background: #2a2b2d;
}

html[data-theme="dark"] .footer::before {
  opacity: 0.45;
}

.footer.footer--dark {
  background: #2a2b2d;
}

.footer.footer--dark::before {
  opacity: 0.45;
}

.footer__bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem 1.25rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  text-align: left;
}

.footer__brand a {
  display: block;
}

.footer__brand img {
  width: min(130px, 36vw);
  height: auto;
}

.footer__slogan {
  margin: 0.25rem 0 0;
  font-family: var(--slogan);
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: 40rem;
  margin: 0 auto;
  justify-self: center;
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .footer__bar {
    grid-template-columns: minmax(200px, 240px) 1fr minmax(200px, 240px);
  }

  .footer__content {
    grid-column: 2;
  }
}

.footer__content p {
  margin: 0;
  color: #fff;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 500;
  line-height: 1.45;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer__social svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

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

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

.footer__social a:hover,
.footer__social a:focus-visible {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

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

@media (max-width: 899px) {
  .story {
    height: auto;
    min-height: calc(100dvh - 5.2rem);
  }
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: minmax(340px, 44%) 1fr;
    align-items: stretch;
  }

  .story__photo {
    align-self: center;
    padding: 2.4rem 3.2rem 2.4rem 1.2rem;
  }

  .story--flip {
    grid-template-columns: 1fr minmax(340px, 44%);
  }

  .story--flip .story__photo {
    padding: 2.4rem 1.2rem 2.4rem 3.2rem;
  }
}

.story.story--certs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 2.4rem 6vw 2.6rem;
  text-align: center;
  overflow: auto;
  grid-template-columns: none;
}

.story--certs .story__copy {
  align-items: center;
  align-self: center;
  min-height: 0;
  width: min(100%, 44rem);
  padding: 0;
  overflow: visible;
}

.story--certs .story__copy::before {
  display: none;
}

.story--certs h2 {
  max-width: none;
}

.story--certs .rule {
  margin-left: auto;
  margin-right: auto;
}

.story--certs p {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.certs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  width: min(100%, 760px);
}

.certs button {
  flex: 1 1 0;
  max-width: 340px;
  padding: 0;
  border: 0;
  border-radius: 0.7rem;
  background: none;
  cursor: zoom-in;
}

.certs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

@media (max-width: 699px) {
  .certs {
    flex-direction: column;
    align-items: center;
  }

  .certs button {
    width: min(100%, 280px);
    max-width: 280px;
  }
}

@media (min-width: 900px) {
  .story.story--certs {
    grid-template-columns: none;
    display: flex;
  }
}

@media (min-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

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

  .contact-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.82fr);
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.35rem 1.35rem 1.35rem 1.8rem;
  }

  .contact-panel__copy {
    justify-content: space-between;
    padding: 0.85rem 0.4rem 0.7rem;
  }

  .grid-3,
  .brands {
    grid-template-columns: repeat(3, 1fr);
  }

  .expertise article {
    grid-template-columns: 180px 1fr;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.15rem 1.1rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .menu > a,
  .menu__dropwrap > a {
    padding: 0.4rem 0 0.7rem;
    font-size: 0.68rem;
  }

  .menu__caret {
    display: none;
  }

  .menu__panel {
    display: grid;
    position: absolute;
    top: calc(100% - 0.2rem);
    left: 50%;
    width: 28rem;
    transform: translateX(-40%) translateY(6px);
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 1rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
  }

  .menu__panel--pair {
    display: flex;
    width: auto;
    min-width: max-content;
    grid-template-columns: none;
    transform: translateX(-50%) translateY(6px);
    gap: 0.35rem;
    padding: 0.75rem 1rem;
  }

  .menu__dropwrap:hover .menu__panel,
  .menu__dropwrap:focus-within .menu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-40%) translateY(0);
  }

  .menu__dropwrap:hover .menu__panel--pair,
  .menu__dropwrap:focus-within .menu__panel--pair {
    transform: translateX(-50%) translateY(0);
  }

  .menu__panel--pair a {
    font-size: 0.68rem;
  }

  .menu__panel--pair span {
    font-size: 0.68rem;
  }

  .grid-4,
  .brands {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__copy {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
