/* ==========================================================================
   01 — Home hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--topbar-height) - var(--nav-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .hero::before {
  content: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.04);
  transition: opacity 1.05s ease, transform 6s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide.slide-two img {
  object-position: center 8%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .74), rgba(0, 0, 0, .22) 48%, rgba(0, 0, 0, .42)),
    linear-gradient(0deg, rgba(0, 0, 0, .78), transparent 50%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 40px;
  align-items: end;
}

.hero-copy,
.feature-card {
  transition: opacity .45s ease, transform .45s ease;
}

.hero-copy.switching,
.feature-card.switching {
  opacity: 0;
  transform: translateY(12px);
}

.hero-dots {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--gold2);
}

.eyebrow {
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold2);
}

h1 {
  margin: 0 0 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 7.4vw, 108px);
  line-height: .86;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.feature-card {
  width: min(360px, 100%);
  padding: 26px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(9, 9, 9, .43);
  box-shadow: var(--shadow);
  backdrop-filter: blur(13px);
}

.feature-card small {
  color: var(--gold2);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 12px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 35px;
  line-height: .95;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.feature-card .btn {
  margin-top: 16px;
}

/* ==========================================================================
   02 — Home content
   ========================================================================== */
.section {
  padding: 86px 28px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.05em;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tile {
  min-height: 250px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  box-shadow: 0 14px 45px rgba(43, 30, 18, .08);
  transition: .25s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(43, 30, 18, .13);
}

.tile b {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: .95;
}

.tile p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.tile .num {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
}

.split {
  background: #111;
  color: #fff;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.portrait {
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: url("../images/look-white-tuxedo.jpg") center top / cover no-repeat;
  box-shadow: var(--shadow);
}

.split-copy {
  padding: 30px 0;
}

.split-copy h2 {
  color: #fff;
}

.split-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.75;
}

.signature {
  margin-top: 20px;
  color: var(--gold2);
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
}

/* ==========================================================================
   03 — Motion
   ========================================================================== */
.load-in {
  opacity: 0;
  transform: translateY(26px);
  animation: loadIn .82s cubic-bezier(.2, .8, .2, 1) forwards;
}

.delay-1 { animation-delay: .18s; }
.delay-2 { animation-delay: .38s; }
.delay-3 { animation-delay: .58s; }
.delay-4 { animation-delay: .78s; }
.delay-5 { animation-delay: .98s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .75s cubic-bezier(.2, .8, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loadIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   04 — Home responsive rules
   ========================================================================== */
@media (max-width: 900px) {
  .hero {
    align-items: flex-start;
  }

  .hero-inner {
    padding: 34px 28px 58px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .feature-card {
    justify-self: start;
  }

  .section-head,
  .split-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .portrait {
    min-height: 520px;
  }

  .hero-slide img {
    object-position: center top;
  }

  .hero-slide.slide-two img {
    object-position: center 6%;
  }

  h1 {
    font-size: 58px;
  }
}

@media (max-width: 520px) {
  .hero {
    overflow: visible;
  }

  .hero-slide {
    transform: scale(1.01);
  }

  .hero-slide img {
    object-position: 52% top;
  }

  .hero-slide.active {
    transform: scale(1);
  }

  .hero-slide.slide-two img {
    object-position: center 6%;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .30) 55%, rgba(0, 0, 0, .58)),
      linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .22) 58%, rgba(0, 0, 0, .30));
  }

  .hero-inner {
    padding: 185px 24px 48px;
    gap: 24px;
  }

  .eyebrow {
    margin-bottom: 12px;
    gap: 8px;
    font-size: 11px;
    letter-spacing: .13em;
  }

  .eyebrow::before {
    width: 32px;
  }

  h1 {
    max-width: 320px;
    margin-bottom: 16px;
    font-size: clamp(40px, 13vw, 50px);
    line-height: .88;
    letter-spacing: -.055em;
  }

  .lead {
    max-width: 310px;
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.46;
    text-wrap: pretty;
  }

  .hero-actions {
    flex-wrap: nowrap;
    max-width: 310px;
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 0;
    min-height: 48px;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .feature-card {
    position: relative;
    z-index: 3;
    width: min(100%, 310px);
    margin-top: -4px;
    padding: 22px;
    background: rgba(9, 9, 9, .52);
    transform: translateY(58px);
  }

  .feature-card.switching {
    transform: translateY(70px);
  }

  .feature-card small {
    font-size: 11px;
    letter-spacing: .13em;
  }

  .feature-card h3 {
    margin: 10px 0;
    font-size: 31px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.5;
  }

  .section {
    padding: 66px 24px;
  }

  .hero + .section {
    padding-top: 124px;
  }

  .tile {
    min-height: 220px;
    padding: 26px;
  }
}

@media (max-width: 520px) and (max-height: 760px) {
  .hero {
    min-height: calc(112svh - var(--topbar-height) - var(--nav-height));
  }

  .hero-inner {
    padding-top: 150px;
  }

  h1 {
    font-size: clamp(38px, 12.5vw, 48px);
  }

  .lead {
    margin-bottom: 22px;
    font-size: 15.5px;
    line-height: 1.42;
  }

  .feature-card {
    padding: 20px;
    transform: translateY(46px);
  }

  .feature-card.switching {
    transform: translateY(58px);
  }
}

@media (max-width: 520px) and (min-height: 850px) {
  .hero-inner {
    padding-top: 205px;
  }
}

@media (max-width: 380px) {
  h1 {
    max-width: 300px;
    font-size: 44px;
  }

  .lead {
    max-width: 295px;
    font-size: 15.5px;
  }

  .hero-actions .btn {
    padding: 0 12px;
    font-size: 11.5px;
  }

  .feature-card {
    width: min(100%, 295px);
  }
}

@media (max-width: 340px) {
  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 15px;
  }

  .hero-inner {
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .load-in,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
