/* =========================================================
   WE BUILD AUSTRALIA — DARK CINEMATIC STYLESHEET
   Shared across all pages
   ========================================================= */

:root {
  /* Brand navy palette (sampled from logo #00354d) */
  --black: #00263a;          /* base background — deep navy, slightly darkened from brand */
  --ink: #002e44;            /* between base and brand */
  --ink-2: #00354d;          /* alt-bg panels — pure brand navy */
  --navy-mid: #0a4566;       /* hover / accent panels — lighter navy tint */
  --pure-black: #0a0a0a;     /* preserved for any rare true-black needs */
  --white: #ffffff;
  --bone: #f5f1ea;
  --crimson: #e6173d;
  --crimson-deep: #b8102e;
  --grey: #6b6b6b;
  --grey-light: #a8a8a8;
  --grey-mid: #808080;
  --line: rgba(255,255,255,0.1);
  --line-strong: rgba(255,255,255,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.45;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--crimson); color: var(--white); }

/* =========================================================
   TOP NAV — Logo left, hamburger right
   ========================================================= */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.top-nav > * { pointer-events: auto; }
.top-nav.scrolled {
  background: rgba(0, 38, 58, 0.88);
  backdrop-filter: blur(10px);
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}
.brand img { height: 72px; width: auto; display: block; }
.top-nav.scrolled .brand img { height: 56px; }

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--white);
  color: var(--black);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.menu-btn:hover { background: var(--crimson); color: var(--white); }
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s;
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-btn.open span { background: transparent; }
.menu-btn.open span::before { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span::after { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================================
   FULLSCREEN MENU
   ========================================================= */
.fs-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.fs-menu.open { opacity: 1; pointer-events: auto; }
.fs-menu ul { list-style: none; text-align: center; }
.fs-menu li { margin: 16px 0; }
.fs-menu a {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  display: inline-block;
  transition: color 0.2s;
}
.fs-menu a:hover { color: var(--crimson); }
.fs-menu a.active { color: var(--crimson); }
.fs-menu .menu-footer {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--grey-light);
  text-transform: uppercase;
}
.fs-menu .menu-footer a { font-size: 12px; color: var(--white); font-weight: 500; }

/* =========================================================
   PAGE HEADER (inner pages — full-bleed mini hero)
   ========================================================= */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 140px 40px 80px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-inner .breadcrumb { margin-bottom: 40px; }
.page-hero-inner .section-label { margin-bottom: 24px; }
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--crimson); }
.breadcrumb .sep { margin: 0 12px; color: var(--crimson); }
.page-title {
  font-size: clamp(56px, 9vw, 168px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 1300px;
}
.page-title em { font-style: normal; color: var(--crimson); }
.page-lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin-top: 32px;
  font-weight: 400;
}

/* =========================================================
   FULL-BLEED CINEMATIC SECTION
   ========================================================= */
.fb-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-bg { position: absolute; inset: 0; z-index: 0; }
.fb-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.fb-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 1400px;
}
.fb-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0.85;
}
.fb-headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(56px, 9vw, 168px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
}
.fb-headline em { font-style: normal; color: var(--crimson); }
.fb-subhead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 36px auto 0;
}
.fb-content--left { text-align: left; max-width: 1500px; width: 100%; padding: 0 64px; }
.fb-content--left .fb-headline { font-size: clamp(48px, 7vw, 128px); }
.fb-meta-bottom {
  position: absolute;
  bottom: 48px;
  left: 64px;
  right: 64px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.fb-meta-bottom .meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.fb-meta-bottom .meta-value {
  font-size: 17px;
  color: var(--white);
  font-weight: 500;
  margin-top: 4px;
}

/* =========================================================
   STANDARD DARK CONTENT SECTION
   ========================================================= */
.dark-section {
  background: var(--black);
  padding: 140px 40px;
  position: relative;
}
.dark-section.alt-bg { background: var(--ink-2); }
.dark-section-inner {
  max-width: 1500px;
  margin: 0 auto;
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-title {
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.section-title em { font-style: normal; color: var(--crimson); }
.section-intro {
  font-size: 18px;
  color: var(--grey-light);
  max-width: 600px;
  line-height: 1.55;
  margin-top: 32px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--black); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--crimson); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn .arrow { font-size: 14px; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   FOOTER (shared)
   ========================================================= */
.foot {
  background: var(--black);
  padding: 100px 40px 32px;
  border-top: 1px solid var(--line);
}
.foot-inner { max-width: 1500px; margin: 0 auto; }
.foot-mega {
  font-size: clamp(40px, 6vw, 120px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 80px;
  color: var(--white);
}
.foot-mega em { font-style: normal; color: var(--crimson); }
.foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 24px;
  font-weight: 500;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.foot-col a {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--crimson); }
.foot-brand img { height: 72px; width: auto; margin-bottom: 24px; display: block; }
.foot-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
}
.foot-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   CTA SECTION (shared, used at bottom of inner pages)
   ========================================================= */
.cta-fb {
  position: relative;
  background: var(--black);
  padding: 160px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-fb-inner { max-width: 1100px; margin: 0 auto; }
.cta-fb-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 32px;
}
.cta-fb-title {
  font-size: clamp(48px, 7vw, 128px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.cta-fb-title em { font-style: normal; color: var(--crimson); }
.cta-fb-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.5;
}
.cta-fb-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .top-nav { padding: 16px 20px; }
  .brand img { height: 40px; }
  .top-nav.scrolled .brand img { height: 32px; }
  .dark-section, .cta-fb { padding-left: 24px; padding-right: 24px; padding-top: 80px; padding-bottom: 80px; }
  .foot { padding-left: 24px; padding-right: 24px; padding-top: 60px; }
  .section-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .fb-content--left { padding: 0 24px; }
  .fb-meta-bottom { left: 24px; right: 24px; bottom: 32px; }
  .page-hero { padding: 100px 24px 60px; min-height: 60vh; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0; }
  .foot-brand img { height: 64px; }
  .foot-mega { margin-bottom: 48px; }
}
@media (max-width: 540px) {
  .foot-cols { grid-template-columns: 1fr; }
}

/* =========================================================
   ACCESSIBILITY UTILITIES — appended for AAA tier
   ========================================================= */

/* Skip-to-content link — visually hidden until keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--crimson);
  color: var(--white);
  padding: 12px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--white);
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus, .skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

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

/* Global focus-visible — AAA-grade keyboard outline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   IMAGE RENDERING — improve scaling quality of small source photos
   ========================================================= */

img {
  /* Browser-native high-quality downscaling. Helps especially when source
     image is smaller than display size (mild upscale) */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  /* GPU compositing - lets the browser use bilinear smoothing rather than
     blocky nearest-neighbour when transforms are applied */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* High-DPI displays */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
  img { image-rendering: -webkit-optimize-contrast; }
}
