/* Page composition. Shared tokens and controls are in tokens.css/components.css. */
.header-sentinel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.0208vw, 58px);
  min-height: var(--header-height);
  padding: 20px var(--space-page);
  transition: background-color var(--transition), transform 300ms ease;
}

/* Header slides away while scrolling down and returns on scroll up. */
.site-header.is-hidden:not(.is-menu-open):not(:focus-within) {
  transform: translateY(-100%);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: var(--color-background);
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: var(--text-menu);
  line-height: 1.2;
}

.site-nav a,
.footer-links a,
.legal a {
  transition: color var(--transition);
}

.site-nav a:hover,
.footer-links a:hover,
.legal a:hover {
  color: var(--color-accent);
}

.callback {
  margin-left: auto;
  min-height: 30px;
  padding: 0;
  white-space: nowrap;
}

.menu,
.site-nav__phone {
  display: none;
}

.hero {
  position: relative;
  min-height: 680px;
  height: calc(970 * var(--layout-unit));
  padding: calc(130 * var(--layout-unit)) var(--space-page) 60px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  top: -14.25%;
  left: 0;
  width: 100%;
  height: 139.74%;
  object-fit: cover;
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(45 29 27 / 9%), rgb(45 29 27 / 90%) 90%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: var(--text-hero);
  line-height: 1;
  letter-spacing: -.01em;
}

.hero-info {
  position: relative;
  width: calc((100% - var(--space-grid)) / 2);
  margin-top: 20px;
  margin-left: auto;
}

.subtitle {
  font-size: var(--text-subtitle);
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.areas {
  display: flex;
  gap: var(--space-grid);
  margin-top: 20px;
}

.areas span {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.areas img {
  box-sizing: content-box;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 4px;
  background: var(--color-background);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
  margin-top: 40px;
}

.hero-actions .outline {
  flex: 1;
  border-color: #ccc;
}

.hero-actions > .btn {
  min-width: 0;
  height: 48px;
  white-space: nowrap;
}

.section {
  margin: var(--space-section) var(--space-page) 0;
}

.section > h2 {
  margin-bottom: var(--space-heading);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-grid);
}

.facts-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.fact-list {
  display: grid;
  gap: 20px;
}

@media (min-width: 901px) {
  .facts {
    align-items: start;
  }

  .facts-photo {
    position: sticky;
    top: var(--facts-sticky-top, 0px);
  }
}

.fact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(140px, 10.4167vw, 200px);
  padding: 20px;
  background: var(--color-surface);
}

.fact img {
  width: 23px;
  height: 22px;
}

.object {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(782 * var(--layout-unit));
  padding: 20px;
  background: var(--color-surface);
}

.object > .btn::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.object:focus-within > .btn {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-background);
}

@media (hover: hover) {
  .object:hover > .btn {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-background);
  }
}

.object-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-grid);
}

.object-top h3 {
  font-size: var(--text-subtitle);
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.object-top > img {
  width: calc(400 * var(--layout-unit));
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.object-copy {
  display: grid;
  gap: 10px;
}

.object > .btn {
  margin-top: auto;
}

.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  aspect-ratio: 2;
  padding: 20px;
  overflow: hidden;
}

.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .shade {
  background: linear-gradient(to top, rgb(45 29 27 / 6%) 50%, rgb(45 29 27 / 60%));
}

.gallery > h2 {
  position: relative;
  margin: 0;
}

.gallery-bottom {
  position: relative;
  display: grid;
  gap: 40px;
}

.gallery-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.tags,
.arrows {
  display: flex;
  gap: 20px;
}

.tags {
  flex-wrap: wrap;
}

.arrows {
  flex-shrink: 0;
}

.progress {
  display: flex;
  gap: 20px;
}

.progress button {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.progress button::before {
  position: absolute;
  inset: 7px 0;
  background: var(--color-accent-secondary);
  content: "";
}

.progress button[aria-pressed="true"]::before {
  background: var(--color-accent);
}

.progress button:hover::before {
  background: var(--color-accent-hover);
}

.finish {
  position: relative;
}

.finish > img {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc((100% - var(--space-grid)) / 2);
  height: 100%;
  object-fit: cover;
}

.finish-copy {
  grid-column: 2;
}

.finish-copy p {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(90px, 5.9375vw, 114px);
  padding-block: 20px;
  border-top: var(--border-width) solid var(--color-muted);
}

.finish-copy p:last-of-type {
  border-bottom: var(--border-width) solid var(--color-muted);
}

.finish-copy p img {
  flex-shrink: 0;
  width: 23px;
  height: 22px;
}

.finish-copy .btn {
  width: 100%;
  margin-top: 40px;
}

.location {
  margin-top: clamp(80px, 15.3646vw, 295px);
  margin-right: 0;
  margin-left: 0;
}

.location > h2 {
  margin-inline: var(--space-page);
}

.map-window {
  position: relative;
  width: 100%;
  height: calc(1000 * var(--map-scale, 1) * 1px);
  overflow: hidden;
}

.map-canvas {
  transform: scale(var(--map-scale, 1));
  transform-origin: 0 0;
}

.meeting {
  position: relative;
  isolation: isolate;
  overflow: clip;
  height: calc(973 * var(--layout-unit));
}

.collage-photo {
  position: absolute;
  z-index: 0;
  width: calc(300 * var(--layout-unit));
  height: calc(300 * var(--layout-unit));
  overflow: hidden;
}

.collage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-photo:nth-child(1) { left: 22.4444%; top: 15.4162%; }
.collage-photo:nth-child(2) { left: 32.2222%; top: 0; }
.collage-photo:nth-child(3) { left: 51.1111%; top: 0; }
.collage-photo:nth-child(4) { left: 60%; top: 15.4162%; }
.collage-photo:nth-child(5) { left: 60%; top: 53.7513%; }
.collage-photo:nth-child(6) { left: 51.1111%; top: 69.1675%; }
.collage-photo:nth-child(7) { left: 32.2222%; top: 69.1675%; }
.collage-photo:nth-child(8) { left: 23.3333%; top: 53.7513%; }

/* Slow counter-drift: the top row moves one way, the bottom row the other.
 * Rows only move horizontally, so photos never cross the heading line. */
.meeting {
  --drift: calc(36 * var(--layout-unit));
}

.collage-photo {
  animation: collage-drift-top 16s cubic-bezier(.45,0,.55,1) infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}

.collage-photo:nth-child(n+5) {
  animation-name: collage-drift-bottom;
}

.meeting.is-drifting .collage-photo {
  animation-play-state: running;
}

@keyframes collage-drift-top {
  from { transform: translateX(calc(var(--drift) * -1)); }
  to { transform: translateX(var(--drift)); }
}

@keyframes collage-drift-bottom {
  from { transform: translateX(var(--drift)); }
  to { transform: translateX(calc(var(--drift) * -1)); }
}

.collage-photo:nth-child(3) img {
  height: 124.99%;
  transform: translateY(-19.97%);
}

.meeting > h2 {
  position: absolute;
  z-index: 2;
  top: 46.8654%;
  left: 0;
  width: 100%;
  font-size: clamp(24px, 2.9167vw, 56px);
  margin: 0;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.meeting-action {
  position: absolute;
  z-index: 3;
  bottom: 0;
  right: 0;
  display: grid;
  gap: 20px;
  width: 23.3333%;
}

.meeting-action p {
  white-space: nowrap;
}

.site-footer {
  display: grid;
  gap: 40px;
  padding-bottom: 20px;
}

.footer-photo {
  position: relative;
  height: calc(400 * var(--layout-unit));
  overflow: hidden;
}

.footer-photo img {
  position: absolute;
  top: -432.48%;
  left: 0;
  width: 100%;
  height: 640%;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Copyright, privacy policy and address on one line; the policy sits in the middle. */
.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--color-muted);
  color: var(--color-muted);
  font-size: var(--text-menu);
  line-height: 1.2;
  white-space: nowrap;
}

.legal-address {
  justify-self: end;
}

@media (min-width: 901px) and (max-width: 1279px) {
  .hero {
    padding-top: 130px;
  }

  .hero-info {
    width: 65%;
    margin-top: 28px;
  }

  .site-nav {
    gap: 12px;
  }

  .callback {
    font-size: 13px;
  }

  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .meeting-action {
    width: 30%;
  }
}
