* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; color: #242a24; background: #f5eee6; font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #425e42; outline-offset: 4px; }
.wrap { width: min(1440px, 91%); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }

/* One continuous scene sits behind the header and the whole opening. */
.atlas-opening { --opening-height: max(680px, 56.25vw); --header-height: 88px; position: relative; isolation: isolate; overflow-x: clip; }
.atlas-world { position: absolute; z-index: -1; top: calc(-1 * var(--header-height)); bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; background: #e9ded0; pointer-events: none; }
.atlas-art { position: absolute; height: 100%; width: auto; aspect-ratio: 16 / 9; left: 50%; top: 0; transform: translateX(-50%); background: url('/media/atlas-vellum.webp') center / 100% 100% no-repeat; }
.atlas-opening > header { position: relative; z-index: 2; }
.atlas-opening > main { position: relative; z-index: 1; }
header, footer { display: flex; align-items: center; gap: 32px; }
header { height: var(--header-height); border-bottom: 1px solid rgba(75, 77, 65, .24); }
a.brand { display: inline-flex; align-items: center; gap: 10px; color: #232b25; text-decoration: none; font-size: 23px; font-weight: 660; letter-spacing: -1.3px; }
.brand b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: #29372e; color: #faf9f5; font: italic 27px Georgia, serif; }
header nav { display: flex; gap: 38px; align-items: center; margin-left: auto; }
header nav a, .login, footer a, .text-link { font-size: 16px; font-weight: 570; text-decoration: none; }
header nav a { display: inline-flex; align-items: center; min-height: 44px; }
header nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.login { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 17px; border: 1px solid rgba(37, 47, 38, .65); border-radius: 5px; background: rgba(250, 246, 239, .38); }
.login span { margin-left: 8px; }
.login:hover { background: rgba(250, 246, 239, .75); }

.hero { position: relative; isolation: isolate; display: flex; align-items: flex-start; min-height: calc(var(--opening-height) - var(--header-height)); padding-block: clamp(70px, 6.1vw, 100px) 100px; }
.hero-copy { position: relative; isolation: isolate; width: min(610px, 51%); }
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -70px -145px -75px -80px; background: linear-gradient(90deg, rgba(249, 242, 232, .94) 0%, rgba(249, 242, 232, .86) 56%, rgba(249, 242, 232, 0) 100%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); pointer-events: none; }
.audience .hero-copy { width: min(700px, 60%); }
.audience .hero-copy::before { inset: -70px -170px -75px -80px; background: linear-gradient(90deg, rgba(249, 243, 234, .97) 0%, rgba(249, 243, 234, .93) 66%, rgba(249, 243, 234, 0) 100%); }
.kicker, .type { color: #415b40; font-size: 15px; font-weight: 650; }
.kicker { display: flex; align-items: center; gap: 13px; }
.kicker::before { content: ''; width: 34px; height: 2px; background: #445f42; flex: none; }
h1 { margin: 28px 0 23px; color: #242b26; font-size: clamp(43px, 5.1vw, 82px); font-weight: 630; letter-spacing: -.063em; line-height: 1.05; }
.intro { max-width: 45ch; color: #303731; font-size: clamp(18px, 1.48vw, 23px); line-height: 1.46; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 37px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 54px; padding: 13px 21px; border-radius: 5px; background: #25352b; color: white; text-decoration: none; font-size: 16px; font-weight: 650; }
.primary:hover { background: #3a5040; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(57, 67, 56, .6); }
.atlas-motion-toggle { position: absolute; right: 0; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 10px; border: 1px solid rgba(76, 81, 68, .25); border-radius: 4px; background: rgba(250, 246, 238, .88); color: #28332c; font-size: 14px; line-height: 1.3; cursor: pointer; }
.atlas-motion-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #344c38; }
.atlas-motion-toggle input:focus-visible { outline: 3px solid #425e42; outline-offset: 3px; }

.band { display: grid; grid-template-columns: .65fr 1.35fr; gap: 8%; border-top: 1px solid #d7ccc1; padding-top: 32px; }
h2 { font-size: clamp(29px, 2.75vw, 44px); line-height: 1.12; letter-spacing: -.05em; font-weight: 600; }
.section-intro h2 { margin-top: 17px; }
.home .section-intro h2 { display: flex; align-items: center; gap: 14px; margin-top: 0; font-size: clamp(27px, 2.1vw, 32px); letter-spacing: -.04em; }
.home .section-intro h2::before { content: ''; width: 34px; height: 2px; background: #445f42; flex: none; }
.home .service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; align-items: start; }
.service { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid #d8d1c9; }
.service:first-child { padding-top: 0; }
.home .service { display: block; padding-top: 0; }
.home .service > div { display: flex; flex-direction: column; }
.home .service h3 { order: 0; }
.home .service .type { order: 1; margin-top: 7px; }
.home .service p { order: 2; }
.service h3, .benefits h3 { font-size: 21px; font-weight: 620; letter-spacing: -.025em; }
.service p, .benefits p { margin-top: 7px; color: #50594f; line-height: 1.55; }
.service a { display: inline-block; margin-top: 10px; border-bottom: 1px solid #a8afa4; font-size: 15px; font-weight: 600; text-decoration: none; }
.service a:hover { border-color: #29372e; }
.benefits { display: flex; gap: 5%; margin-block: 60px; padding: 36px; border-radius: 5px; background: #ebe9e0; }
.benefits > div { flex: 1; }
.teams { padding-bottom: 64px; }
.teams > div { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.teams a { display: flex; flex: 1; justify-content: space-between; min-width: 185px; padding: 16px; border: 1px solid #d1d2c9; border-radius: 4px; text-decoration: none; }
.teams a:hover { background: #eeede5; }
footer { padding-block: 25px; border-top: 1px solid #d1d2c9; }
footer .brand { margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: fixed; z-index: 10; left: 10px; top: 6px; padding: 9px; background: white; }

@media (max-width: 820px) {
  .atlas-opening { --opening-height: max(690px, 80vw); }
  header { gap: 18px; }
  header nav { gap: 20px; }
  .hero-copy, .audience .hero-copy { width: min(590px, 68%); }
  .band { grid-template-columns: 1fr; gap: 25px; }
  .benefits { flex-direction: column; gap: 22px; margin-block: 36px; }
}
@media (max-width: 620px) {
  .wrap { width: 90%; }
  .atlas-opening { --opening-height: max(760px, 100svh); --header-height: 112px; }
  .atlas-art { left: auto; right: -55%; transform: none; }
  header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 44px 44px; gap: 0 10px; height: var(--header-height); padding-block: 12px; }
  header .brand { grid-column: 1; grid-row: 1; }
  header .login { grid-column: 2; grid-row: 1; min-height: 44px; padding: 8px 11px; font-size: 14px; }
  header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 24px; margin: 0; }
  header nav a { font-size: 15px; }
  .hero { padding-block: 42px 110px; }
  .hero-copy, .audience .hero-copy { width: 100%; max-width: 520px; }
  .hero-copy::before, .audience .hero-copy::before { inset: -50px -35px -55px -24px; background: linear-gradient(90deg, rgba(250, 245, 237, .96), rgba(250, 245, 237, .87) 75%, rgba(250, 245, 237, .34)); }
  h1 { margin-block: 20px; font-size: clamp(40px, 10vw, 55px); }
  .intro { max-width: 35ch; font-size: 17px; }
  .actions { gap: 16px; margin-top: 26px; }
  .primary { min-height: 50px; }
  .band { padding-top: 28px; }
  .home .service-list { grid-template-columns: 1fr; gap: 0; }
  .home .service { padding: 18px 0; }
  .home .service:first-child { padding-top: 0; }
  .service { display: block; }
  .service a { min-height: 38px; padding-block: 7px; }
  .benefits { padding: 22px; }
  .teams > div { display: grid; gap: 8px; }
  footer { flex-wrap: wrap; gap: 12px; }
  footer a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .atlas-motion-toggle { display: none; } }

.audience-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 7%; padding-block: 10px 54px; }
.audience-info p { max-width: 68ch; color: #475045; }
.audience-info p + p { margin-top: 1em; }
@media (max-width: 750px) { .audience-info { grid-template-columns: 1fr; gap: 20px; padding-block: 8px 36px; } }
