* { box-sizing: border-box; }
:root {
  --paper: #fdfcf8;
  --white: #fff;
  --ink: #123b40;
  --muted: #3d5759;
  --teal: #027381;
  --deep-teal: #084950;
  --mint: #e6f7f4;
  --line: #cbdedb;
  --orange: #ff6700;
  --yellow: #ffc500;
  --green: #13a700;
  --blue: #0072fd;
  --purple: #8100ab;
  --red: #f60000;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Bahnschrift, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid #9d4a08; outline-offset: 4px; }
.shell { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 3; padding: .5rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header, .footer, nav { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; }
.header, .footer { justify-content: space-between; padding-block: 1rem; }
.header-logo { display: block; width: 10.5rem; aspect-ratio: 2.45; overflow: hidden; }
.header-logo img { display: block; width: 109%; height: auto; margin: -10.5% 0 0 -4.5%; }
nav a, .brand { font-weight: 750; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.nav-project { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 2rem; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-weight: 800; }
h1, h2 { letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 5.9rem); }
h2 { font-size: clamp(2.35rem, 5.2vw, 4.3rem); }
h3 { font-size: clamp(1.18rem, 2.4vw, 1.42rem); letter-spacing: -.02em; }
.eyebrow { margin: 0 0 .7rem; color: var(--deep-teal); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.lede { max-width: 44ch; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
.button { display: inline-block; padding: .72rem 1.2rem; border: 0; border-radius: 2rem; background: var(--deep-teal); color: var(--white); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .2s; }
.button:hover { background: #123b40; }
.button:disabled { opacity: .6; cursor: default; }

.hero {
  display: grid;
  justify-items: center;
  overflow: hidden;
  min-block-size: max(48rem, 100svh);
  align-content: center;
  padding: clamp(2rem, 4.5vw, 4rem) 1rem clamp(2rem, 5vw, 4.5rem);
  background: #dfe4fd;
  color: #171a43;
  text-align: center;
}
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.hero .eyebrow { color: inherit; }
.hero .button { background: var(--purple); }
.hero .button:hover { background: #630087; }
.hero-art, .about-art { position: relative; isolation: isolate; margin: 0; }
.hero-art {
  /* Show the illustration area of the supplied 1024 x 1536 reference. */
  width: min(100%, 60rem);
  aspect-ratio: 832 / 382;
  overflow: hidden;
  margin-block: .2rem .2rem;
  mask-image: linear-gradient(to right, transparent, black 13%, black 87%, transparent),
    linear-gradient(to bottom, transparent, black 2%, black 91%, transparent);
  mask-composite: intersect;
  animation: hero-float 1.25s ease-out both;
}
.hero-art img {
  position: absolute;
  top: -45.026%;
  left: -11.538%;
  display: block;
  width: 123.077%;
  height: auto;
}
.about-art img { display: block; width: 100%; height: auto; }
.about-art::before { content: ""; position: absolute; z-index: -1; inset: 8%; background: radial-gradient(ellipse, #a5dedc 0%, #d0ece7 45%, transparent 73%); }
@keyframes hero-float {
  from { transform: translateY(5px); opacity: .8; }
  to { transform: none; opacity: 1; }
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-heading { margin-bottom: clamp(1.25rem, 4vw, 2.6rem); }
.section-heading .lede { margin: .85rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 5vw, 4rem); }
.cards article { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .85rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.cards article p { margin: .35rem 0 0; color: var(--muted); }
.service-icon { display: grid; place-items: center; width: 2.8rem; aspect-ratio: 1; border-radius: .72rem; background: color-mix(in srgb, var(--accent) 19%, white); color: var(--ink); }
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.cards article:nth-child(1) { --accent: var(--orange); }
.cards article:nth-child(2) { --accent: var(--yellow); }
.cards article:nth-child(3) { --accent: var(--green); }
.cards article:nth-child(4) { --accent: var(--blue); }
.cards article:nth-child(5) { --accent: var(--purple); }
.cards article:nth-child(6) { --accent: var(--red); }
.reveal .service-icon svg { animation: icon-in .78s .06s ease-out both; }
@keyframes icon-in {
  from { transform: translateY(5px) scale(.72) rotate(-12deg); }
  60% { transform: translateY(-3px) scale(1.16) rotate(6deg); }
  to { transform: none; }
}

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.8rem, 6vw, 5rem); align-items: center; }
.about { background: #f0f8f5; }
.about-layout { grid-template-areas: "art copy"; }
.about-copy { grid-area: copy; }
.about-art { grid-area: art; }
.about-art figcaption { color: var(--muted); text-align: center; font-size: .91rem; }
.about-art.reveal img { animation: storyboard-in 1.4s ease-out both; }
@keyframes storyboard-in {
  from { opacity: .5; transform: translateY(13px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 0; }
.stats div { padding-top: .75rem; border-top: 1px solid #8bb9b6; }
.stats dt { color: var(--deep-teal); font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; line-height: 1; }
.stats dd { margin: .35rem 0 0; color: var(--muted); }

.project { background: var(--deep-teal); color: var(--white); }
.project-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.project .lede { color: #d9f1ed; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; padding: clamp(1rem, 4vw, 2rem); border-radius: 1rem; background: var(--paper); color: var(--ink); }
label { display: block; min-width: 0; font-weight: 700; }
label:has(textarea), form .button, form [role="status"], form noscript { grid-column: 1 / -1; }
input, select, textarea { display: block; width: 100%; min-width: 0; padding: .62rem; margin-top: .32rem; border: 1px solid #849f9c; border-radius: .45rem; background: var(--white); color: var(--ink); font: inherit; }
textarea { resize: vertical; }
[role="status"] { margin: 0; }
[role="status"]:empty { display: none; }
.footer p { margin: .15rem 0 0; color: var(--muted); }
.footer > a { text-decoration: none; }

@media (max-width: 760px) {
  .hero { min-block-size: 80svh; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .about-layout { grid-template-areas: "copy" "art"; }
  .about-art { width: min(100%, 34rem); justify-self: center; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 2rem); }
  .header nav { gap: .65rem 1rem; }
  .cards, form { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .header-logo, .hero-art, .about-art img { transition: translate .28s ease, scale .28s ease; }
  .header-logo:hover, .header-logo:focus-visible { translate: 0 -2px; }
  .hero-art:hover, .about-art:hover img { translate: 0 -4px; scale: 1.035; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.hero-copy .eyebrow { animation: text-rise .55s ease-out both; }
.hero-copy h1 { animation: text-rise .75s .12s ease-out both; }
.hero-details { animation: text-rise .65s .32s ease-out both; }

.reveal > :is(.eyebrow, h2),
.cards .reveal h3,
.stats.reveal dt { animation: text-rise .62s ease-out both; }
.reveal > .lede,
.stats.reveal dd { animation: text-rise .62s .12s ease-out both; }
.cards .reveal p { animation: text-rise .62s .12s ease-out both; }

@keyframes text-rise {
  from { opacity: .5; transform: translateY(.65rem); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-icon {
    transition: translate .24s ease, scale .24s ease, rotate .24s ease, background-color .24s ease;
  }
  .cards article:hover .service-icon {
    translate: 0 -4px;
    scale: 1.08;
    rotate: -6deg;
    background-color: color-mix(in srgb, var(--accent) 32%, white);
  }
}
