/* ============================================================
   PHALANX PRIME — Design System
   PhalanxPrime.digital
   © 2026 Phalanx Prime. All rights reserved.
   ============================================================ */

/* --- Fonts -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Tokens ------------------------------------------------- */
:root {
  /* Canvas */
  --bg-base:     #080808;
  --bg-surface:  #0f0f0f;
  --bg-elevated: #161616;
  --bg-card:     #111111;

  /* Gold scale */
  --gold-deep:   #7A5C14;
  --gold:        #C9A84C;
  --gold-light:  #E8C86A;
  --gold-pale:   #F0D98A;

  /* Gold gradients */
  --gold-gradient: linear-gradient(135deg, #7A5C14 0%, #C9A84C 35%, #E8C86A 55%, #C9A84C 75%, #7A5C14 100%);
  --gold-border:   linear-gradient(90deg, transparent, #C9A84C, transparent);

  /* Text */
  --text-primary:   #F2F0EC;
  --text-secondary: #A8A49C;
  --text-muted:     #55534E;
  --text-inverse:   #0A0A0A;

  /* Borders */
  --rule-subtle:  rgba(201,168,76,0.18);
  --rule-visible: rgba(201,168,76,0.45);
  --rule-strong:  rgba(201,168,76,0.75);

  /* Typography */
  --font-display:  'Cinzel', Georgia, serif;
  --font-heading:  'Cinzel', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  /* Scale */
  --step--1:  0.875rem;
  --step-0:   1rem;
  --step-1:   1.125rem;
  --step-2:   1.375rem;
  --step-3:   1.75rem;
  --step-4:   2.25rem;
  --step-5:   3rem;
  --step-6:   4rem;
  --step-7:   5.5rem;
  --step-8:   7.5rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 7rem;
  --space-3xl: 11rem;

  /* Layout */
  --max-w:       1280px;
  --max-w-text:  720px;

  /* Shape */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   180ms;
  --dur-med:    320ms;
  --dur-slow:   560ms;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background-image: url('../assets/brand/phalanx-digital-lion.png');
  background-repeat: no-repeat;
  background-position: center 20vh;
  background-size: min(42vw, 560px) auto;
  opacity: 0.03;
  filter: grayscale(1) sepia(0.35);
}

body > * {
  position: relative;
  z-index: 2;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul { list-style: none; }

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

/* --- Utility ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.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;
}

/* Gold text treatment */
.gold { color: var(--gold); }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Thin gold rule */
.gold-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold-border);
}

.gold-rule-short {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold-gradient);
  margin-block-end: var(--space-md);
}

/* Section label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: var(--space-sm);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-divider {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  opacity: 0.9;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.85), transparent);
}

.section-divider span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.brand-statement {
  padding-block: var(--space-2xl);
}

.brand-statement-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--rule-subtle);
  background:
    radial-gradient(circle at top left, rgba(201,168,76,0.08), transparent 34%),
    linear-gradient(180deg, rgba(12,12,12,0.98), rgba(8,8,8,0.96));
}

.section-title-sm {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* ============================================================
   BRAND ENTRY
   ============================================================ */

.brand-entry {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.brand-entry-mark {
  width: clamp(260px, 34vw, 520px);
  max-height: 66vh;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(201,168,76,0.22));
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-med) var(--ease-out);
  white-space: nowrap;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-overline::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.contact-cta {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--rule-subtle);
  background: linear-gradient(180deg, rgba(15,15,15,0.94), rgba(10,10,10,0.98));
}

.contact-cta .section-body {
  margin-inline: auto;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  border: none;
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.28);
}
.btn-gold:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--rule-visible);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.07);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-sm { padding: 11px 24px; font-size: 0.72rem; }
.btn-lg { padding: 18px 48px; font-size: 0.82rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              opacity var(--dur-med) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule-subtle);
}

.has-brand-entry .site-nav {
  opacity: 0;
  pointer-events: none;
}

.has-brand-entry .site-nav.past-entry {
  opacity: 1;
  pointer-events: auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-block: 20px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.has-brand-entry .site-nav.past-entry .nav-logo img {
  height: clamp(120px, 10vw, 180px);
}

.has-brand-entry .site-nav.past-entry .nav-inner {
  align-items: flex-start;
}

.has-brand-entry .site-nav.past-entry .nav-links,
.has-brand-entry .site-nav.past-entry .nav-cta {
  margin-block-start: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-inline-start: auto;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}
.nav-links a:hover { color: var(--gold-light); }

.nav-cta { margin-inline-start: var(--space-sm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-inline-start: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: all var(--dur-fast);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(8,8,8,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-2xl);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--step-4);
  font-style: italic;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: color var(--dur-fast);
}
.nav-mobile a:hover { color: var(--gold-light); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 42%;
  align-items: center;
  overflow: hidden;
  background: var(--bg-base);
}

/* Atmospheric ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-3xl) clamp(1.25rem, 5vw, 3rem) var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.has-brand-entry .hero-content {
  padding-block-start: clamp(16rem, 22vw, 23rem);
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: var(--space-md);
}
.hero-overline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-block-end: var(--space-lg);
  max-width: 700px;
}

.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 460px;
  margin-block-end: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2.2s var(--ease-out) infinite;
}

@keyframes scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* Hero portrait */
.hero-visual {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gold frame lines on portrait */
.hero-visual::before {
  content: '';
  position: absolute;
  top: var(--space-xl);
  left: -12px;
  bottom: var(--space-xl);
  right: var(--space-md);
  border: 1px solid var(--rule-subtle);
  z-index: 2;
  pointer-events: none;
}

/* Gradient fade to left */
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-base) 0%, rgba(8,8,8,0.2) 30%, transparent 60%);
  z-index: 1;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */

.section {
  padding-block: var(--space-2xl);
  scroll-margin-top: 220px;
}
.section-lg {
  padding-block: var(--space-3xl);
  scroll-margin-top: 220px;
}

.section-header {
  margin-block-end: var(--space-xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--step-5), 5.5vw, var(--step-7));
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.section-title-sm {
  font-family: var(--font-display);
  font-size: clamp(var(--step-4), 3.5vw, var(--step-5));
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.section-body {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
  margin-block-start: var(--space-md);
}

/* ============================================================
   OFFER — PRODUCT REALISATION FLOW
   ============================================================ */

.offer-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--rule-subtle);
}

.offer-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-block-start: var(--space-xl);
  position: relative;
}

/* Connecting gold rule between steps */
.offer-flow::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-visible) 20%, var(--rule-visible) 80%, transparent);
  z-index: 0;
}

.offer-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
  z-index: 1;
}

.offer-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule-visible);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--bg-surface);
  margin-block-end: var(--space-md);
  flex-shrink: 0;
}

.offer-step-label {
  font-family: var(--font-display);
  font-size: var(--step-3);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-block-end: var(--space-xs);
}

.offer-step-desc {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 200px;
}

/* ============================================================
   SERVICES — PILLARS
   ============================================================ */

.services-section { background: var(--bg-base); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-subtle);
  border: 1px solid var(--rule-subtle);
  margin-block-start: var(--space-xl);
}

.service-pillar {
  background: var(--bg-card);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: background var(--dur-med);
}
.service-pillar:hover { background: var(--bg-elevated); }

.pillar-num {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-block-end: var(--space-xs);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.pillar-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold-gradient);
  margin-block: var(--space-xs);
}

.pillar-desc {
  font-size: var(--step--1);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   PROCESS
   ============================================================ */

.process-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--rule-subtle);
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-block-start: var(--space-xl);
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8.3%;
  right: 8.3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-subtle) 15%, var(--rule-visible) 50%, var(--rule-subtle) 85%, transparent);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-sm) var(--space-lg);
  position: relative;
  z-index: 1;
}

.process-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--rule-visible);
  margin-block-end: var(--space-md);
  transition: border-color var(--dur-med), background var(--dur-med);
  flex-shrink: 0;
}
.process-step:hover .process-step-dot {
  border-color: var(--gold-light);
  background: rgba(201,168,76,0.15);
}

.process-step-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-block-end: var(--space-xs);
}

.process-step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   GROWTH CAMPAIGN BAND
   ============================================================ */

.growth-section {
  background: var(--bg-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  overflow: hidden;
}

.growth-content {
  padding: var(--space-3xl) clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.growth-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  line-height: 0.92;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-block: var(--space-md) var(--space-lg);
}

.growth-body {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-block-end: var(--space-xl);
}

.growth-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-block-end: var(--space-xl);
}

.growth-pillar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block-start: var(--space-sm);
  border-block-start: 1px solid var(--rule-subtle);
}
.growth-pillar:hover { border-block-start-color: var(--rule-visible); }

.growth-pillar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.growth-pillar-desc {
  font-size: var(--step--1);
  color: var(--text-muted);
}

.growth-visual {
  position: relative;
  overflow: hidden;
}
.growth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.growth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-base) 0%, transparent 25%);
  z-index: 1;
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */

.ecosystem-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--rule-subtle);
  text-align: center;
}

.ecosystem-intro {
  max-width: var(--max-w-text);
  margin-inline: auto;
  margin-block-end: var(--space-xl);
}

.ecosystem-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-block-end: var(--space-xl);
}

.ecosystem-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
  transition: opacity var(--dur-med);
}
.ecosystem-item:hover { opacity: 1; }

.ecosystem-item-name {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.ecosystem-item-role {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.ecosystem-divider {
  display: block;
  width: 1px;
  height: 32px;
  background: var(--rule-subtle);
  flex-shrink: 0;
}

.ecosystem-statement {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin-inline: auto;
}

/* ============================================================
   AUTHORITY BAND
   ============================================================ */

.authority-section {
  background: var(--bg-base);
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 560px;
  overflow: hidden;
}

.authority-visual {
  position: relative;
  overflow: hidden;
}
.authority-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.authority-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--bg-base) 0%, transparent 40%);
  z-index: 1;
}

.authority-content {
  padding: var(--space-3xl) clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
}

.authority-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.authority-headline em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.authority-statements {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.authority-statement {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block-start: var(--space-md);
  border-block-start: 1px solid var(--rule-subtle);
}

.authority-statement-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--rule-visible);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-start: 2px;
}
.authority-statement-icon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.authority-statement-text {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--rule-subtle);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-info {
  padding-block-start: var(--space-sm);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: var(--space-md);
  border-block-start: 1px solid var(--rule-subtle);
}

.contact-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-detail-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.contact-detail-value a:hover { color: var(--gold-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step--1);
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--dur-fast);
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rule-visible);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { color: var(--text-secondary); }
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-base);
  border-block-start: 1px solid var(--rule-subtle);
  padding-block: var(--space-2xl) var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-block-end: var(--space-xl);
  border-block-end: 1px solid var(--rule-subtle);
  margin-block-end: var(--space-xl);
}

.footer-brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-logo { height: 44px; width: auto; }

.footer-brand-desc {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer-nav-title,
.footer-contact-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: var(--space-sm);
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-nav-links a {
  font-size: var(--step--1);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--dur-fast);
}
.footer-nav-links a:hover { color: var(--gold-light); }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-contact-items span, .footer-contact-items a {
  font-size: var(--step--1);
  color: var(--text-secondary);
}
.footer-contact-items a:hover { color: var(--gold-light); }

/* Ecosystem footer strip */
.footer-ecosystem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-block-end: var(--space-lg);
}

.footer-eco-item {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.footer-eco-item:hover { color: var(--gold); }

.footer-eco-sep {
  display: block;
  width: 1px;
  height: 12px;
  background: var(--text-muted);
  opacity: 0.3;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-md);
}
.footer-legal-links a {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}
.footer-legal-links a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }
  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    opacity: 0.25;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding-block: var(--space-3xl) var(--space-2xl);
    max-width: 680px;
  }
  .hero-headline { font-size: clamp(4rem, 10vw, 7rem); }

  .offer-flow { grid-template-columns: repeat(2, 1fr); }
  .offer-flow::before { display: none; }

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

  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-lg); }
  .process-grid::before { display: none; }

  .growth-section { grid-template-columns: 1fr; }
  .growth-visual {
    height: 400px;
    order: -1;
  }
  .growth-visual::before {
    background: linear-gradient(to top, var(--bg-base) 0%, transparent 40%);
  }

  .authority-section { grid-template-columns: 1fr; }
  .authority-visual {
    height: 380px;
    order: -1;
  }
  .authority-visual::after {
    background: linear-gradient(to top, var(--bg-base) 0%, transparent 50%);
  }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  body::before {
    background-size: 92vw auto;
    background-position: center 20vh;
    opacity: 0.03;
  }

  .brand-entry-mark {
    width: min(62vw, 280px);
  }

  .has-brand-entry .site-nav.past-entry .nav-logo img {
    height: 96px;
  }

  .has-brand-entry .site-nav.past-entry .nav-inner {
    align-items: flex-start;
    padding-block-start: 14px;
  }

  .hero-headline { font-size: clamp(3.5rem, 14vw, 5.5rem); }
  .hero-content { padding-block: calc(var(--space-3xl) + 20px) var(--space-2xl); }
  .has-brand-entry .hero-content { padding-block-start: 13rem; }

  .offer-flow { grid-template-columns: 1fr; }

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

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }

  .growth-pillars { grid-template-columns: 1fr; }
  .growth-visual { height: 300px; }

  .authority-visual { height: 280px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-ecosystem { gap: var(--space-sm); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PHALANX DIGITAL SITE SHELL
   ============================================================ */

.site-nav.past-entry .nav-logo img {
  height: 40px;
}

.nav-links a.active,
.nav-mobile a.active {
  color: var(--gold-light);
}

.pd-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 1fr);
  background:
    linear-gradient(90deg, rgba(4, 6, 10, 0.94) 0%, rgba(4, 6, 10, 0.84) 45%, rgba(4, 6, 10, 0.18) 100%),
    #070707;
}

.pd-hero__copy {
  padding: 8rem clamp(1.5rem, 5vw, 4rem) 3rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pd-hero__brandmark {
  width: min(360px, 62vw);
  margin-bottom: 2rem;
}

.pd-hero h1,
.page-hero h1,
.pd-capabilities__intro h2,
.pd-about-split__copy h2,
.pd-cta-banner__copy h2,
.pd-insights__intro h2,
.page-intro h2,
.case-study__copy h2,
.about-band__copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.pd-hero h1 span {
  color: var(--gold);
}

.pd-hero p,
.page-hero p,
.pd-capabilities__intro p,
.pd-about-split__copy p,
.pd-cta-banner__copy p,
.pd-insights__intro p,
.page-intro p,
.case-study__copy p,
.about-band__copy p {
  color: var(--text-secondary);
  max-width: 34rem;
  margin-top: 1.25rem;
}

.pd-hero__actions {
  margin-top: 2rem;
}

.pd-hero__pillars {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-subtle);
}

.pd-hero__pillars article {
  padding-right: 1rem;
  border-right: 1px solid var(--rule-subtle);
}

.pd-hero__pillars article:last-child {
  border-right: none;
}

.pd-hero__pillars h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-primary);
}

.pd-hero__pillars p {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pd-hero__visual {
  min-height: 100%;
}

.pd-hero__visual img,
.pd-about-split__visual img,
.pd-cta-banner__visual img,
.case-study__visual img,
.about-band__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-strip,
.pd-stats,
.pd-cta-banner {
  background: #f4efe5;
  color: #181512;
}

.trust-strip {
  padding: 2rem 0 2.4rem;
}

.trust-strip .section-eyebrow,
.pd-capabilities .section-eyebrow,
.pd-about-split .section-eyebrow,
.pd-insights .section-eyebrow,
.page-intro .section-eyebrow,
.about-band .section-eyebrow {
  margin-bottom: 1rem;
}

.trust-strip__logos {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  color: #2b2722;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.pd-capabilities,
.pd-about-split,
.pd-insights,
.page-grid,
.about-band,
.case-study {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 1.28fr);
}

.pd-capabilities__intro,
.pd-insights__intro,
.page-intro,
.pd-about-split__copy,
.pd-cta-banner__copy,
.about-band__copy,
.case-study__copy {
  padding: clamp(2rem, 5vw, 4rem);
}

.pd-capabilities__grid,
.pd-insights__grid,
.page-grid__cards {
  padding: clamp(2rem, 5vw, 4rem);
}

.pd-capabilities {
  background: #090909;
}

.pd-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pd-card,
.page-card {
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.98), rgba(14, 14, 14, 0.98));
  border: 1px solid rgba(232, 200, 106, 0.18);
  padding: 1.5rem;
  min-height: 12rem;
}

.pd-card h3,
.page-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.12;
}

.pd-card p,
.page-card p {
  color: var(--text-secondary);
  margin-top: 0.85rem;
}

.text-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.text-link::after {
  content: '->';
}

.pd-stats {
  padding: 1.4rem 1.5rem;
}

.pd-stats__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pd-stats article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-right: 1px solid rgba(122, 92, 20, 0.18);
}

.pd-stats article:last-child {
  border-right: none;
}

.pd-stats strong {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  color: #9a6f15;
}

.pd-stats span {
  color: #3e352a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.pd-about-split {
  background: #0a0a0a;
}

.pd-cta-banner {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
}

.pd-cta-banner__visual {
  min-height: 100%;
  background: #e8decd;
}

.pd-insights {
  background: #f4efe5;
  color: #181512;
}

.pd-insights__intro h2,
.page-intro h2 {
  color: #1b1612;
}

.pd-insights__intro p,
.page-intro p {
  color: #50473c;
}

.pd-insights__grid,
.page-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.insight-card {
  background: #111;
  color: var(--text-primary);
  overflow: hidden;
}

.insight-card img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
}

.insight-card__body {
  padding: 1rem;
}

.insight-card__body span {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.insight-card__body h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.12;
}

.insight-card__body p {
  margin-top: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.page-hero {
  padding: 10rem clamp(1.5rem, 5vw, 4rem) 4rem;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0.92), rgba(8, 8, 8, 0.94)),
    #080808;
}

.page-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(280px, 1.25fr);
  gap: 2rem;
  align-items: end;
}

.page-grid {
  background: #0a0a0a;
}

.page-grid--light {
  background: #f4efe5;
  color: #181512;
}

.page-grid--light .page-card {
  background: #ffffff;
  color: #181512;
  border: 1px solid rgba(122, 92, 20, 0.18);
}

.page-grid--light .page-card p {
  color: #5d5145;
}

.about-band,
.case-study {
  background: #111;
}

.case-study__visual,
.about-band__visual {
  min-height: 100%;
}

.site-footer {
  background: #090909;
}

@media (max-width: 1024px) {
  .pd-hero,
  .pd-capabilities,
  .pd-about-split,
  .pd-insights,
  .page-grid,
  .about-band,
  .case-study,
  .pd-cta-banner,
  .page-hero__inner {
    grid-template-columns: 1fr;
  }

  .pd-hero__pillars,
  .trust-strip__logos,
  .pd-capabilities__grid,
  .pd-stats__inner,
  .pd-insights__grid,
  .page-grid__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pd-hero {
    min-height: auto;
  }

  .pd-hero__copy {
    padding-top: 8rem;
  }

  .pd-hero__pillars,
  .trust-strip__logos,
  .pd-capabilities__grid,
  .pd-stats__inner,
  .pd-insights__grid,
  .page-grid__cards {
    grid-template-columns: 1fr;
  }

  .pd-hero__pillars article {
    border-right: none;
    border-bottom: 1px solid var(--rule-subtle);
    padding-bottom: 1rem;
  }

  .pd-stats article {
    border-right: none;
    border-bottom: 1px solid rgba(122, 92, 20, 0.18);
  }
}

/* ============================================================
   Footer — expanded 6-column layout (2026-08-12)
   ============================================================ */

.footer-inner {
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: var(--space-lg);
}

.footer-tagline {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.footer-pillars {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-pillars span {
  color: var(--rule-subtle);
  margin-inline: 0.35em;
}

.footer-brand-mail {
  font-size: var(--step--1);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}
.footer-brand-mail:hover { color: var(--gold-light); }

.footer-au {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.footer-au span { color: var(--rule-subtle); margin-inline: 0.4em; }

/* Tablet: brand across the top, links in three columns beneath */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-desc { max-width: none; }
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-au { text-align: start; }
}

@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Footer logo fix (2026-08-12)
   .footer-brand is a column flexbox; the default align-items:stretch
   was forcing the <img> to fill the column width while height stayed
   pinned at 44px, squashing a 1024x1024 square lockup into a 5.4:1
   strip. Pin the logo to its own intrinsic box instead.
   ------------------------------------------------------------ */
.footer-logo {
  align-self: flex-start;
  width: clamp(104px, 9vw, 132px);
  height: auto;
  object-fit: contain;
}

/* Lion watermark behind the footer */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/brand/phalanx-digital-lion.png");
  background-repeat: no-repeat;
  background-position: center 44%;
  background-size: auto 86%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.site-footer > .container { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .site-footer::before { background-size: auto 46%; opacity: 0.04; }
}
