/* =========================================================
   MIRAM Home V1
   Editorial, light-first public brand direction
   ========================================================= */

body.home-page {
  --home-ivory: #f5f2ec;
  --home-charcoal: #202328;
  --home-champagne: #d1b58f;
  --home-titanium: #8e96a3;
  --home-line: rgba(32, 35, 40, 0.18);
  --home-muted: rgba(32, 35, 40, 0.66);
  margin: 0;
  color: var(--home-charcoal);
  background: var(--home-ivory);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.home-page::before,
body.home-page::after {
  display: none;
}

.home-page p {
  color: var(--home-muted);
}

.home-container,
.home-page .header-inner,
.home-page .footer-inner {
  width: min(calc(100% - 64px), 1440px);
  margin-inline: auto;
}

/* Header */

.home-page .home-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(32, 35, 40, 0.12);
  background: rgba(245, 242, 236, 0.9);
  backdrop-filter: blur(16px);
}

.home-page .home-site-header .header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.home-page .home-brand {
  justify-self: start;
  color: var(--home-charcoal);
}

.home-brand-word {
  display: block;
  font-size: 1.05rem;
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0.22em;
}

.home-page .home-main-nav {
  justify-self: center;
  gap: 34px;
}

.home-page .home-main-nav a,
.home-page .home-lang-nav a {
  color: rgba(32, 35, 40, 0.58);
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.home-page .home-main-nav a:hover,
.home-page .home-main-nav a[aria-current="page"],
.home-page .home-lang-nav a:hover,
.home-page .home-lang-nav a[aria-current="true"] {
  color: var(--home-charcoal);
}

.home-page .home-lang-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Shared */

.home-v1 {
  overflow: clip;
}

.home-section {
  padding: clamp(104px, 10vw, 168px) 0;
}

.home-kicker {
  margin: 0 0 24px;
  color: rgba(32, 35, 40, 0.54);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-section-heading h2 {
  max-width: 840px;
  margin: 0;
  color: var(--home-charcoal);
  font-size: clamp(2.8rem, 5.3vw, 5.8rem);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.home-section-heading-wide {
  margin-bottom: clamp(64px, 8vw, 112px);
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(72px, 10vw, 180px);
  align-items: end;
}

/* Hero */

.home-hero {
  min-height: min(930px, calc(100vh - 84px));
  display: flex;
  align-items: stretch;
}

.home-hero-inner {
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
}

.home-hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.home-hero-kicker-row p,
.home-hero-kicker-row span {
  margin: 0;
  color: rgba(32, 35, 40, 0.56);
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-title-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 510px;
  padding: clamp(56px, 6vw, 92px) 0;
}

.home-hero-title {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin: 0;
  color: var(--home-charcoal);
  font-size: clamp(4rem, 7.4vw, 8.2rem);
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.home-hero-title span {
  display: block;
}

.home-hero-mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -1.5%;
  width: clamp(260px, 31vw, 500px);
  height: auto;
  color: var(--home-charcoal);
  fill: currentColor;
  opacity: 0.09;
  transform: translateY(-50%);
  pointer-events: none;
}

.home-hero-bottom {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(60px, 10vw, 180px);
  align-items: end;
  padding-top: 26px;
  border-top: 1px solid var(--home-line);
}

.home-hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--home-charcoal) !important;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  font-weight: 440;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.home-hero-actions,
.home-final-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.home-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.home-button:hover {
  transform: translateY(-1px);
}

.home-button-primary {
  color: var(--home-ivory);
  background: var(--home-charcoal);
  border-color: var(--home-charcoal);
}

.home-button-primary:hover {
  background: #101216;
}

.home-button-text {
  color: var(--home-charcoal);
  background: transparent;
}

.home-button-text:hover {
  border-color: var(--home-line);
}

.home-button-outline {
  color: var(--home-charcoal);
  border-color: rgba(32, 35, 40, 0.3);
  background: transparent;
}

.home-button-outline:hover {
  border-color: var(--home-charcoal);
}

/* About */

.home-about {
  border-top: 1px solid rgba(32, 35, 40, 0.1);
}

.home-about-copy {
  padding-bottom: 6px;
}

.home-about-copy .home-lead {
  margin: 0 0 26px;
  color: var(--home-charcoal);
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.home-about-copy > p:last-child {
  max-width: 600px;
  font-size: 1.04rem;
  line-height: 1.7;
}

/* Approach */

.home-approach {
  padding-top: 40px;
}

.home-approach-list {
  border-bottom: 1px solid var(--home-line);
}

.home-approach-row {
  display: grid;
  grid-template-columns: 90px minmax(200px, 0.65fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: baseline;
  padding: 30px 0 32px;
  border-top: 1px solid var(--home-line);
}

.home-index {
  color: rgba(32, 35, 40, 0.42);
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.08em;
}

.home-approach-row h3 {
  margin: 0;
  color: var(--home-charcoal);
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.045em;
}

.home-approach-row p {
  max-width: 640px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
}

/* Statement */

.home-statement {
  position: relative;
  overflow: hidden;
  color: var(--home-ivory);
  background: var(--home-charcoal);
}

.home-statement-inner {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(112px, 12vw, 180px);
  padding-bottom: clamp(112px, 12vw, 180px);
}

.home-kicker-inverse {
  color: rgba(245, 242, 236, 0.5);
}

.home-statement h2 {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 0 44px;
  color: var(--home-ivory);
  font-size: clamp(4rem, 8.4vw, 9rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.078em;
}

.home-statement > .home-container > p:not(.home-kicker) {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0;
  color: rgba(245, 242, 236, 0.66);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.45;
}

.home-statement-mark {
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  color: rgba(245, 242, 236, 0.035);
  font-size: clamp(26rem, 52vw, 52rem);
  font-weight: 740;
  line-height: 0.82;
  letter-spacing: -0.12em;
  pointer-events: none;
}

/* Directions */

.home-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(32, 35, 40, 0.16);
}

.home-direction {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  padding: clamp(38px, 5vw, 68px);
}

.home-direction + .home-direction {
  border-left: 1px solid rgba(32, 35, 40, 0.16);
}

.home-direction-models {
  background: rgba(209, 181, 143, 0.22);
}

.home-direction-operators {
  background: rgba(142, 150, 163, 0.16);
}

.home-direction-label {
  display: block;
  margin-bottom: 38px;
  color: rgba(32, 35, 40, 0.54);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-direction h3 {
  max-width: 590px;
  margin: 0 0 24px;
  color: var(--home-charcoal);
  font-size: clamp(2.4rem, 4.4vw, 5rem);
  font-weight: 510;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.home-direction p {
  max-width: 480px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.home-direction > a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(32, 35, 40, 0.32);
  color: var(--home-charcoal);
  font-size: 0.9rem;
  font-weight: 620;
}

/* Principles */

.home-principles {
  padding-top: 56px;
}

.home-principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-principle {
  min-height: 270px;
  padding: 28px 30px 34px 0;
}

.home-principle + .home-principle {
  padding-left: 30px;
  border-left: 1px solid var(--home-line);
}

.home-principle > span {
  display: block;
  margin-bottom: 72px;
  color: rgba(32, 35, 40, 0.4);
  font-size: 0.72rem;
  font-weight: 650;
}

.home-principle h3 {
  margin: 0 0 14px;
  color: var(--home-charcoal);
  font-size: 1.35rem;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.home-principle p {
  max-width: 250px;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Final */

.home-final {
  padding: clamp(128px, 15vw, 240px) 0;
  border-top: 1px solid rgba(32, 35, 40, 0.08);
}

.home-final-inner {
  text-align: center;
}

.home-final-inner .home-kicker {
  margin-bottom: 34px;
}

.home-final h2 {
  max-width: 1000px;
  margin: 0 auto 28px;
  color: var(--home-charcoal);
  font-size: clamp(3.8rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.home-final-inner > p:not(.home-kicker) {
  max-width: 580px;
  margin: 0 auto 42px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-final-actions {
  justify-content: center;
}

/* Footer */

.home-page .site-footer {
  padding: 0;
  color: var(--home-charcoal);
  background: var(--home-ivory);
  border-top: 1px solid var(--home-line);
}

.home-page .site-footer .footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: rgba(32, 35, 40, 0.54);
  font-size: 0.78rem;
}

.home-page .site-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-page .site-footer .footer-links a {
  color: rgba(32, 35, 40, 0.62);
}

.home-page .site-footer .footer-links a:hover {
  color: var(--home-charcoal);
}

/* Responsive */

@media (max-width: 980px) {
  .home-container,
  .home-page .header-inner,
  .home-page .footer-inner {
    width: min(calc(100% - 40px), 1440px);
  }

  .home-page .home-site-header .header-inner {
    grid-template-columns: 1fr auto;
  }

  .home-page .home-main-nav {
    display: none;
  }

  .home-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-title-wrap {
    min-height: 500px;
  }

  .home-hero-mark {
    right: -10%;
    opacity: 0.06;
  }

  .home-hero-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-hero-actions {
    justify-content: flex-start;
  }

  .home-approach-row {
    grid-template-columns: 64px minmax(180px, 0.7fr) 1fr;
    gap: 24px;
  }

  .home-direction {
    min-height: 460px;
  }

  .home-principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-principle:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--home-line);
  }

  .home-principle:nth-child(4) {
    border-top: 1px solid var(--home-line);
  }
}

@media (max-width: 720px) {
  .home-page .home-site-header .header-inner {
    min-height: 72px;
  }

  .home-brand-word {
    font-size: 0.95rem;
  }

  .home-page .home-lang-nav {
    gap: 9px;
  }

  .home-page .home-lang-nav a {
    font-size: 0.7rem;
  }

  .home-section {
    padding: 92px 0;
  }

  .home-hero-inner {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .home-hero-kicker-row span {
    display: none;
  }

  .home-hero-title-wrap {
    min-height: 430px;
    padding: 58px 0;
  }

  .home-hero-title {
    font-size: clamp(3.45rem, 15.4vw, 5.2rem);
    line-height: 0.91;
  }

  .home-hero-mark {
    width: 300px;
    right: -115px;
    top: 54%;
  }

  .home-hero-bottom {
    padding-top: 22px;
  }

  .home-hero-subtitle {
    max-width: 470px;
    font-size: 1.28rem;
  }

  .home-button {
    min-height: 50px;
    padding-inline: 20px;
  }

  .home-section-heading h2 {
    font-size: clamp(2.65rem, 11vw, 4.2rem);
  }

  .home-section-heading-wide {
    margin-bottom: 54px;
  }

  .home-about-copy .home-lead {
    font-size: 1.65rem;
  }

  .home-approach-row {
    grid-template-columns: 48px 1fr;
    gap: 12px 16px;
    padding: 24px 0 28px;
  }

  .home-approach-row h3 {
    font-size: 1.8rem;
  }

  .home-approach-row p {
    grid-column: 2;
  }

  .home-statement-inner {
    min-height: 610px;
  }

  .home-statement h2 {
    font-size: clamp(3.5rem, 15vw, 5.5rem);
  }

  .home-statement-mark {
    right: -0.12em;
    font-size: 27rem;
  }

  .home-direction-grid {
    grid-template-columns: 1fr;
  }

  .home-direction {
    min-height: 430px;
    padding: 36px 28px;
    gap: 64px;
  }

  .home-direction + .home-direction {
    border-left: 0;
    border-top: 1px solid rgba(32, 35, 40, 0.16);
  }

  .home-direction h3 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .home-principles-grid {
    grid-template-columns: 1fr;
  }

  .home-principle,
  .home-principle + .home-principle {
    min-height: 220px;
    padding: 26px 0 30px;
    border-left: 0;
    border-top: 1px solid var(--home-line);
  }

  .home-principle:first-child {
    border-top: 0;
  }

  .home-principle > span {
    margin-bottom: 54px;
  }

  .home-final h2 {
    font-size: clamp(3.4rem, 15vw, 5.4rem);
  }

  .home-page .site-footer .footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
  }
}

@media (max-width: 480px) {
  .home-container,
  .home-page .header-inner,
  .home-page .footer-inner {
    width: min(calc(100% - 32px), 1440px);
  }

  .home-hero-actions,
  .home-final-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .home-button {
    width: 100%;
  }

  .home-button-text {
    justify-content: flex-start;
    padding-left: 0;
  }

  .home-page .site-footer .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
