/* ============================================================
   Ashland Intelligence Data Pipeline
   styles.css
   ============================================================ */

:root {
  --bg-deep:        #070a0f;
  --bg-base:        #0b0f17;
  --bg-raised:      #11171f;
  --bg-card:        #131a23;
  --grid-soft:      rgba(255, 255, 255, 0.025);
  --grid-major:     rgba(255, 255, 255, 0.05);
  --line-soft:      rgba(232, 226, 212, 0.10);
  --line-mid:       rgba(232, 226, 212, 0.22);
  --line-strong:    rgba(232, 226, 212, 0.45);

  --text-primary:   #e8e2d4;
  --text-secondary: #b6b2a6;
  --text-muted:     #7d8493;
  --text-dim:       #4d5363;

  --oil-deep:       #b86f30;
  --oil:            #d99a5f;
  --oil-bright:     #f4c08a;
  --oil-pale:       #f6d4ad;

  --feedback:       #5eb3a8;
  --feedback-deep:  #2f7a73;

  --phase-1:        #f4c08a;
  --phase-2:        #6f9ad1;

  --rule:           1.6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: "Spectral", Georgia, serif;
  font-weight: 300;
  font-size: 17px;
  line-height: var(--rule);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* layered atmosphere: deep base + faint grid + radial vignette */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217, 154, 95, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(94, 179, 168, 0.04), transparent 70%),
    linear-gradient(180deg, #060910 0%, #0b0f17 100%);
  min-height: 100vh;
}

body::before {
  /* subtle blueprint grid overlay */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(150, 170, 200, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 170, 200, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 0;
}

body::after {
  /* faint film grain via SVG noise */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay;
}

main, header, footer { position: relative; z-index: 2; }

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(11, 15, 23, 0.95), rgba(11, 15, 23, 0.6));
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "JetBrains Mono", monospace;
}

.brand-mark {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-mark .dot { color: var(--oil); }

.brand-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 36px;
  justify-content: center;
}

.topnav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.topnav a:hover {
  color: var(--oil-bright);
  border-bottom-color: var(--oil);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oil);
  box-shadow: 0 0 12px var(--oil-bright);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  padding: 80px 56px 120px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.hero-text { max-width: 540px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 32px;
}

.phase-tag {
  background: var(--oil);
  color: var(--bg-base);
  padding: 4px 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.eyebrow .sep {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--line-mid);
}

.display {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.94;
  letter-spacing: -0.022em;
  margin: 0 0 36px;
  color: var(--text-primary);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.display .line { display: block; }
.display .line.italic {
  font-style: italic;
  color: var(--oil-bright);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.display .line.line-sub {
  font-size: 0.42em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  margin-top: 22px;
  font-weight: 500;
}

.lede {
  font-family: "Spectral", serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 22px;
  font-weight: 400;
}

.sublede {
  font-family: "Spectral", serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 40px;
}

.cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cta-primary, .cta-secondary {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid;
  transition: all 200ms ease;
}

.cta-primary {
  background: var(--oil);
  color: var(--bg-base);
  border-color: var(--oil);
}

.cta-primary:hover {
  background: var(--oil-bright);
  border-color: var(--oil-bright);
}

.cta-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line-mid);
}

.cta-secondary:hover {
  border-color: var(--text-primary);
}

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

.hero-schematic {
  margin: 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(11, 15, 23, 0.7), rgba(7, 10, 16, 0.9));
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.4),
    0 30px 80px rgba(0, 0, 0, 0.5);
}

.pipeline-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Animations on the pipeline */
.flow-forward {
  animation: flow-fwd 1.8s linear infinite;
}

@keyframes flow-fwd {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -40; }
}

.flow-reverse {
  animation: flow-rev 2.6s linear infinite;
}

@keyframes flow-rev {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 34; }
}

.flow-up {
  animation: flow-vert-up 1.8s linear infinite;
}

@keyframes flow-vert-up {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 40; }
}

.flow-down {
  animation: flow-vert-down 1.8s linear infinite;
}

@keyframes flow-vert-down {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -40; }
}

.pillar-pulse {
  animation: pillar-glow 3.4s ease-in-out infinite;
  transform-origin: center;
}

.pillar-pulse-delay {
  animation-delay: 1.4s;
}

@keyframes pillar-glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.phase1-pulse {
  animation: phase1-pulse 3.6s ease-in-out infinite;
  transform-origin: 207.9px 535.4px;
}

@keyframes phase1-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-head {
  max-width: 880px;
  margin: 0 0 64px;
}

.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.section-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text-primary);
}

.section-lede {
  font-family: "Spectral", serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  max-width: 680px;
}

/* ============================================================
   CONCEPT
   ============================================================ */

.concept {
  padding: 120px 56px;
  border-bottom: 1px solid var(--line-soft);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.concept-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.concept-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--oil);
}

.concept-card.inbound::before { background: var(--feedback); }

.concept-card::after {
  /* corner cut marks */
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line-mid);
  border-right: 1px solid var(--line-mid);
}

.concept-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.card-tag {
  color: var(--oil);
  padding: 3px 8px;
  border: 1px solid var(--oil);
}

.concept-card.inbound .card-tag {
  color: var(--feedback);
  border-color: var(--feedback);
}

.card-direction { color: var(--text-muted); }

.concept-card h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.concept-card p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 15px;
  color: var(--text-primary);
}

.card-list li {
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 14px;
  height: 1px;
  background: var(--oil);
}

.inbound .card-list li::before { background: var(--feedback); }

.card-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.card-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}

.feat-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--oil);
  color: var(--oil-bright);
  background: rgba(217, 154, 95, 0.08);
}

/* ============================================================
   PILLARS
   ============================================================ */

.pillars {
  padding: 120px 56px;
  border-bottom: 1px solid var(--line-soft);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.pillar-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(19, 26, 35, 0.9), rgba(11, 15, 23, 0.95));
  border: 1px solid var(--line-soft);
  position: relative;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 60px;
  background: var(--oil);
}

.pillar-sou-card::before  { background: var(--text-primary); }
.pillar-city-card::before { background: var(--feedback); }
.pillar-wr-card::before   { background: var(--oil); }

.pillar-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.pillar-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.pillar-name {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: 36px;
  line-height: 1.02;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.pillar-sou-card  .pillar-name { color: var(--text-primary); }
.pillar-city-card .pillar-name { color: var(--feedback); }
.pillar-wr-card   .pillar-name { color: var(--oil-bright); }

.pillar-role {
  font-family: "Spectral", serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 22px;
}

.pillar-body p {
  font-family: "Spectral", serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0 0 28px;
}

.pillar-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.pillar-meta > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.pillar-meta dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 3px;
}

.pillar-meta dd {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================================================
   ROLLOUT
   ============================================================ */

.rollout {
  padding: 120px 56px;
  border-bottom: 1px solid var(--line-soft);
}

.rollout-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: start;
}

.oregon-map {
  margin: 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(11, 15, 23, 0.7), rgba(7, 10, 16, 0.9));
  border: 1px solid var(--line-soft);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.oregon-svg {
  width: 100%;
  height: auto;
  display: block;
}

.phases {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.phase {
  padding: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  position: relative;
}

.phase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 2px;
}

.phase-1::before { background: var(--phase-1); }
.phase-2::before { background: var(--phase-2); }

.phase header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 22px;
}

.phase-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 72px;
  line-height: 1;
  color: var(--phase-1);
  opacity: 0.7;
}

.phase-2 .phase-num { color: var(--phase-2); }

.phase-when {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.phase h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: 26px;
  line-height: 1.1;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.phase p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.phase p strong {
  color: var(--oil-bright);
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 14.5px;
  color: var(--text-primary);
}

.phase-list li {
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}

.phase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 1px;
  background: var(--phase-1);
}

.phase-2 .phase-list li::before { background: var(--phase-2); }

.phase-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

/* ============================================================
   CLOSING
   ============================================================ */

.closing {
  padding: 140px 56px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-soft);
}

.closing-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.closing-text {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 0;
}

.closing-text em {
  font-style: italic;
  color: var(--oil-bright);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

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

.site-footer {
  padding: 40px 56px 56px;
  border-top: 1px solid var(--line-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer-rev { color: var(--text-dim); }

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

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 36px 80px;
  }
  .hero-text { max-width: none; }
  .concept, .pillars, .rollout, .closing { padding-left: 36px; padding-right: 36px; }
  .topbar { padding: 18px 36px; }
  .site-footer { padding: 32px 36px 40px; }
  .rollout-layout { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 880px) {
  body { font-size: 16px; }
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .topnav { gap: 22px; }
  .status-strip { justify-content: center; }
  .concept-grid, .pillars-grid { grid-template-columns: 1fr; gap: 24px; }
  .pillar-card { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .pillar-illustration { max-width: 180px; }
  .hero, .concept, .pillars, .rollout, .closing { padding-left: 22px; padding-right: 22px; }
  .topbar, .site-footer { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 560px) {
  .display { font-size: 52px; }
  .lede { font-size: 19px; }
  .phase-num { font-size: 52px; }
  .pillar-name { font-size: 36px; }
  .cta-row { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
