/* ==========================================================================
   Imaginative Engineering — main stylesheet
   See ../README.md for the design rationale.
   ========================================================================== */

:root {
  --black: #050505;
  --amber: #ff6a1a;
  --grey: #8f8f8f;
  --white: #f2f1ee;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Archivo', Arial, sans-serif;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ---- ambient background glow ---- */
.glow {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.10), transparent 65%);
  pointer-events: none;
}

/* ---- page shell ---- */
.shell {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 56px 36px;
}

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

/* ---- header + nav ---- */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(242, 241, 238, 0.08);
}

header .brand {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  justify-self: start;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-self: center;
}

nav.site-nav span {
  position: relative;
  color: var(--grey);
  cursor: default;
  transition: color 0.2s ease;
}

nav.site-nav span:not(.disabled):hover { color: var(--white); }
nav.site-nav span.active { color: var(--amber); }

/* nav items with no page behind them yet: show a small "x" + "Coming Soon"
   tooltip on hover instead of behaving like a live link */
nav.site-nav span.disabled {
  color: rgba(143, 143, 143, 0.55);
  cursor: default;
}

nav.site-nav span.disabled::before {
  content: '\2715';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.15em;
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

nav.site-nav span.disabled:hover::before { opacity: 0.75; }

nav.site-nav span.disabled::after {
  content: 'Coming Soon';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: #111214;
  border: 1px solid rgba(242, 241, 238, 0.15);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

nav.site-nav span.disabled:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---- main two-column layout ---- */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1px 0.85fr;
  gap: 56px;
  align-items: center;
  min-height: 0;
}

.divider {
  height: 64%;
  width: 1px;
  background: rgba(242, 241, 238, 0.1);
  justify-self: center;
}

/* ---- left column: headline + copy ---- */
.left { opacity: 0; animation: fadeIn 0.7s ease 0.1s forwards; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid rgba(242, 241, 238, 0.15);
  padding: 8px 15px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 2px rgba(255, 106, 26, 0.8);
  animation: pulse 1.6s ease-in-out infinite;
}

h1 {
  font-weight: 900;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.tilt-wrap { perspective: 1200px; }

h1 .l1 {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #9a9a9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .l2 {
  display: block;
  background: linear-gradient(90deg, var(--amber), #ffb27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.summary {
  max-width: 480px;
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: #a9a8a4;
}

.summary strong { color: var(--amber); font-weight: 700; }

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
  max-width: 480px;
}

.capabilities span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid rgba(242, 241, 238, 0.15);
  border-radius: 100px;
  padding: 6px 13px;
}

/* ---- right column: rotating project gallery ---- */
.right { opacity: 0; animation: fadeIn 0.7s ease 0.3s forwards; }

.gallery-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
}

.gallery-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(242, 241, 238, 0.12);
}

.schem-window {
  max-width: 600px;
  border: 1px solid rgba(242, 241, 238, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.schem-frame {
  height: 46vh;
  padding: 8px;
  box-sizing: border-box;
}

.schem-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  transition: opacity 0.4s ease;
}

.schem-caption {
  margin: 0;
  padding: 12px 16px 0;
  border-top: 1px solid rgba(242, 241, 238, 0.08);
  transition: opacity 0.4s ease;
}

.schem-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.schem-meta span { white-space: nowrap; }

.schem-title {
  display: block;
  margin-top: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--amber);
  font-weight: 700;
}

.schem-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0;
  padding: 12px 0 14px;
}

.schem-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(242, 241, 238, 0.18);
  transition: background 0.3s;
}

.schem-dots span.active { background: var(--amber); }

/* ---- footer ---- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.05em;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 241, 238, 0.08);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.2s forwards;
}

/* ---- responsive: collapse to a single scrolling column ---- */
@media (max-width: 900px) {
  body { height: auto; overflow: auto; }
  .shell { height: auto; min-height: 100vh; padding: 24px; }
  header { grid-template-columns: 1fr; row-gap: 14px; text-align: center; }
  header .brand { justify-self: center; }
  nav.site-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  main { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .divider { display: none; }
}
