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

:root {
  --anim-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --anim-duration: 1.1s;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: #f5f5f5;
  background: #000000;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* —— Building background image —— */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #000000;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: grayscale(100%) brightness(0.82) contrast(1.08);
  transform-origin: center center;
  will-change: transform, opacity;
  animation:
    hero-bg-fade-in 2.5s ease-out forwards,
    hero-bg-ken-burns 22s ease-in-out 2.5s infinite alternate;
}

@keyframes hero-bg-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.65;
  }
}

@keyframes hero-bg-ken-burns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.14) translate3d(0, -2.5%, 0);
  }
}

/* —— Light overlay (text readable, building visible) —— */
.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 clamp(60px, 12vmin, 120px) rgba(0, 0, 0, 0.4);
}

/* —— Content shell: fluid flex layout (no absolute positioning) —— */
.hero-shell {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.hero-header,
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 52rem;
}

.hero-header {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 0 clamp(1rem, 3vh, 2rem);
  perspective: 800px;
}

.logo-wrap {
  display: block;
  transform-origin: center center;
}

.logo {
  width: clamp(9rem, 32vmin, 22rem);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55));
}

/* —— Mobile portrait: larger logo & heading —— */
@media (max-width: 40rem) and (orientation: portrait) {
  .logo {
    width: clamp(11rem, 44vmin, 18rem);
  }

  .hero-line {
    font-size: clamp(1.05rem, 4.2vmin + 0.4rem, 2.1rem);
  }

  .hero-line--accent {
    font-size: clamp(0.95rem, 3.6vmin + 0.35rem, 1.85rem);
  }

  .hero-divider {
    margin-bottom: clamp(0.65rem, 2.5vmin, 1.25rem);
  }

  .hero-cta {
    gap: clamp(0.5rem, 2vmin, 0.75rem);
    margin-top: clamp(0.85rem, 3vmin, 1.5rem);
  }

  .cta-btn {
    min-width: clamp(6.5rem, 34vw, 9rem);
    padding: clamp(0.55rem, 1.5vmin, 0.7rem) clamp(0.9rem, 4vw, 1.25rem);
    font-size: clamp(0.68rem, 2vmin + 0.2rem, 0.78rem);
    letter-spacing: 0.12em;
    gap: 0.45rem;
  }

  .cta-btn__icon {
    width: clamp(0.82rem, 2.5vmin, 0.98rem);
    height: clamp(0.82rem, 2.5vmin, 0.98rem);
  }
}

.hero-inner {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: 0;
}

.hero-divider {
  width: clamp(32px, 8vw, 48px);
  height: 1px;
  margin: 0 0 clamp(0.75rem, 2.5vmin, 1.75rem);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  transform-origin: center;
}

.hero-heading {
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.hero-line {
  display: block;
  font-size: clamp(0.95rem, 2.8vmin + 0.35rem, 1.9rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-line--accent {
  margin-top: clamp(0.2rem, 1vmin, 0.35rem);
  font-size: clamp(0.85rem, 2.4vmin + 0.3rem, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #ffffff;
}

/* —— CTA buttons —— */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 2vmin, 1rem);
  margin-top: clamp(1rem, 3.5vmin, 2.25rem);
  width: 100%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1vmin, 0.55rem);
  min-width: clamp(5.5rem, 22vw, 9.5rem);
  padding: clamp(0.4rem, 1.2vmin, 0.75rem) clamp(0.65rem, 3vw, 1.5rem);
  font-family: "Oswald", "Segoe UI", sans-serif;
  font-size: clamp(0.58rem, 1.5vmin + 0.15rem, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--anim-ease),
    box-shadow 0.3s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

.cta-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.cta-btn__icon {
  width: clamp(0.7rem, 2vmin, 1.05rem);
  height: clamp(0.7rem, 2vmin, 1.05rem);
  fill: currentColor;
  flex-shrink: 0;
}

/* —— Social links —— */
.hero-social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 52rem;
  z-index: 4;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3.5vmin, 2rem);
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2rem, 6vmin, 2.5rem);
  height: clamp(2rem, 6vmin, 2.5rem);
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.3s ease,
    transform 0.3s var(--anim-ease),
    filter 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

.social-links a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.social-links svg {
  width: clamp(1.1rem, 3.2vmin, 1.35rem);
  height: clamp(1.1rem, 3.2vmin, 1.35rem);
  fill: currentColor;
}

/* —— Small screens in landscape: compact CTA buttons —— */
@media (max-width: 40rem) and (orientation: landscape) {
  .hero-cta {
    gap: 0.4rem;
    margin-top: clamp(0.65rem, 2.5vmin, 1.25rem);
  }

  .cta-btn {
    min-width: 0;
    padding: 0.42rem 0.7rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    gap: 0.35rem;
  }

  .cta-btn__icon {
    width: 0.72rem;
    height: 0.72rem;
  }
}

/* —— Narrow portrait phones —— */
@media (max-width: 30rem) and (orientation: portrait) {
  .logo {
    width: clamp(10.5rem, 46vmin, 17rem);
  }

  .hero-line {
    font-size: clamp(1rem, 4.5vmin + 0.35rem, 1.95rem);
    letter-spacing: 0.08em;
  }

  .hero-line--accent {
    font-size: clamp(0.9rem, 3.8vmin + 0.3rem, 1.75rem);
    letter-spacing: 0.12em;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: none;
    gap: 0.5rem;
  }

  .cta-btn {
    width: auto;
    min-width: clamp(6rem, 32vw, 8.5rem);
    padding: 0.52rem 0.85rem;
    font-size: clamp(0.64rem, 2.2vmin + 0.15rem, 0.74rem);
    letter-spacing: 0.1em;
    gap: 0.4rem;
  }

  .cta-btn__icon {
    width: 0.78rem;
    height: 0.78rem;
  }
}

/* —— Landscape: centered content, social pinned to bottom —— */
@media (orientation: landscape) {
  .hero-shell {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 1.2vh, 0.65rem);
    padding:
      max(0.5rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(3rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .hero-header,
  .hero-inner,
  .hero-social {
    width: 100%;
    max-width: min(52rem, 92vw);
  }

  .hero-header {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .hero-inner {
    flex: 0 1 auto;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .hero-social {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    padding-top: 0;
    padding-bottom: clamp(0.5rem, 2vh, 1.25rem);
  }

  .logo {
    width: clamp(4.5rem, 14vh, 9.5rem);
    margin-inline: auto;
  }

  .hero-divider {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(0.35rem, 1.5vh, 0.75rem);
  }

  .hero-cta {
    justify-content: center;
    margin-top: clamp(0.4rem, 1.5vh, 0.85rem);
  }

  .hero-line {
    font-size: clamp(1rem, 3.5vh + 0.4rem, 2.25rem);
  }

  .hero-line--accent {
    font-size: clamp(0.9rem, 3vh + 0.35rem, 1.95rem);
  }

  .social-links {
    justify-content: center;
  }
}

/* —— Short landscape: tighter scale so the stack fits —— */
@media (orientation: landscape) and (max-height: 40rem) {
  .hero-shell {
    gap: clamp(0.15rem, 0.8vh, 0.4rem);
  }

  .hero-heading {
    line-height: 1.3;
  }

  .hero-cta {
    gap: clamp(0.4rem, 1.5vmin, 0.65rem);
  }

  .cta-btn {
    min-width: 0;
    padding: clamp(0.38rem, 1vmin, 0.5rem) clamp(0.6rem, 2vw, 0.9rem);
    font-size: clamp(0.56rem, 1.2vh + 0.12rem, 0.66rem);
    letter-spacing: 0.08em;
    gap: 0.3rem;
  }

  .cta-btn__icon {
    width: clamp(0.6rem, 2vh, 0.72rem);
    height: clamp(0.6rem, 2vh, 0.72rem);
  }

  .social-links {
    gap: clamp(0.5rem, 2.5vmin, 1.25rem);
  }

  .social-links a {
    width: clamp(1.65rem, 5vh, 2.1rem);
    height: clamp(1.65rem, 5vh, 2.1rem);
  }

  .social-links svg {
    width: clamp(0.95rem, 2.8vh, 1.15rem);
    height: clamp(0.95rem, 2.8vh, 1.15rem);
  }
}

/* —— Very short landscape (phones in landscape) —— */
@media (orientation: landscape) and (max-height: 26rem) {
  .hero-shell {
    gap: 0.15rem;
    padding-top: max(0.35rem, env(safe-area-inset-top));
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  }

  .logo {
    width: clamp(3.25rem, 12vh, 6rem);
  }

  .hero-line {
    letter-spacing: 0.07em;
  }

  .hero-line--accent {
    letter-spacing: 0.1em;
  }

  .hero-cta {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .cta-btn {
    padding: 0.34rem 0.55rem;
    font-size: 0.52rem;
  }

  .cta-btn__icon {
    width: 0.58rem;
    height: 0.58rem;
  }
}

/* —— Wide but short (resized desktop / tablet landscape) —— */
@media (orientation: landscape) and (min-width: 48rem) and (max-height: 40rem) {
  .hero-header,
  .hero-inner,
  .hero-social {
    max-width: min(56rem, 88vw);
  }

  .logo {
    width: clamp(5rem, 13vh, 9rem);
  }

  .hero-line {
    font-size: clamp(1rem, 3.4vh + 0.35rem, 1.75rem);
  }

  .hero-line--accent {
    font-size: clamp(0.92rem, 3vh + 0.3rem, 1.5rem);
  }
}

/* —— Tall landscape (desktop): larger heading —— */
@media (orientation: landscape) and (min-width: 48rem) and (min-height: 36rem) {
  .hero-line {
    font-size: clamp(1.15rem, 4.5vh + 0.45rem, 2.75rem);
  }

  .hero-line--accent {
    font-size: clamp(1.05rem, 4vh + 0.4rem, 2.35rem);
  }
}

@media (orientation: landscape) and (min-width: 64rem) and (min-height: 36rem) {
  .hero-line {
    font-size: clamp(1.25rem, 5vh + 0.5rem, 3rem);
  }

  .hero-line--accent {
    font-size: clamp(1.1rem, 4.5vh + 0.45rem, 2.5rem);
  }
}

/* —— Larger screens: bigger logo —— */
@media (min-width: 40rem) {
  .logo {
    width: clamp(11rem, 32vmin, 28rem);
  }
}

@media (min-width: 64rem) {
  .logo {
    width: clamp(14rem, 38vmin, 36rem);
  }
}

@media (min-width: 90rem) {
  .logo {
    width: clamp(16rem, 42vmin, 44rem);
  }
}

/* Tall landscape (desktop / tablet) — scale logo with viewport height */
@media (orientation: landscape) and (min-width: 48rem) and (min-height: 36rem) {
  .logo {
    width: clamp(8.5rem, 20vh, 22rem);
  }
}

@media (orientation: landscape) and (min-width: 64rem) and (min-height: 36rem) {
  .logo {
    width: clamp(10rem, 24vh, 28rem);
  }
}

@media (orientation: landscape) and (min-width: 90rem) and (min-height: 36rem) {
  .logo {
    width: clamp(11rem, 26vh, 32rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta .cta-btn:hover,
  .hero-cta .cta-btn:focus-visible,
  .social-links a:hover,
  .social-links a:focus-visible {
    transform: none;
    box-shadow: none;
    filter: none;
  }
}
