/* Farahmand Learn — Immersive homepage */
.home-immersive {
  --im-ink: #071417;
  --im-paper: #f4efe6;
  --im-mist: rgba(244, 239, 230, .88);
  background: #050d10;
  color: var(--im-ink);
  overflow-x: hidden;
}

.im-scene {
  position: relative;
  min-height: 100vh;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.im-depth {
  position: absolute;
  inset: -4%;
  z-index: 0;
  will-change: transform;
}

.im-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.08);
}

.im-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5,13,16,.78) 0%, rgba(5,13,16,.42) 42%, rgba(5,13,16,.2) 68%, rgba(7,20,24,.55) 100%),
    linear-gradient(180deg, rgba(5,13,16,.35) 0%, transparent 35%, rgba(5,13,16,.72) 100%),
    radial-gradient(ellipse 50% 45% at 78% 36%, rgba(184,149,95,.22), transparent 60%);
}

.im-nav {
  position: relative;
  z-index: 20;
  padding: 1.1rem 0 .4rem;
}

.im-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-immersive .brand-shine {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: .12em;
  filter:
    drop-shadow(0 1px 0 rgba(255,248,234,.35))
    drop-shadow(0 10px 28px rgba(0,0,0,.35));
}

.im-nav-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.im-link {
  color: rgba(244,239,230,.78);
  font-weight: 700;
  font-size: .9rem;
  padding: .3rem .15rem;
}

.im-link:hover { color: #fff; }

.im-btn-ghost {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: #f4efe6 !important;
  backdrop-filter: blur(10px);
}

.im-btn {
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(10,107,111,.35);
}

.im-hero {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  padding: 1.5rem 0 3.5rem;
}

.im-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.im-hero-copy {
  color: #f4efe6;
  will-change: transform;
}

.im-eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 1rem;
}

.im-eyebrow.dark { color: #9a7a45; }

.im-logo-wrap {
  width: min(168px, 38vw);
  margin-bottom: 1rem;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}

.im-logo {
  width: 100%;
  height: auto;
  animation: imFloat 7s ease-in-out infinite;
}

@keyframes imFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg); }
  50% { transform: translateY(-10px) rotateX(4deg); }
}

.im-title {
  font-family: var(--font-fa);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0 0 .75rem;
  text-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.im-lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 2;
  max-width: 28rem;
  color: rgba(244,239,230,.84);
  margin-bottom: 1.6rem;
}

.im-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.2rem;
  align-items: center;
}

.im-ghost-link {
  color: rgba(244,239,230,.8);
  font-weight: 700;
  border-bottom: 1px solid rgba(212,180,131,.45);
  padding-bottom: .15rem;
}

.im-ghost-link:hover { color: #fff; }

.im-stack {
  position: relative;
  height: min(520px, 70vh);
  transform-style: preserve-3d;
  will-change: transform;
}

.im-card {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.12);
  background: #0c181f;
  transform-style: preserve-3d;
}

.im-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.im-card-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(5,13,16,.82));
}

.im-card-a {
  width: 68%;
  height: 62%;
  top: 4%;
  right: 4%;
  transform: rotateY(-14deg) rotateX(6deg) translateZ(40px);
  animation: imCardA 9s ease-in-out infinite;
}

.im-card-b {
  width: 48%;
  height: 42%;
  bottom: 8%;
  left: 2%;
  transform: rotateY(16deg) rotateX(-4deg) translateZ(90px);
  animation: imCardB 8s ease-in-out infinite;
}

.im-card-c {
  width: 42%;
  height: 36%;
  top: 34%;
  left: 34%;
  transform: rotateY(-8deg) rotateX(10deg) translateZ(140px);
  animation: imCardC 10s ease-in-out infinite;
}

@keyframes imCardA {
  0%, 100% { transform: rotateY(-14deg) rotateX(6deg) translateZ(40px) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(8deg) translateZ(55px) translateY(-10px); }
}
@keyframes imCardB {
  0%, 100% { transform: rotateY(16deg) rotateX(-4deg) translateZ(90px) translateY(0); }
  50% { transform: rotateY(12deg) rotateX(-2deg) translateZ(110px) translateY(8px); }
}
@keyframes imCardC {
  0%, 100% { transform: rotateY(-8deg) rotateX(10deg) translateZ(140px) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(12deg) translateZ(160px) translateY(-6px); }
}

.im-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .68rem;
  color: rgba(244,239,230,.55);
  animation: imBounce 2.2s ease-in-out infinite;
}

@keyframes imBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .45; }
  50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

.im-experience {
  background:
    radial-gradient(ellipse 700px 400px at 10% 0%, rgba(10,107,111,.08), transparent 60%),
    linear-gradient(180deg, #f6f1e8 0%, #efe7da 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.im-section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.im-section-head h2 {
  font-family: var(--font-fa);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -.02em;
  margin: .35rem 0 .55rem;
}

.im-section-head p {
  color: rgba(12,24,31,.7);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.9;
}

.im-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.im-shot {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0 24px 50px rgba(12,24,31,.12);
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s;
  will-change: transform;
}

.im-shot:hover {
  box-shadow: 0 30px 70px rgba(12,24,31,.2);
}

.im-shot img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform .8s var(--ease);
}

.im-shot:hover img { transform: scale(1.08); }

.im-shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(5,13,16,.82));
  color: #fff;
  display: grid;
  gap: .15rem;
}

.im-shot strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.im-shot span {
  font-size: .88rem;
  opacity: .82;
}

.im-shot-lg {
  grid-row: span 2;
  min-height: 520px;
}

.im-shot-lg img { min-height: 520px; }

.im-shot-wide {
  grid-column: 2 / span 2;
}

.im-contact-wrap {
  background: #050d10;
  padding: 0 0 3.5rem;
}

.im-contact {
  margin-top: -1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(145deg, rgba(18,36,40,.92), rgba(10,22,26,.95)),
    radial-gradient(ellipse at 90% 10%, rgba(184,149,95,.16), transparent 50%);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  color: #f4efe6;
  display: grid;
  gap: 1.4rem;
}

.im-contact h2 {
  font-weight: 900;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin: .3rem 0 .4rem;
}

.im-contact-desc {
  color: rgba(244,239,230,.75);
  font-weight: 600;
}

.im-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.im-contact-grid p {
  display: grid;
  gap: .2rem;
  margin: 0 0 .85rem;
}

.im-contact-grid span {
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(244,239,230,.5);
  font-weight: 700;
}

.im-contact-grid strong,
.im-contact-grid a {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.im-contact-grid a { color: var(--gold-bright); }
.im-contact-grid a:hover { color: #fff; }

.im-contact-end { align-content: start; }
.im-btn-gold { margin-top: .35rem; font-weight: 800; }

@media (max-width: 980px) {
  .im-hero-grid { grid-template-columns: 1fr; }
  .im-stack {
    height: 360px;
    margin-top: .5rem;
  }
  .im-gallery {
    grid-template-columns: 1fr;
  }
  .im-shot-lg,
  .im-shot-wide { grid-column: auto; grid-row: auto; }
  .im-shot-lg,
  .im-shot-lg img { min-height: 300px; }
}

@media (max-width: 700px) {
  .im-link { display: none; }
  .im-contact-grid { grid-template-columns: 1fr; }
  .im-card-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .im-logo, .im-card-a, .im-card-b, .im-card-c, .im-scroll, .brand-shine {
    animation: none !important;
  }
}
