/* ==========================================================================
   Mayilkan Silks and Sarees — Coming Soon
   style.css : fonts, tokens, saree photograph background, hero copy, left photo cluster
   Desktop: logo + copy on the exact viewport centre, photo cards either side.
   (Phones / tablets: see responsive.css)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ivory: #F8F3EA;
  --ivory-hi: #FCF9F3;
  --teal: #0E4A4F;
  --teal-deep: #0A3B40;
  --teal-ink: #1F4E52;
  --body: #4B5B5C;
  --muted: #6B7676;
  --gold: #B98A3E;
  --gold-soft: #D8BC8A;
  --gold-line: rgba(185, 138, 62, .45);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-wipe: cubic-bezier(.77, 0, .18, 1);

  --radius: 18px;
  --content-w: 540px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: #FCEBD8; /* warm cream of the wall in the saree photograph */
  color: var(--teal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Teal silk saree photograph on its own layer so it can drift; a light sheen glides over the silk */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background: url("../assets/images/bg-teal-saree.webp") center / cover no-repeat;
  transform-origin: 70% 65%;
}
body::after {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 58%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 100%, #000 35%, transparent 80%);
          mask-image: radial-gradient(70% 90% at 100% 100%, #000 35%, transparent 80%);
  opacity: 0; /* only shown while the sheen animation runs */
}

img, svg { display: block; max-width: 100%; }
p, h1 { margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 0 max(64px, 18vh); /* larger bottom padding lifts the copy clear of the dark saree folds */
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Centre column ---------- */
.content {
  position: relative;
  z-index: 2;
  width: min(var(--content-w), 100% - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* soft cream glow so the centred copy stays crisp over the jasmine and silk in the photograph */
.content::before {
  content: "";
  position: absolute;
  inset: -60px -120px -30px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(252, 241, 228, .94) 0%, rgba(252, 241, 228, .86) 58%, rgba(252, 241, 228, 0) 100%);
  pointer-events: none;
}

.logo {
  width: 320px;
  height: auto;
}

.eyebrow {
  margin-top: 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .16em;
  margin-right: -.16em; /* optical centring of tracked text */
  color: var(--gold);
}

.headline {
  margin-top: 14px;
  font-family: var(--serif);
  color: var(--teal);
  line-height: 1;
}
.headline__mask {
  display: block;
  overflow: hidden;
  /* room for the italic overhang and descenders inside the mask */
  padding: .02em .14em .14em;
  margin: 0 -.14em -.14em;
}
.headline__line { display: inline-block; }
.headline__line--1 {
  font-style: italic;
  font-weight: 500;
  font-size: 60px;
  letter-spacing: -.01em;
  line-height: .98;
}
.headline__line--2 {
  font-weight: 500;
  font-size: clamp(44px, 4.5vw, 72px);
  letter-spacing: -.005em;
  line-height: 1.02;
  color: var(--teal-deep);
}

.divider {
  width: 104px;
  height: auto;
  margin-top: 22px;
  overflow: visible;
}
.divider path { stroke: var(--gold); stroke-width: 1.2; fill: none; }
.divider .divider__gem { fill: var(--gold); stroke: none; }

.lede {
  margin-top: 20px;
  max-width: 470px;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: balance;
}

.pill {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 10px 24px -12px rgba(10, 59, 64, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .08em;
  color: #F6EFE2;
}
.pill::before { /* tiny gold status dot */
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.status {
  margin-top: 16px;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--muted);
}

.footer {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .03em;
  color: rgba(246, 236, 220, .85); /* sits on the dark silk at the bottom of the photograph */
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

/* ---------- Photo cluster (desktop: all three client photographs on the left, on a 3D stage) ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.gallery {
  position: absolute;
  inset: 0;
  z-index: 3; /* above the copy's soft glow, never over the copy itself */
  pointer-events: none;
  --px: 0;
  --py: 0;
}
.side { position: absolute; }

.side--left {
  left: 2.4vw;
  top: 50%;
  width: min(27vw, 520px, 68vh);
  transform: translateY(-50%);
  perspective: 1400px;
  /* pointer parallax drift (js/main.js sets --px / --py) */
  translate: calc(var(--px) * 1px) calc(var(--py) * 1px);
  transition: translate .9s var(--ease-out);
}

/* the stage turns slightly towards the copy and tilts with the pointer */
.stage {
  position: relative;
  aspect-ratio: 1 / 1.08;
  transform-style: preserve-3d;
  transform: rotateY(calc(-10deg + var(--px) * .8deg)) rotateX(calc(3deg - var(--py) * .8deg));
  transition: transform 1.1s var(--ease-out);
}

/* each photo floats at its own depth (--z) */
.float {
  position: absolute;
  transform: translate3d(0, 0, var(--z));
}
.float--a { left: 0;   top: 6%;  width: 74%; --z: 0px; }
.float--b { right: 0;  top: 24%; width: 42%; --z: 70px; }
.float--c { left: 10%; bottom: 0; width: 38%; --z: 120px; }

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0C3B3F; /* reserves colour while the photo decodes */
  box-shadow:
    0 40px 70px -30px rgba(6, 30, 32, .65),
    0 12px 24px -12px rgba(6, 30, 32, .4),
    0 0 0 4px rgba(255, 255, 255, .92);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* glass sheen that sweeps across each photo (animated in animations.css) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .38) 46%, rgba(255, 255, 255, .1) 52%, rgba(255, 255, 255, 0) 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.card--landscape { aspect-ratio: 1199 / 800; }
.card--portrait  { aspect-ratio: 9 / 16; }
.card--small     { aspect-ratio: 5 / 7; }
.card--small img { object-position: 50% 12%; }

/* gold gradient ring around each photo; the light travels round it (animated --ang) */
.frame {
  position: absolute;
  inset: -11px;
  border-radius: calc(var(--radius) + 11px);
  padding: 1.5px;
  background: conic-gradient(from var(--ang),
    rgba(185, 138, 62, .15) 0deg,
    rgba(232, 204, 150, 1) 60deg,
    rgba(185, 138, 62, .15) 130deg,
    rgba(185, 138, 62, .45) 230deg,
    rgba(185, 138, 62, .15) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* twinkling 4-point gold sparkles floating in front of the cluster */
.spark {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #F3DCA6, var(--gold));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transform: translateZ(150px);
}
.spark--1 { top: 1%;  left: 80%; }
.spark--2 { bottom: 9%; left: 52%; width: 13px; height: 13px; }

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