/* ================================================================
   OMNIARCH — styles.css
   Reference build for Webflow developer handoff.

   FONT NOTE FOR WEBFLOW DEV:
   Replace the primary font stack below with "Basil Grotesk" once
   the custom font is loaded via Webflow's font uploader or a
   licensed CDN. The fallback stack ('Helvetica Neue', Helvetica,
   Arial, sans-serif) is a geometric sans that reads similarly.
   CURRENT INTERIM FONT: 'DM Sans' (Google Fonts) — closest free
   match to Basil Grotesk. Swap for Basil Grotesk in Webflow.

   The secondary serif font (Times New Roman) is used ONLY in the
   #commandment section and requires no substitution unless the
   brand specifies an alternative.
================================================================ */


/* ================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
================================================================ */
:root {
  /* Colors */
  --color-bg:            #1C1C1C;
  --color-bg-alt:        #202020;
  --color-text-primary:  #F3EFE6;
  --color-text-muted:    rgba(243, 239, 230, 0.65);
  --color-text-body:     rgba(243, 239, 230, 0.85);
  --color-accent:        #B87333;
  --color-accent-deep:   #C6922B;
  --color-rule:          rgba(184, 115, 51, 0.3);

  /* Typography */
  /* REPLACE 'Helvetica Neue' with 'Basil Grotesk' in Webflow */
  --font-primary:        'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif:          'Times New Roman', Times, serif;

  /* Spacing */
  --section-pad:         140px;
  --container-max:       1140px;
  --nav-height:          84px;
}


/* ================================================================
   2. RESET & BASE
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}


/* ================================================================
   3. LAYOUT UTILITIES
================================================================ */

/* Centered content wrapper, max 1140px */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* Reusable section base */
.section {
  position: relative;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}


/* ================================================================
   4. TYPOGRAPHY HELPERS
================================================================ */

/* Section label — copper, 11px, spaced caps */
.label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 400;
  margin-bottom: 24px;
}

/* Section title scale */
.section__title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-primary);
}

/* Body copy cap */
.body-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-body);
  max-width: 68ch;
}


/* ================================================================
   5. SCROLL ANIMATION CLASSES
   JS sets initial states inline; these classes trigger the reveal.
================================================================ */

/* Regular section children: fade + slide up */
.animate-child {
  /* Initial state set by JS: opacity:0; transform:translateY(20px) */
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-child.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Commandment section: fade only, 900ms */
.animate-commandment {
  /* Initial state set by JS: opacity:0 */
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-commandment.visible-commandment {
  opacity: 1 !important;
}

/* Respect reduced motion — disable all transitions */
@media (prefers-reduced-motion: reduce) {
  .animate-child,
  .animate-commandment {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ================================================================
   6. NAVIGATION
================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid rgba(243, 239, 230, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

/* Wordmark */
.nav__wordmark {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  transition: opacity 300ms ease;
}

.nav__wordmark:hover {
  opacity: 0.8;
}

/* Nav link list */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Individual nav links */
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  opacity: 0.7;
  letter-spacing: 0.02em;
  transition: opacity 300ms ease;
}

.nav__link:hover {
  opacity: 1;
}

/* Scrolled state — links drop to 50% opacity */
.nav--scrolled .nav__link {
  opacity: 0.5;
}

.nav--scrolled .nav__link:hover {
  opacity: 0.85;
}


/* ================================================================
   7. SECTION 1 — HERO
================================================================ */
.hero {
  min-height: 100vh;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-height); /* clear fixed nav */
  padding-bottom: 0;             /* rule sits at bottom */
}

.hero__content {
  padding-bottom: 120px;
}

/* Hero label sits above headline — override default margin */
.hero .label {
  margin-bottom: 20px;
}

/* Two-line hero headline */
.hero__headline {
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text-primary);
  max-width: 14ch;
}

/* Hero subheading */
.hero__subhead {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(243, 239, 230, 0.65);
  max-width: 560px;
  margin-top: 32px;
}

/* Hero supporting body */
.hero__body {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(243, 239, 230, 0.85);
  max-width: 600px;
  margin-top: 20px;
}

/* Hero CTA link */
.hero__cta {
  display: inline-block;
  margin-top: 48px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
  transition: text-decoration 200ms ease, opacity 200ms ease;
}

.hero__cta:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Full-width copper rule at base of hero */
.hero__rule {
  width: 100%;
  height: 1px;
  background-color: var(--color-rule);
  flex-shrink: 0;
}


/* ================================================================
   8. SECTION 2 — THE PROBLEM
================================================================ */
.problem {
  background-color: var(--color-bg);
}

.problem__content {
  max-width: calc(var(--container-max)); /* container handles outer; inner prose limited below */
}

/* Constrain prose to 760px */
.problem .label,
.problem__content .section__title,
.problem__body,
.problem__callout,
.problem__closing {
  max-width: 760px;
}

.problem__body {
  margin-top: 32px;
}

.problem__body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-body);
  max-width: 68ch;
}

.problem__body p + p {
  margin-top: 20px;
}

/* Editorial callout block */
.problem__callout {
  border-left: 2px solid var(--color-accent);
  padding-left: 28px;
  margin: 48px 0;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(243, 239, 230, 0.80);
  font-weight: 400;
}

/* Closing emphasis line */
.problem__closing {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-weight: 400;
}


/* ================================================================
   9. SECTION 3 — THE SYSTEM
================================================================ */
.system {
  background-color: var(--color-bg-alt);
}

/* Center all content */
.system__content {
  text-align: center;
}

.system__content .label {
  text-align: center;
}

.system__content .section__title {
  margin-left: auto;
  margin-right: auto;
}

/* Attribution flow diagram */
.system__diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 64px auto 0;
  width: fit-content;
}

.diagram__node {
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Highlight the central "Omniarch" node */
.diagram__node--accent {
  color: var(--color-accent);
}

/* Thin vertical copper connector line */
.diagram__connector {
  width: 1px;
  height: 40px;
  background-color: var(--color-accent);
  opacity: 0.5;
  margin: 12px 0;
}

/* Body copy below diagram */
.system__body {
  max-width: 640px;
  margin: 64px auto 0;
  text-align: center;
}

.system__body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-body);
}

.system__body p + p {
  margin-top: 20px;
}


/* ================================================================
   10. SECTION 4 — CONSEQUENCE
================================================================ */
.consequence {
  background-color: var(--color-bg);
}

/* Two-column grid */
.consequence__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.consequence__left .label {
  margin-bottom: 24px;
}

.consequence__left .section__title {
  max-width: 18ch;
}

/* Sectors list — plain stacked text, no bullets */
.consequence__sectors {
  list-style: none;
  padding: 0;
  margin: 0;
}

.consequence__sectors li {
  font-size: 28px;
  font-weight: 400;
  line-height: 2.2;
  color: var(--color-text-primary);
}

/* Full-width supporting line below grid */
.consequence__support {
  margin-top: 64px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--color-text-body);
  max-width: 68ch;
}


/* ================================================================
   11. SECTION 5 — INFRASTRUCTURE
================================================================ */
.infrastructure {
  background-color: var(--color-bg-alt);
}

/* Left-aligned, max 700px prose */
.infrastructure__content {
  max-width: 700px;
  /* container centers it; this constrains the prose block */
}

/* Override container centering — left-align the prose block */
.infrastructure .container {
  /* intentionally no override — left-aligned by default */
}

.infrastructure__body {
  margin-top: 32px;
}

.infrastructure__body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-body);
}

.infrastructure__body p + p {
  margin-top: 20px;
}

/* Secondary label below body */
.infrastructure__sublabel {
  display: block;
  margin-top: 48px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* ================================================================
   12. SECTION 6 — COMMANDMENT
================================================================ */
.commandment {
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.commandment__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 48px;
  padding-right: 48px;
  max-width: 780px;
  margin: 0 auto;
}

/* The commandment headline — Times New Roman */
.commandment__text {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: 48px;
}

/* Supporting lines below the commandment */
.commandment__support {
  max-width: 560px;
}

.commandment__support p {
  font-family: var(--font-primary);
  font-size: 19px;
  line-height: 1.8;
  color: rgba(243, 239, 230, 0.80);
  font-weight: 400;
}

.commandment__support p + p {
  margin-top: 4px;
}


/* ================================================================
   13. FOOTER
================================================================ */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid rgba(243, 239, 230, 0.08);
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Three-column row */
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Left — wordmark */
.footer__wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  transition: opacity 200ms ease;
}

.footer__wordmark:hover {
  opacity: 0.8;
}

/* Center — nav links */
.footer__center {
  font-size: 13px;
  color: rgba(243, 239, 230, 0.50);
  display: flex;
  align-items: center;
  gap: 0;
}

.footer__link {
  color: rgba(243, 239, 230, 0.50);
  transition: color 200ms ease;
  font-size: 13px;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__sep {
  color: rgba(243, 239, 230, 0.30);
  margin: 0 4px;
}

/* Right — location + copyright */
.footer__right {
  font-size: 13px;
  color: rgba(243, 239, 230, 0.50);
}

/* Sub-line */
.footer__subline {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(243, 239, 230, 0.35);
  font-weight: 400;
}


/* ================================================================
   14. RESPONSIVE — Tablet (max 960px)
================================================================ */
@media (max-width: 960px) {

  :root {
    --section-pad: 100px;
  }

  .nav__inner {
    padding: 22px 32px;
  }

  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Consequence: stack columns */
  .consequence__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .consequence__sectors li {
    font-size: 24px;
  }

  .hero__headline {
    max-width: 100%;
  }
}


/* ================================================================
   15. RESPONSIVE — Mobile (max 640px)
================================================================ */
@media (max-width: 640px) {

  :root {
    --section-pad: 80px;
  }

  /* Nav */
  .nav__inner {
    padding: 20px 24px;
  }

  .nav__links {
    gap: 20px;
  }

  .nav__link {
    font-size: 13px;
  }

  /* Container */
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Hero */
  .hero__content {
    padding-bottom: 80px;
  }

  .hero__subhead {
    font-size: 18px;
  }

  .hero__body {
    font-size: 17px;
  }

  /* Diagram nodes */
  .diagram__node {
    font-size: 22px;
  }

  /* Consequence sectors */
  .consequence__sectors li {
    font-size: 22px;
    line-height: 2;
  }

  /* Footer row — stack on mobile */
  .footer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  /* Commandment inner padding */
  .commandment__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* ================================================================
   16. RESPONSIVE — Small mobile (max 400px)
================================================================ */
@media (max-width: 400px) {

  .nav__links {
    gap: 14px;
  }

  .nav__link {
    font-size: 12px;
  }

  .hero__headline {
    line-height: 1.08;
  }

  .problem__callout {
    padding-left: 18px;
    font-size: 15px;
  }
}

