/* TIAG SCOVIK — Engineering Intelligence
   Static front page (Option 2B). No build step required. */

:root {
  --bg: #0b0e11;
  --line: rgba(220, 230, 240, 0.06);
  --silver: #c9d2da;
  --muted: #8d96a0;
  --faint: #6c7680;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--silver);
  font-family: 'Jost', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  min-height: 100vh;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.brand-mark { display: block; width: 48px; height: 48px; }

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--silver);
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.menu > a {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu > a:first-of-type { color: #aeb7c0; }
.menu > a:hover { color: #ffffff; }

/* ---------- Buttons + maintenance tooltip ---------- */
.cta-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.cta-center { align-items: center; }

.btn {
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(200, 214, 228, 0.28);
  color: #d3dae0;
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.btn:hover {
  border-color: rgba(200, 214, 228, 0.6);
  background: rgba(200, 214, 228, 0.05);
}

.btn-pill {
  font-size: 12px;
  letter-spacing: 0.22em;
  padding: 11px 24px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.28em;
  padding: 16px 38px;
}

.arrow { font-size: 16px; line-height: 1; }

.tip {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9d4e0;
  background: rgba(12, 16, 20, 0.95);
  border: 1px solid rgba(200, 214, 228, 0.16);
  padding: 9px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.tip-below { top: calc(100% + 12px); right: 0; }
.tip-above { bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); }

.cta-wrap:hover .tip { opacity: 1; }

/* ---------- Hero ---------- */
.hero-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) 20px 40px;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0;
}

.hero img { display: block; width: 100%; height: auto; }

/* Traveling light "signals" along the circuit (screen-blended so they only brighten) */
.spark {
  position: absolute;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(205,230,255,0.7) 78%, rgba(255,255,255,0.98) 100%);
  box-shadow: 0 0 9px 1px rgba(200,225,255,0.6);
  mix-blend-mode: screen;
  filter: blur(0.4px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* leftward-travelling streaks trail the other way */
.s2, .s4 { background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(205,230,255,0.7) 78%, rgba(255,255,255,0.98) 100%); }

@keyframes flowR {
  0%   { left: 4%;  opacity: 0; }
  16%  { opacity: 0.8; }
  74%  { opacity: 0.7; }
  92%  { opacity: 0; }
  100% { left: 44%; opacity: 0; }
}

@keyframes flowL {
  0%   { left: 92%; opacity: 0; }
  16%  { opacity: 0.8; }
  74%  { opacity: 0.7; }
  92%  { opacity: 0; }
  100% { left: 52%; opacity: 0; }
}

.s1 { top: 34%; animation: flowR 5.5s ease-in-out 0s   infinite; }
.s2 { top: 58%; animation: flowL 6.5s ease-in-out 1.8s infinite; }
.s3 { top: 63%; animation: flowR 6s ease-in-out 3.6s   infinite; }
.s4 { top: 39%; animation: flowL 7s ease-in-out 5s     infinite; }

@media (prefers-reduced-motion: reduce) {
  .spark { display: none; }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.hero::before {
  top: 0;
  height: 14%;
  background: linear-gradient(var(--bg), transparent);
}

.hero::after {
  bottom: 0;
  height: 12%;
  background: linear-gradient(transparent, var(--bg));
}

/* Mobile-only art-directed hero (hidden on desktop) */
.hero-mobile { display: none; }

.hero-mobile-mark { display: block; width: clamp(150px, 44vw, 190px); height: auto; }

.hero-mobile-name {
  margin: 12px 0 0;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(30px, 9vw, 44px);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1.05;
  background: linear-gradient(180deg, #eef2f6, #aab4bd 60%, #7f8993);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-mobile-desc {
  margin: 14px 0 0;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  text-transform: uppercase;
  color: #8f9aa4;
}

.divider {
  width: 96px;
  height: 1px;
  background: rgba(200, 214, 228, 0.32);
  margin: 8px 0 0;
}

.statement {
  margin: 34px 0 42px;
  max-width: 600px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.5;
  color: #c4ccd3;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.foot-copy { font-size: 11px; letter-spacing: 0.24em; color: #5a636d; }
.foot-motto { font-size: 11px; letter-spacing: 0.28em; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .menu > a { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 12px; letter-spacing: 0.24em; }
  .btn-pill { padding: 10px 18px; letter-spacing: 0.18em; }

  .hero { display: none; }
  .hero-mobile { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-block { padding-top: clamp(40px, 13vw, 72px); }
  .divider { margin-top: 32px; }
  .statement { margin: 30px 0 38px; }

  .foot { flex-direction: column; text-align: center; gap: 10px; }
  .tip-below { right: auto; left: 50%; transform: translateX(-50%); }
}
