/* imaginate — SMJ Term 3 campaign landing page (WordPress standalone) */
/*
 * Background textures (grid-turmeric / grid-granite) are injected by the
 * PHP template as CSS custom properties --smj-grid-turmeric and --smj-grid-granite.
 * Dupla fonts ship with this bundle (not Media Library).
 */

@font-face {
  font-family: "Dupla";
  src: url("./fonts/dupla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dupla";
  src: url("./fonts/dupla-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dupla";
  src: url("./fonts/dupla-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dupla";
  src: url("./fonts/dupla-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f4f5f6;
  --color-bg-warm: #fff7f2;
  --color-text: #333f48;
  --color-text-muted: #616161;
  --color-accent: #f55000;
  --color-accent-hover: #d94600;
  --color-secondary: #0085ca;
  --color-border: #d7dce0;
  --color-footer: #333f48;
  --font-display: "museo-slab", "Georgia", serif;
  --font-body: "Dupla", "Helvetica Neue", sans-serif;
  --space-1: 10px;
  --space-2: 20px;
  --space-3: 40px;
  --space-4: 60px;
  --space-5: 80px;
  --space-6: 120px;
  --radius-btn: 10px;
  --radius-media: 18px;
  --shadow-media: 0 22px 50px rgba(51, 63, 72, 0.14);
  --max: 1180px;
  --narrow: 720px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --frame-size: 56px;
}

/* Isolate from any leaked WordPress / theme styles */
html.imaginate-smj-html {
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 100% !important;
}

body.imaginate-smj-body {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  font-family: var(--font-body) !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--color-text) !important;
  background: var(--color-bg) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.imaginate-smj-body *,
body.imaginate-smj-body *::before,
body.imaginate-smj-body *::after {
  box-sizing: border-box;
}

/* Hide WP admin bar chrome if present without theme styles */
#wpadminbar {
  display: none !important;
}

html.imaginate-smj-html {
  margin-top: 0 !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 700;
  color: #fff;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 16px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container.narrow,
.narrow {
  width: min(100% - 40px, var(--narrow));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2);
}

@media (min-width: 960px) {
  .eyebrow {
    font-size: 0.943rem; /* +15% on desktop */
  }
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
}

.emphasis {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  font-synthesis: none;
}

.emphasis--italic {
  font-style: italic;
  font-synthesis: style;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn--full {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 63, 72, 0.08);
}

.site-header__inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.site-logo img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: none;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* Video stage (hero + footer) */
.video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.video-stage__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.video-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(51, 63, 72, 0.28) 0%, rgba(51, 63, 72, 0.45) 55%, rgba(51, 63, 72, 0.62) 100%),
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(245, 80, 0, 0.18), transparent 70%);
}

.video-stage__veil--footer {
  background: linear-gradient(180deg, rgba(51, 63, 72, 0.72), rgba(51, 63, 72, 0.88));
}

.video-stage--register {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-stage__veil--register {
  background:
    linear-gradient(115deg, rgba(51, 63, 72, 0.88) 0%, rgba(51, 63, 72, 0.72) 48%, rgba(245, 80, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(51, 63, 72, 0.35), rgba(51, 63, 72, 0.55));
}

.video-stage__grid {
  position: absolute;
  inset: 0;
  background-image: var(--smj-grid-turmeric);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: var(--space-5) var(--space-2) var(--space-6);
  overflow: hidden;
  color: #fff;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  text-align: center;
  animation: heroIn 900ms var(--ease-out) both;
}

.hero__brand {
  width: min(78vw, 340px);
  height: auto;
  margin: 0 auto var(--space-3);
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.25));
}

.hero__support {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 28ch;
  margin: 0 auto var(--space-3);
}

@media (min-width: 960px) {
  .hero__support {
    max-width: none;
    white-space: nowrap;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
}

.hero__frame {
  position: absolute;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Sections */
.section {
  position: relative;
  padding: var(--space-5) 0;
  overflow: hidden;
}

.section__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section__texture--grid {
  background-image: var(--smj-grid-turmeric);
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.section__texture--granite {
  background-image: var(--smj-grid-granite);
  background-size: cover;
  background-position: center;
  opacity: 0.65;
}

.section__intro {
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.section__intro--center {
  margin-inline: auto;
  text-align: center;
}

.section__intro h2 {
  margin-bottom: var(--space-2);
}

.section--context {
  background: var(--color-bg);
  padding-top: var(--space-6);
}

.section--video {
  background: linear-gradient(180deg, var(--color-bg-soft), #fff 70%);
}

.section--principles {
  background: var(--color-bg-warm);
}

.section--examples {
  background: var(--color-bg-soft);
}

.section--offer {
  background: #fff;
  text-align: center;
}

.section--register {
  position: relative;
  overflow: hidden;
  background: var(--color-footer);
  color: #fff;
}

.section--explore {
  background: #fff;
  padding-bottom: var(--space-6);
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

.split__copy {
  position: relative;
  z-index: 1;
}

/* Media frames + placeholders */
.media-frame {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: #eef1f3;
  box-shadow: var(--shadow-media);
}

.media-frame--wide .video-embed,
.media-frame--wide .video-placeholder,
.media-frame--wide .img-ph {
  aspect-ratio: 16 / 9;
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a2228;
}

.media-clip__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.media-frame--landscape,
.media-frame--form-visual {
  aspect-ratio: 4 / 3;
}

/* Free-floating cutouts — no card, chrome, or matte behind the subjects */
.cutout {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  mix-blend-mode: normal;
  /* Keep breakout edges crisp on the page grid */
  -webkit-user-smoothing: antialiased;
}

.cutout--explore {
  max-width: 560px;
  margin-inline: auto;
}

.principles-visual .cutout {
  justify-self: center;
}

.media-frame--tile {
  aspect-ratio: 4 / 5;
}

.video-embed {
  position: relative;
  width: 100%;
  background: #1a2228;
}

.video-embed iframe,
.media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: relative;
}

.img-ph {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: var(--space-3);
  background:
    linear-gradient(145deg, rgba(245, 80, 0, 0.08), rgba(51, 63, 72, 0.04)),
    repeating-linear-gradient(
      -45deg,
      rgba(51, 63, 72, 0.03) 0 8px,
      rgba(51, 63, 72, 0.06) 8px 16px
    );
  color: var(--color-text-muted);
}

.img-ph span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.img-ph small {
  font-size: 0.85rem;
  max-width: 22ch;
  line-height: 1.4;
}

.img-ph--warm {
  background:
    linear-gradient(160deg, rgba(245, 80, 0, 0.16), rgba(255, 255, 255, 0.35)),
    var(--smj-grid-turmeric) center / cover;
}

.img-ph--dark {
  background:
    linear-gradient(160deg, rgba(51, 63, 72, 0.82), rgba(245, 80, 0, 0.55)),
    var(--smj-grid-turmeric) center / cover;
  color: rgba(255, 255, 255, 0.85);
  min-height: 100%;
  aspect-ratio: 16 / 9;
}

.img-ph--dark span {
  color: #fff;
}

.media-stack {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
}

.media-stack__lens {
  position: absolute;
  width: 42%;
  right: -12%;
  bottom: -8%;
  z-index: 4;
  filter: drop-shadow(0 12px 24px rgba(245, 80, 0, 0.25));
  animation: apertureSpin 40s linear infinite;
}

/* Principles */
.principles-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(51, 63, 72, 0.06);
}

.principle__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.principle__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.principle h3 {
  margin-bottom: 0.35em;
}

.principle p {
  color: var(--color-text-muted);
  margin: 0;
}

.principles-visual {
  display: grid;
  gap: var(--space-2);
}

/* Examples */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.examples-grid__reel {
  grid-column: 1 / -1;
}

/* Offer */
.offer-panel {
  position: relative;
  z-index: 1;
  padding: var(--space-4) var(--space-3);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 80, 0, 0.12);
  box-shadow: var(--shadow-media);
}

.offer__lens {
  width: min(40vw, 320px);
  right: -6%;
  top: 10%;
  opacity: 0.12;
  animation: apertureSpin 64s linear infinite;
}

.offer-points {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: 14px;
  font-weight: 700;
  font-size: 1.08rem;
  text-align: left;
  max-width: 40ch;
  margin-inline: auto;
}

.offer-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}

.offer-points img {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  object-fit: contain;
}

.offer-panel__cta {
  margin-top: var(--space-3);
}

/* Form */
.form-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

.form-layout__intro h2 {
  margin-bottom: var(--space-2);
  color: #fff;
}

.form-layout__intro p {
  color: rgba(255, 255, 255, 0.88);
}

.form-layout__intro .eyebrow {
  color: var(--color-accent);
}

.form-layout__intro .register-urgency {
  margin-top: var(--space-3);
  margin-bottom: 0;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
}

.register-urgency__break {
  display: none;
}

@media (min-width: 960px) {
  .register-urgency__break {
    display: block;
  }
}

.lead-form {
  background: #fff;
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 80, 0, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field-optional {
  font-weight: 600;
  color: var(--color-text-muted);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 80, 0, 0.15);
}

.field input.is-invalid {
  border-color: #c0392b;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}

.form-fineprint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700;
  white-space: pre-line;
}

.form-status.is-success {
  background: #eaf7ef;
  color: #1f6b3a;
}

.form-status.is-error {
  background: #fdecea;
  color: #8a1f17;
}

/* Footer */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-5) 0;
  overflow: hidden;
}

.site-footer__inner {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  position: relative;
  z-index: 1;
}

.site-footer__powered {
  width: min(280px, 75vw);
  height: auto;
  margin: 0;
}

.site-footer p {
  margin: 0;
  max-width: 40ch;
}

.site-footer a {
  color: #fff;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes apertureSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, -14px, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.imaginate-smj-html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .video-stage__media {
    display: none;
  }
}

/* Breakpoints */
@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .principles-visual {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-5);
  }

  .split--explore {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .principles-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-5);
    align-items: center;
  }

  .principles-visual {
    grid-template-columns: 1fr;
  }

  .form-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-5);
  }

  .hero {
    padding-block: var(--space-6);
  }

  .section {
    padding: var(--space-6) 0;
  }
}

@media (max-width: 640px) {
  body.imaginate-smj-body {
    font-size: 16.5px !important;
  }

  .site-header__inner .btn--sm {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 85px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 40.5px;
    padding: 9.72px 19.44px;
    font-size: 0.81rem;
  }

  .hero__support {
    margin-top: 60px;
  }

  .hero__frame {
    inset: auto;
    top: 50%;
    left: 50%;
    width: auto;
    height: min(90vw, 72%);
    max-width: none;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }

  .principle {
    grid-template-columns: 44px 1fr;
  }

  .principle__icon {
    width: 44px;
    height: 44px;
  }

  .lead-form {
    padding: var(--space-2);
  }

  .offer-panel {
    padding: var(--space-3) var(--space-2);
  }
}
