/* ================================================================
   TROY FAZAKERLEY — SHARED STYLESHEET
   The tradie who turned instinct into a science.
   ================================================================ */

:root {
  --bg: #0A0A0A;
  --surface: #0F0F0F;
  --surface-2: #141414;
  --rule: #1F1F1F;
  --rule-2: #2A2A2A;
  --text: #F2EFE9;
  --text-2: #B8B3A8;
  --text-3: #6E6A62;
  --accent: #00C9B1;
  --accent-dim: #007A6B;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 201, 177, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(0, 201, 177, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

a { color: inherit; }

/* ================ NAV ================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 70%, transparent 100%);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* ================ PAGE HEADER ================ */
.page-header {
  min-height: 80vh;
  padding: 160px 48px 80px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  position: relative;
}

.left-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 120px;
  height: max-content;
}

.rail-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 24px;
}

.rail-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-top: 16px;
}

.header-content {
  max-width: 1100px;
}

.metadata {
  display: flex;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-2);
  flex-wrap: wrap;
}

.metadata span::before {
  content: '+ ';
  color: var(--accent);
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.page-lede {
  font-family: var(--body);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  max-width: 800px;
  color: var(--text);
  margin-bottom: 56px;
}

/* ================ BUTTONS ================ */
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--text);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule-2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ================ CROSSHAIRS ================ */
.crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.crosshair::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.crosshair::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.crosshair.tl { top: 80px; left: 32px; }
.crosshair.tr { top: 80px; right: 32px; }
.crosshair.bl { bottom: 32px; left: 32px; }
.crosshair.br { bottom: 32px; right: 32px; }

/* ================ SECTION ================ */
section {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  position: relative;
  border-top: 1px solid var(--rule);
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.section-content {
  max-width: 1100px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-2);
  max-width: 200px;
}

.section-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 64px;
  max-width: 900px;
}

.section-heading em {
  font-family: var(--body);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  color: var(--accent);
  letter-spacing: -0.005em;
}

.section-intro {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 64px;
}

/* ================ PROSE ================ */
.prose p {
  margin-bottom: 24px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
}

.prose strong {
  color: var(--accent);
  font-weight: 500;
}

.prose em {
  font-style: italic;
}

/* ================ PROOF / METRIC GRID ================ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
}

.proof-item {
  background: var(--surface);
  padding: 40px 32px;
  text-align: left;
}

.proof-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.proof-value {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.proof-meta {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
  font-style: italic;
}

/* ================ CTA BLOCK ================ */
.cta-block {
  margin-top: 80px;
  padding: 80px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.cta-heading {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.cta-heading em {
  font-family: var(--body);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  color: var(--accent);
}

.cta-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

/* ================ FOOTER ================ */
footer {
  padding: 60px 48px 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 32px;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-affiliate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.affiliate-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.affiliate-logo {
  display: inline-block;
  transition: opacity 0.3s, transform 0.3s;
  text-decoration: none;
}

.affiliate-logo:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.affiliate-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.8;
}

.footer-meta a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* ================ RESPONSIVE ================ */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  nav ul {
    gap: 16px;
    font-size: 10px;
  }

  nav ul li a {
    font-size: 10px;
  }

  .page-header,
  section,
  footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 100px 24px 60px;
  }

  section {
    padding: 80px 24px;
  }

  .left-rail {
    flex-direction: row;
    position: static;
    width: 100%;
  }

  .rail-label {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-brand,
  .footer-meta {
    text-align: center;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: 48px 32px;
  }

  .crosshair {
    display: none;
  }

  .metadata {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ================ STAGGER REVEAL ================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-1 { animation: fadeUp 0.8s 0.1s both; }
.reveal-2 { animation: fadeUp 0.85s 0.25s both; }
.reveal-3 { animation: fadeUp 0.9s 0.4s both; }
.reveal-4 { animation: fadeUp 0.9s 0.55s both; }
.reveal-5 { animation: fadeUp 0.9s 0.7s both; }
