/* ==========================================================================
   Rizvi.au design system
   Source of truth: Rizvi_au_Website_Brand_Design_Specification.md
   Concept: Natural Harmony. Navy foundation, muted green, warm beige, soft cream.
   ========================================================================== */

:root {
  --navy: #0F2740;
  --slate: #2E4A62;
  --green: #556B56;
  --beige: #C9B494;
  --cream: #F7F6F2;
  --surface: #E6E4DF;
  --text: #1A1A1A;
  --white: #FFFFFF;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --inset: clamp(10px, 1.6vw, 24px);
  --section: clamp(88px, 10vw, 152px);

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(15, 39, 64, 0.04), 0 18px 40px -24px rgba(15, 39, 64, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 88px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

h1, h2, h3 {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.7vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }

p { max-width: 62ch; text-wrap: pretty; }

::selection { background: var(--beige); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

/* ==========================================================================
   Type helpers
   ========================================================================== */
.label {
  display: block;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}
.label--light { color: var(--beige); }

.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.65;
  color: var(--slate);
}

.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--beige);
  border: 0;
  margin: 28px 0 0;
}

.stack > * + * { margin-top: 1.2em; }

.nowrap { white-space: nowrap; }

/* ==========================================================================
   Buttons (supplied theme: pill shape, navy primary, beige secondary)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--slate); }
.btn--secondary { background: var(--beige); color: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--surface); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: inline-flex; border-radius: 6px; }
.brand img {
  height: 60px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav ul { display: flex; gap: clamp(28px, 3vw, 44px); }
.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--beige);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--slate); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  position: relative;
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: background-color 0.2s var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease);
}
.menu-toggle span::before { transform: translateY(-5px); }
.menu-toggle span::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px var(--gutter) 48px;
  background: var(--cream);
  border-top: 1px solid var(--surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu ul a {
  display: block;
  padding: 10px 0;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}
.mobile-menu ul a[aria-current="page"] { color: var(--green); }
.mobile-menu-foot { font-size: 0.95rem; color: var(--slate); }
.mobile-menu-foot a { color: var(--navy); font-weight: 500; }

@media (max-width: 760px) {
  :root { --header-h: 76px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 50px; }
}
@media (min-width: 761px) {
  .mobile-menu { display: none; }
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Media: hero panels, framed video, stills
   ========================================================================== */
.hero { padding: 0 var(--inset); }

.hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(560px, calc(100svh - var(--header-h) - var(--inset)), 920px);
  border-radius: var(--radius-lg);
  background: var(--navy);
}
.hero-frame--short { height: clamp(460px, 68svh, 720px); }

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.4s var(--ease);
}
.scene.is-active { opacity: 1; }

.media-fill,
.scene img,
.scene video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) sepia(0.08) contrast(0.97);
}
.scene .focus-opera { object-position: 42% 50%; }

.scene video,
.media video {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.scene video.is-playing,
.media video.is-playing { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(15, 39, 64, 0.82) 0%, rgba(15, 39, 64, 0.38) 42%, rgba(15, 39, 64, 0.2) 100%),
    linear-gradient(to right, rgba(15, 39, 64, 0.5) 0%, rgba(15, 39, 64, 0) 62%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5.5vw, 88px);
  right: clamp(28px, 5.5vw, 88px);
  bottom: clamp(88px, 11vh, 132px);
  max-width: 700px;
  color: var(--white);
}
.hero-content h1 { color: var(--white); }
.hero-content .label { color: rgba(255, 255, 255, 0.82); margin-bottom: 18px; }
.hero-sub {
  margin-top: 16px;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 5.5vw, 88px);
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(24px, 3.2vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.scene-caption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scene-caption::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--beige);
}
.scene-caption-text { transition: opacity 0.6s var(--ease); }
.scene-caption-text.is-changing { opacity: 0; }
.scene-count { font-variant-numeric: tabular-nums; margin-right: 18px; }
.hero-meta-end { display: flex; align-items: center; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 39, 64, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.motion-toggle:hover { background: rgba(15, 39, 64, 0.7); border-color: rgba(255, 255, 255, 0.6); }
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[data-paused="true"] .icon-pause { display: none; }
.motion-toggle[data-paused="true"] .icon-play { display: block; }
.no-motion .motion-toggle { display: none; }

/* Framed media inside content sections */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.media--tall { aspect-ratio: 4 / 5; }
.media img,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.74) sepia(0.08) contrast(0.97);
}
.media .motion-toggle {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
}

.caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
.caption::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--beige);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--surface { background: var(--surface); }
.section--tight-top { padding-top: clamp(64px, 7vw, 104px); }

.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 32px;
  align-items: start;
}
.intro-head { grid-column: 1 / span 5; }
.intro-body { grid-column: 7 / span 6; padding-top: 6px; }

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6.5vw, 104px);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-body h2 { margin-bottom: 24px; }

.section-head { max-width: 640px; margin-bottom: clamp(44px, 5vw, 64px); }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.principle {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.principle svg {
  width: 30px;
  height: 30px;
  margin-bottom: 36px;
  color: var(--navy);
}
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--slate); font-size: 1rem; line-height: 1.7; }

/* Deep navy statement band */
.statement {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(104px, 12vw, 176px);
  background:
    radial-gradient(ellipse 70% 90% at 12% 0%, rgba(46, 74, 98, 0.55), transparent 60%),
    radial-gradient(ellipse 55% 70% at 100% 100%, rgba(85, 107, 86, 0.22), transparent 60%),
    var(--navy);
  color: var(--surface);
}
.statement::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-220px, -10vw, -80px);
  top: 50%;
  width: clamp(320px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(201, 180, 148, 0.18);
  transform: translateY(-50%);
}
.statement h2 {
  max-width: 18ch;
  color: var(--white);
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
}
.statement p { margin-top: 26px; color: var(--surface); font-size: 1.1rem; }

/* Correspondence */
.correspond {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.correspond p { color: var(--slate); margin-top: 16px; }

.email-link {
  display: inline-block;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(var(--beige), var(--beige));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 6px;
  transition: color 0.25s var(--ease), background-size 0.35s var(--ease);
}
.email-link:hover { color: var(--slate); background-size: 40% 2px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-grid h1 { margin-bottom: 26px; }
.contact-email { margin: 44px 0 52px; }

.details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 16px clamp(32px, 4vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--surface);
}
.details dt {
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}
.details dd { color: var(--navy); font-weight: 500; }
.details a { text-decoration: none; }
.details a:hover { text-decoration: underline; text-decoration-color: var(--beige); text-underline-offset: 4px; }

.media .contact-still { object-position: 40% 50%; }

.note {
  margin-top: 44px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border-left: 3px solid var(--beige);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate);
}

/* Legal / prose pages */
.page-head { padding-block: clamp(72px, 8vw, 120px) clamp(40px, 4vw, 56px); }
.page-head p { margin-top: 20px; color: var(--slate); }
.prose { max-width: 72ch; padding-bottom: var(--section); }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); margin: 56px 0 16px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.1em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--navy); text-decoration-color: var(--beige); text-underline-offset: 4px; }
.prose a:hover { color: var(--slate); }

/* Not found */
.not-found {
  min-height: calc(100svh - var(--header-h) - 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--section);
}
.not-found p { margin: 20px 0 36px; color: var(--slate); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(230, 228, 223, 0.12);
  background: var(--navy);
  color: rgba(230, 228, 223, 0.82);
  padding-top: clamp(72px, 8vw, 112px);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand-tile {
  display: inline-flex;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--cream);
}
.footer-brand .brand-tile img { height: 76px; width: auto; mix-blend-mode: multiply; }
.footer-brand p { margin-top: 26px; max-width: 34ch; line-height: 1.7; }

.footer-col h2 {
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--beige);
}
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--beige); }

.acknowledgement {
  padding: 28px 0;
  border-top: 1px solid rgba(230, 228, 223, 0.14);
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(230, 228, 223, 0.72);
}
.acknowledgement p { max-width: 90ch; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 32px;
  border-top: 1px solid rgba(230, 228, 223, 0.14);
  font-size: 0.85rem;
  color: rgba(230, 228, 223, 0.66);
}
.footer-bottom a { color: rgba(230, 228, 223, 0.86); text-decoration: none; }

.site-footer--compact { padding-top: 0; }
.site-footer--compact .acknowledgement { border-top: 0; padding-top: 40px; }
.footer-bottom a:hover { color: var(--beige); }

/* ==========================================================================
   Reveal on scroll (enabled by JS only, so content is never hidden without it)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .intro-head, .intro-body { grid-column: 1 / -1; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .principles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero-frame { height: clamp(520px, calc(100svh - var(--header-h) - 12px), 760px); }
  .hero-frame--short { height: clamp(420px, 62svh, 600px); }
  .hero-content { bottom: 96px; }
  .scene-count { display: none; }
  .details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
