/* ============================================================
   Ashland Data Pipeline: stealth / under-construction page
   styles.css
   ============================================================ */

:root {
  --bg-deep:        #070a0f;
  --bg-base:        #0b0f17;
  --bg-card:        #131a23;
  --line-soft:      rgba(232, 226, 212, 0.10);
  --line-mid:       rgba(232, 226, 212, 0.22);

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

  --oil:            #d99a5f;
  --oil-bright:     #f4c08a;
  --feedback:       #5eb3a8;

  --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 {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217, 154, 95, 0.07), 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;
  display: flex;
  flex-direction: column;
}

body::before {
  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 {
  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: flex;
  align-items: center;
  justify-content: space-between;
  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);
}

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

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

/* ============================================================
   STAGE
   ============================================================ */

.stage {
  flex: 1;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 40px 40px;
  text-align: center;
}

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

.phase-tag {
  padding: 4px 10px;
  border: 1px solid rgba(217, 154, 95, 0.5);
  border-radius: 3px;
  color: var(--oil-bright);
  letter-spacing: 0.22em;
}

.eyebrow .sep { width: 28px; height: 1px; background: var(--line-mid); }

.display {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.display .line { display: block; }
.display .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--oil-bright);
}

.lede {
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* two marketing sections */
.section { width: 100%; }
.section + .section {
  margin-top: 58px;
  padding-top: 50px;
  border-top: 1px solid var(--line-soft);
}

.tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  color: var(--oil-bright);
  margin: 0 auto 24px;
  max-width: 680px;
}

.display.sub { font-size: clamp(1.9rem, 4vw, 2.9rem); }

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

.schematic {
  margin: 40px auto 36px;
  max-width: 980px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 40%, rgba(217, 154, 95, 0.04), transparent 70%),
    var(--bg-base);
}

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

.lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.lbl.head     { fill: #c8c0ad; letter-spacing: 0.26em; }
.lbl.dim      { fill: var(--text-dim); }
.lbl.muted    { fill: var(--text-muted); letter-spacing: 0.26em; }
.lbl.oil      { fill: var(--oil); letter-spacing: 0.28em; }
.lbl.feedback { fill: var(--feedback); letter-spacing: 0.18em; }

/* flowing data */
.flow {
  animation: flow-fwd 1.6s linear infinite;
}
@keyframes flow-fwd {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -25; }
}

/* drips falling into the trench */
.drip { opacity: 0; }
.drip-1 { animation: drip 2.4s ease-in 0s infinite; }
.drip-2 { animation: drip 2.4s ease-in 1.2s infinite; }
@keyframes drip {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(78px); opacity: 0; }
}

/* warning beacon on the barricade */
.beacon { animation: beacon 1.4s ease-in-out infinite; }
@keyframes beacon {
  0%, 100% { opacity: 1; r: 6; }
  50%      { opacity: 0.3; r: 4.2; }
}

/* crane sway */
.hoist { transform-box: fill-box; transform-origin: 600px 132px; animation: sway 6s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50%      { transform: rotate(1.4deg); }
}

/* ============================================================
   SPEC STRIP
   ============================================================ */

.spec-strip {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  overflow: hidden;
}

.spec-strip li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 16px;
  background: var(--bg-card);
  font-family: "JetBrains Mono", monospace;
}

.spec-strip .k {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.spec-strip .v {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--oil-bright);
  line-height: 1.4;
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 56px;
  background: rgba(7, 10, 15, 0.6);
}

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

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

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.footer-rev { color: var(--text-dim); letter-spacing: 0.22em; }

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

@media (max-width: 720px) {
  .topbar { padding: 18px 24px; }
  .stage { padding: 48px 22px 32px; }
  .site-footer { padding: 22px 24px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-row { justify-content: flex-start; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 420px) {
  .spec-strip { grid-template-columns: 1fr; }
  .eyebrow { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot, .flow, .drip, .beacon, .hoist { animation: none; }
  .drip { opacity: 0; }
}
