/* ============================================================
   Wolf Rock — wolfrock.com.au
   Shared stylesheet. Deep-ocean palette, serif display headlines,
   restrained glass navigation. One committed dark look.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/hanken-grotesk-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif Display";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-serif-display-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #04080f;            /* abyss */
  --bg-raised: #08101c;     /* raised panel base */
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(226, 236, 244, 0.11);
  --line-strong: rgba(226, 236, 244, 0.22);

  --ink: #edf3f8;           /* foam */
  --ink-dim: rgba(237, 243, 248, 0.74);
  --ink-faint: rgba(237, 243, 248, 0.54);

  --glass-nav: rgba(4, 8, 15, 0.6);

  --sea: #9fd0e0;           /* sea-glass accent, used sparingly */
  --sand: #f2e7cf;          /* warm sand — CTA, echoes the sunlight shaft */
  --sand-hover: #f9f1de;

  --gutter: clamp(20px, 5vw, 48px);
  --measure: 66ch;
  --radius: 14px;
  --maxw: 1160px;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::selection { background: rgba(159, 208, 224, 0.28); }

/* ---------- Type scale ---------- */
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.014em;
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.008em;
}
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea);
}
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-dim); max-width: var(--measure); text-wrap: pretty; }
p { max-width: var(--measure); text-wrap: pretty; }
.muted { color: var(--ink-dim); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-block: clamp(84px, 11vw, 148px); }
.section--tight { padding-block: clamp(64px, 8vw, 104px); }
.section + .section { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 20px; }
.divide { border: 0; border-top: 1px solid var(--line); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--sand); color: #100a06;
  font-weight: 600; text-decoration: none; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(226, 236, 244, 0.08);
  padding-top: var(--safe-t);
}
.site-nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.site-nav__logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; line-height: 1;
  font-weight: 600; font-size: 20px; letter-spacing: -0.01em; text-transform: lowercase;
  margin-right: auto;
}
.site-nav__mark { width: 34px; height: 46px; object-fit: contain; }
.site-nav__links { display: flex; align-items: center; gap: 26px; list-style: none; }
.site-nav__links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-dim);
  transition: color 0.18s ease;
}
.site-nav__links a:hover, .site-nav__links a:focus-visible { color: var(--ink); }
.site-nav__links a[aria-current="page"] { color: var(--ink); }
.site-nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--sand); color: #14100a; }
.btn--primary:hover { background: var(--sand-hover); transform: translateY(-1px); }
/* Beat .site-nav__links a color rules for the nav CTA */
.site-nav__links a.btn--primary,
.site-nav__links a.btn--primary:hover,
.site-nav__links a.btn--primary:focus-visible { color: #14100a; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(226, 236, 244, 0.5); }
.btn--nav { padding: 10px 20px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px;
}
.btn:focus-visible { border-radius: 999px; }

/* ---------- Cinematic hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #000; /* never flash white while media loads */
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__poster, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero__video { opacity: 0; transition: opacity 0.9s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 70% at 24% 46%,
      rgba(3, 7, 14, 0.62) 0%,
      rgba(3, 7, 14, 0.36) 38%,
      rgba(3, 7, 14, 0.1) 62%,
      rgba(3, 7, 14, 0) 80%),
    linear-gradient(to bottom,
      rgba(3, 7, 14, 0.5) 0%,
      rgba(3, 7, 14, 0.12) 26%,
      rgba(3, 7, 14, 0) 55%,
      rgba(3, 7, 14, 0.55) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(96px, 14vh, 160px);
}
.hero__eyebrow { margin-bottom: 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero__title {
  max-width: 12ch;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 32px rgba(0, 0, 0, 0.45);
}
.hero__lede {
  margin-top: 26px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(clamp(120px, 16vh, 176px) + var(--safe-t)) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(ellipse 90% 120% at 78% -20%, rgba(30, 58, 92, 0.5) 0%, rgba(30, 58, 92, 0) 60%),
    radial-gradient(ellipse 70% 90% at 10% -10%, rgba(16, 42, 66, 0.55) 0%, rgba(16, 42, 66, 0) 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero__title { max-width: 20ch; }
.page-hero .lede { margin-top: 22px; }
.page-hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 26px; font-size: 13.5px; color: var(--ink-faint); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.card .h3 { margin-bottom: 12px; }
.card p { font-size: 15.5px; color: var(--ink-dim); }
.card ul { margin: 14px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink-dim); display: grid; gap: 6px; }
.card__kicker { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); margin-bottom: 14px; }
.card__link {
  display: inline-block; margin-top: 18px;
  font-size: 14.5px; font-weight: 600; color: var(--sea);
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
a.card { display: block; text-decoration: none; }

/* Stretch a whole card into its link */
.card--linked .card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Split (story) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 { margin-bottom: 8px; }
.split .eyebrow { margin-bottom: 18px; }
.split p + p { margin-top: 16px; }

/* ---------- Proof band ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .proof__stats { grid-template-columns: 1fr; } }
.proof__stat { border-left: 1px solid var(--line-strong); padding-left: 22px; }
.proof__num { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.proof__stat p { margin-top: 8px; font-size: 15px; color: var(--ink-dim); }
.proof__orgs { margin-top: clamp(36px, 5vw, 52px); }
.proof__orgs-label { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); margin-bottom: 16px; }
.proof__orgs-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 34px; font-size: 16.5px; color: var(--ink-dim); font-weight: 500; }

/* ---------- Feature list (why / capabilities) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 15.5px; color: var(--ink-dim); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 12px; max-width: var(--measure); }
.checklist li { padding-left: 30px; position: relative; color: var(--ink-dim); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---------- Answer block (AEO) ---------- */
.answer {
  border-left: 2px solid var(--sea);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.4vw, 40px);
  max-width: 760px;
}
.answer h2, .answer h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; margin-bottom: 12px; letter-spacing: -0.008em; }
.answer p { color: var(--ink-dim); }
.answer p + p { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 2px; position: relative;
  font-weight: 600; font-size: 17px; letter-spacing: -0.006em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--ink-faint); border-bottom: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 2px 24px; color: var(--ink-dim); max-width: 62ch; }
.faq details p + p { margin-top: -12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding-block: clamp(96px, 13vw, 172px);
  background:
    radial-gradient(ellipse 60% 90% at 50% 115%, rgba(31, 60, 94, 0.55) 0%, rgba(31, 60, 94, 0) 65%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-banner .h2 { max-width: 18ch; margin-inline: auto; }
.cta-banner p { margin: 18px auto 0; color: var(--ink-dim); }
.cta-banner .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); font-size: 15px; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-block: clamp(56px, 7vw, 84px);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { width: 40px; margin-bottom: 16px; }
.site-footer__brand p { color: var(--ink-dim); font-size: 14.5px; max-width: 34ch; }
.site-footer__brand .wordmark { font-weight: 600; font-size: 18px; text-transform: lowercase; display: block; margin-bottom: 10px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  padding-bottom: calc(26px + var(--safe-b));
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  color: var(--ink-faint); font-size: 13.5px;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .site-nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line-strong);
  }
  .site-nav__toggle-bars { position: relative; width: 16px; height: 12px; }
  .site-nav__toggle-bars::before, .site-nav__toggle-bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.6px;
    background: var(--ink); transition: transform 0.22s ease, top 0.22s ease;
  }
  .site-nav__toggle-bars::before { top: 1px; }
  .site-nav__toggle-bars::after { top: 9px; }
  .site-nav.is-open .site-nav__toggle-bars::before { top: 5px; transform: rotate(45deg); }
  .site-nav.is-open .site-nav__toggle-bars::after { top: 5px; transform: rotate(-45deg); }

  .site-nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(4, 8, 15, 0.94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.is-open .site-nav__links { display: flex; }
  .site-nav__links a { display: block; padding: 14px 2px; font-size: 16px; }
  .site-nav__links .btn--nav { margin-top: 10px; justify-content: center; display: inline-flex; padding: 13px 20px; }

  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  .hero__poster, .hero__video { object-position: 47% 50%; }
  .hero__scrim {
    background:
      radial-gradient(ellipse 120% 70% at 35% 42%,
        rgba(3, 7, 14, 0.66) 0%,
        rgba(3, 7, 14, 0.38) 42%,
        rgba(3, 7, 14, 0.1) 66%,
        rgba(3, 7, 14, 0) 85%),
      linear-gradient(to bottom,
        rgba(3, 7, 14, 0.55) 0%,
        rgba(3, 7, 14, 0.14) 30%,
        rgba(3, 7, 14, 0) 55%,
        rgba(3, 7, 14, 0.6) 100%);
  }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .hero__inner { padding-top: clamp(130px, 24vh, 190px); }
}

/* Short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__inner { padding-top: 100px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(30px, 5vw, 44px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero__video { display: none; } /* poster/still only */
}
