:root {
  --chrome-bg: #080909;
  --chrome-panel: #0d0e0e;
  --chrome-text: #eee9df;
  --chrome-muted: rgba(238, 233, 223, .61);
  --chrome-line: rgba(238, 233, 223, .16);
  --chrome-accent: #c99a72;
  --chrome-serif: "Cormorant Garamond", Georgia, serif;
  --chrome-sans: "Aeonik", "Inter", Arial, sans-serif;
}

.unified-navbar,
.unified-navbar * ,
.global-footer,
.global-footer * {
  box-sizing: border-box;
}

.unified-navbar {
  position: absolute;
  top: 0;
  right: 40px;
  left: 40px;
  z-index: 1500;
  height: 82px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(238, 233, 223, .18);
  color: var(--chrome-text);
  font-family: var(--chrome-sans);
  background: linear-gradient(180deg, rgba(6, 7, 7, .46), rgba(6, 7, 7, .04));
}

.unified-navbar a { color: inherit; text-decoration: none; }

.unified-navbar__wordmark {
  justify-self: start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
}

.unified-navbar__center {
  grid-column: 2;
  width: 58px;
  display: block;
  justify-self: center;
  opacity: .9;
}

.unified-navbar__center img {
  width: 100%;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(201, 154, 114, .16));
}

.unified-navbar__links {
  grid-column: 3;
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(16px, 2.1vw, 30px);
}

.unified-navbar__links > a:not(.unified-navbar__globe) {
  position: relative;
  padding: 8px 0;
  color: rgba(238, 233, 223, .72);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.unified-navbar__links > a:not(.unified-navbar__globe)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s ease;
}

.unified-navbar__links > a:not(.unified-navbar__globe):hover::after,
.unified-navbar__links > a:not(.unified-navbar__globe):focus-visible::after,
.unified-navbar__links > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.unified-navbar__globe {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  pointer-events: none;
}

.unified-globe {
  position: relative;
  width: 38px;
  height: 38px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(238, 233, 223, .22);
  border-radius: 50%;
  background: #0a1b27;
  box-shadow: inset -9px -4px 14px rgba(0, 0, 0, .8), 0 0 18px rgba(126, 168, 186, .08);
}

.unified-globe__map {
  position: absolute;
  inset: 0;
  width: 210%;
  background: url("../assets/earth/earth-day-4k.webp") 0 50% / auto 100% repeat-x;
  animation: unified-globe-spin 20s linear infinite;
  filter: saturate(.58) brightness(.68) contrast(1.15);
}

.unified-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0,0,0,.04), transparent 42%, rgba(0,0,0,.72));
  pointer-events: none;
}

@keyframes unified-globe-spin { to { transform: translateX(-50%); } }

.unified-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.project-side-contact {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 1700;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-50%);
  font-family: var(--chrome-sans);
}

.project-side-contact__link {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(238, 233, 223, .7);
  background: rgba(8, 9, 9, .72);
  border: 1px solid rgba(238, 233, 223, .19);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: color .28s ease, background .28s ease, border-color .28s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
}

.project-side-contact__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-side-contact__link > span {
  position: absolute;
  top: 50%;
  right: calc(100% + 11px);
  padding: 7px 9px;
  color: var(--chrome-text);
  background: rgba(8, 9, 9, .9);
  border: 1px solid rgba(238, 233, 223, .14);
  border-radius: 2px;
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity .25s ease, transform .3s ease;
}

.project-side-contact__language {
  color: rgba(238, 233, 223, .9);
  border-color: rgba(238, 233, 223, .34);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.project-side-contact__link:hover,
.project-side-contact__link:focus-visible {
  color: #171310;
  background: var(--chrome-text);
  border-color: var(--chrome-text);
  outline: 0;
  transform: translateX(-3px);
}

.project-side-contact__link:hover > span,
.project-side-contact__link:focus-visible > span {
  opacity: 1;
  transform: translate(0, -50%);
}

body.home-page.has-unified-chrome {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.home-page.has-unified-chrome .hero { height: 100svh !important; min-height: 720px !important; }
.projects-chrome-page .projects-grid { padding-top: 110px !important; }
.presentation-chrome-page .archive-page { padding-top: 142px !important; }

.global-footer {
  position: relative;
  z-index: 30;
  margin: 0;
  padding: clamp(68px, 8vw, 108px) clamp(22px, 4vw, 56px) 30px;
  border-top: 1px solid var(--chrome-line);
  color: var(--chrome-text);
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 154, 114, .07), transparent 30%),
    var(--chrome-bg);
  font-family: var(--chrome-sans);
}

.global-footer a { color: inherit; text-decoration: none; }

.global-footer__inner {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.global-footer__top > p {
  margin: 0;
  color: var(--chrome-accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .19em;
}

.global-footer__top h2 {
  max-width: 980px;
  margin: 18px 0 42px;
  color: var(--chrome-text);
  font-family: var(--chrome-serif);
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
  text-wrap: balance;
}

.global-footer__actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--chrome-line);
}

.global-footer__action {
  position: relative;
  min-height: 146px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--chrome-panel);
}

.global-footer__action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 233, 223, .055);
  transform: translateX(-101%);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}

.global-footer__action:hover::before,
.global-footer__action:focus-visible::before { transform: translateX(0); }
.global-footer__action--primary { background: #171512; }

.global-footer__action span,
.global-footer__action strong,
.global-footer__action b { position: relative; z-index: 1; }

.global-footer__action span {
  color: var(--chrome-accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .17em;
}

.global-footer__action strong {
  max-width: 90%;
  font-family: var(--chrome-serif);
  font-size: clamp(25px, 2.5vw, 37px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .95;
}

.global-footer__action b {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-size: 18px;
  font-weight: 400;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.global-footer__action:hover b { transform: translate(4px, -4px); }

.global-footer__directory {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1.35fr .7fr .9fr 1.2fr;
  gap: clamp(34px, 5vw, 78px);
  border-top: 1px solid var(--chrome-line);
}

.global-footer__identity > a {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
}

.global-footer__identity p {
  max-width: 390px;
  margin: 0;
  color: var(--chrome-muted);
  font-size: 12px;
  line-height: 1.75;
}

.global-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.global-footer__column > span {
  margin-bottom: 8px;
  color: var(--chrome-accent);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .17em;
}

.global-footer__column a,
.global-footer__column p {
  max-width: 100%;
  margin: 0;
  color: var(--chrome-muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.global-footer__column a { transition: color .25s ease; }
.global-footer__column a:hover { color: var(--chrome-text); }

.global-footer__legal {
  margin-top: 55px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--chrome-line);
  color: rgba(238, 233, 223, .43);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.global-footer__legal p { margin: 0; }

/* Home project CTA — isolated from the legacy button system. */
.home-project-cta {
  position: relative;
  z-index: 1;
  width: fit-content;
  min-width: 214px;
  min-height: 54px;
  padding: 6px 6px 6px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(238, 233, 223, .78);
  border-radius: 999px;
  background: rgba(238, 233, 223, .95);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .28);
  color: #151412;
  font-family: var(--chrome-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .48s ease, border-color .48s ease, transform .48s cubic-bezier(.16, 1, .3, 1), box-shadow .48s ease;
}

.home-project-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: #171310;
  transform: translate3d(-102%, 0, 0);
  transition: transform .62s cubic-bezier(.16, 1, .3, 1);
}

.home-project-cta__label {
  position: relative;
  z-index: 1;
}

.home-project-cta__icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--chrome-text);
  background: #171310;
  border-radius: 50%;
  font-size: 17px;
  transition: color .48s ease, background .48s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}

.home-project-cta:hover,
.home-project-cta:focus-visible {
  color: var(--chrome-text);
  border-color: rgba(238, 233, 223, .24);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  transform: translateY(-2px);
}

.home-project-cta:hover::before,
.home-project-cta:focus-visible::before { transform: translate3d(0, 0, 0); }

.home-project-cta:hover .home-project-cta__icon,
.home-project-cta:focus-visible .home-project-cta__icon {
  color: #171310;
  background: var(--chrome-text);
  transform: rotate(45deg);
}

.home-project-cta:focus-visible {
  outline: 2px solid var(--chrome-accent);
  outline-offset: 4px;
}

.projects-chrome-page .global-footer__top h2 { margin-bottom: 0; }
.projects-chrome-page .global-footer__directory { margin-top: clamp(48px, 6vw, 76px); }

@media (max-width: 900px) {
  .unified-navbar { right: 24px; left: 24px; height: 74px; }
  .unified-navbar__links { gap: 15px; }
  .unified-navbar__links > a:not(.unified-navbar__globe) { font-size: 8px; letter-spacing: .09em; }
  .unified-navbar__links > a:nth-child(4) { display: none; }
  .global-footer__actions { grid-template-columns: 1fr; }
  .global-footer__directory { grid-template-columns: 1fr 1fr; }
  .global-footer__identity { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .unified-navbar { right: 19px; left: 19px; grid-template-columns: auto 1fr; }
  .unified-navbar__wordmark { font-size: 9px; }
  .unified-navbar__center { display: none; }
  .unified-navbar__links { grid-column: 2; gap: 12px; }
  .unified-navbar__globe { width: 34px; height: 34px; }
  .unified-globe { width: 31px; height: 31px; }
  .unified-navbar__links > a:first-child,
  .unified-navbar__links > a:nth-child(4) { display: none; }
  .home-page.has-unified-chrome .hero { min-height: 680px !important; }
  .home-project-cta { min-width: 204px; min-height: 52px; padding-left: 21px; }
  .home-project-cta__icon { width: 38px; height: 38px; }
  .projects-chrome-page .projects-grid { padding-top: 94px !important; }
  .global-footer { padding-right: 19px; padding-left: 19px; }
  .global-footer__top h2 { font-size: clamp(45px, 14vw, 64px); }
  .global-footer__action { min-height: 142px; }
  .global-footer__directory { grid-template-columns: 1fr; gap: 34px; }
  .global-footer__identity { grid-column: auto; }
  .global-footer__legal { align-items: flex-start; flex-direction: column; }
  .project-side-contact {
    top: auto;
    right: 50%;
    bottom: 12px;
    flex-direction: row;
    transform: translateX(50%);
  }
  .project-side-contact__link {
    width: 42px;
    height: 42px;
    background: rgba(8, 9, 9, .88);
  }
  .project-side-contact__link:hover,
  .project-side-contact__link:focus-visible { transform: translateY(-3px); }
  .project-side-contact__link > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .unified-globe__map { animation: none; }
  .unified-navbar *, .global-footer *, .home-project-cta, .home-project-cta::before, .home-project-cta__icon,
  .project-side-contact * { transition-duration: .01ms !important; }
}

/* Compact site footer — contact lives on its own page. */
.global-footer {
  padding: 34px clamp(22px, 4vw, 56px) 24px;
  background: #080909;
}

.global-footer__compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.global-footer__compact > .global-footer__identity {
  margin: 0 !important;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .2em;
}

.global-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.global-footer__nav a {
  color: var(--chrome-muted);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.global-footer__nav a:hover,
.global-footer__nav a:focus-visible { color: var(--chrome-text); }

.global-footer__legal {
  margin-top: 28px;
  padding-top: 15px;
  font-size: 7px;
  letter-spacing: .12em;
}

@media (max-width: 620px) {
  .global-footer { padding-top: 28px; }
  .global-footer__compact { align-items: flex-start; flex-direction: column; gap: 18px; }
  .global-footer__nav { justify-content: flex-start; gap: 15px; }
  .global-footer__legal { margin-top: 24px; }
}
