:root {
  --basmati-white: #FCF5EA;
  --masala-orange: #E25928;
  --chutney-green: #072514;
  --kachumbar-green: #456641;
  --haldi-gold: #F29E25;
  --pyaaz-pink: #972A6C;
  --imli-maroon: #331019;
  --smoked-red-chili: #940A09;

  --font-head: "Gayathri", "Epilogue", sans-serif;
  --seal-scale: 0.6; /* secondary logo size: 40% smaller on desktop */
  --font-body: "Epilogue", system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--basmati-white);
  color: var(--chutney-green);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

/* Left: cream panel, logo + copy */
.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vh, 32px);
  padding: clamp(28px, 6vh, 72px) clamp(28px, 6vw, 96px);
  min-height: 0;
}

/* Clear space of 0.3x on all sides, x being the logo height */
.logo-primary {
  --logo-h: clamp(48px, 9vh, 96px);
  box-sizing: content-box;
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  padding: calc(var(--logo-h) * 0.3);
  margin: calc(var(--logo-h) * -0.3);
  display: block;
}

.copy { max-width: 44rem; }

.eyebrow {
  font-size: clamp(0.8rem, 1.6vh + 0.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kachumbar-green);
  margin-bottom: clamp(10px, 2vh, 20px);
}

h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 3.2vw + 2.5vh, 5.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--masala-orange);
  text-wrap: balance;
  margin-bottom: clamp(12px, 2.5vh, 28px);
}

.lede {
  font-size: clamp(1rem, 1vw + 1.4vh, 1.375rem);
  line-height: 1.4;
  color: var(--imli-maroon);
  text-wrap: balance;
  max-width: 30em;
}

.pill {
  font-weight: 600;
  font-size: clamp(0.875rem, 1.4vh + 0.3vw, 1.0625rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--chutney-green);
  color: var(--basmati-white);
  white-space: nowrap;
}

/* Right: orange panel, secondary logo */
.badge {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--masala-orange);
  padding: clamp(24px, 5vh, 64px);
  min-height: 0;
  overflow: hidden;
  container-type: size;
}

.logo-secondary {
  width: calc(min(100cqw, 100cqh) * var(--seal-scale));
  height: calc(min(100cqw, 100cqh) * var(--seal-scale));
  object-fit: contain;
  animation: float 7s ease-in-out infinite;
}

/* Fallbacks until real logo files are in assets/ */
.wordmark-fallback {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vh, 5rem);
  line-height: 1;
  color: var(--masala-orange);
}
.seal-fallback svg { overflow: visible; z-index: -1; position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-fallback {
  isolation: isolate;
  width: calc(min(100cqw, 100cqh) * var(--seal-scale));
  height: calc(min(100cqw, 100cqh) * var(--seal-scale));
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(4rem, 18cqmin, 14rem);
  color: var(--masala-orange);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-1.2vh) rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-secondary { animation: none; }
}

/* Tablet portrait and mobile: stack, orange panel below */
@media (max-aspect-ratio: 1/1) {
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) min(46dvh, 100vw);
  }
  .content {
    justify-content: space-evenly;
    gap: clamp(14px, 2.5vh, 32px);
    padding: clamp(24px, 4.5vh, 56px) clamp(24px, 6vw, 64px) clamp(20px, 3vh, 40px);
  }
  .logo-primary { --logo-h: clamp(44px, 8vh, 80px); }
  h1 { font-size: clamp(2.25rem, 9vw, 4.5rem); margin-bottom: clamp(16px, 3vh, 32px); }
  .eyebrow { margin-bottom: clamp(12px, 2.2vh, 24px); }
  .lede { font-size: clamp(0.975rem, 2.6vw, 1.25rem); }
  .pill { display: none; }
  .badge { padding: clamp(16px, 3vh, 40px); }
  .badge::after {
    content: "Coming soon";
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 2vh, 24px);
    transform: translateX(-50%);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.2vh + 0.4vw, 0.95rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--basmati-white);
    white-space: nowrap;
  }
  :root { --seal-scale: 0.8; } /* 20% smaller on mobile */
  .badge { padding-bottom: clamp(44px, 8vh, 72px); }
}

/* Short landscape phones */
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  .page { grid-template-columns: 1.3fr 0.7fr; }
  .content { padding: 16px 28px; gap: 8px; }
  .logo-primary { --logo-h: 32px; }
  h1 { font-size: clamp(1.75rem, 8vh, 3rem); margin-bottom: 6px; }
  .lede { font-size: 0.85rem; line-height: 1.3; }
  .eyebrow { font-size: 0.7rem; margin-bottom: 4px; }
  .pill { padding: 0.55em 1.2em; font-size: 0.7rem; }
}
