:root {
  --mh-navy-900: #0d1b24;
  --mh-navy-800: #132633;
  --mh-teal-500: #0ea5a8;
  --mh-teal-300: #23c1c6;
  --mh-copper-500: #c7793a;
  --mh-copper-300: #e8a466;
  --mh-steel-700: #2b3a46;
  --mh-steel-400: #92a3b0;
  --mh-text-strong: #e6f2f4;
  --mh-text-muted: #b7c7cf;
  /* Added refined palette sampled from outer gear edges */
  --mh-gear-edge-dark: #09141c; /* deepest rim */
  --mh-gear-edge-mid: #132b36;  /* mid bluish teal */
  --mh-gear-edge-highlight: #1f3f4d; /* lighter inner bevel */
  --mh-trace-copper: #c0743b;
  --mh-trace-cyan: #11b4b8;
  --mh-bg: var(--mh-navy-900);
  --mh-surface: var(--mh-navy-800);
  --mh-card: #0f2330;
  --mh-border: #1f3643;
  --mh-primary: var(--mh-teal-500);
  --mh-accent: var(--mh-copper-500);
  --mh-shadow: 0 10px 30px rgba(3, 17, 24, 0.6);

  /* Glow controls (tweak if asset bounds aren't perfectly centered) */
  --mh-glow-scale: 1.45;   /* multiplier of logo width */
  --mh-glow-offset-x: 0px; /* positive moves glow right */
  --mh-glow-offset-y: 0px; /* positive moves glow down */
  /* Derived translate values reused in keyframes */
  --mh-glow-tx: calc(-50% + var(--mh-glow-offset-x));
  --mh-glow-ty: calc(-50% + var(--mh-glow-offset-y));
}



* { box-sizing: border-box; }
html, body { height: 100%; }
html { background-color: var(--mh-bg); overscroll-behavior: none; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--mh-text-strong);
  overscroll-behavior: none;
  display: flex;              /* enable flex layout */
  flex-direction: column;     /* vertical stacking */
  min-height: 100dvh;         /* ensure body spans viewport height */
  /* Layered gradients to echo the gear edge & circuitry hues of the logo */
  background: #0c1a23
}

main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

.container { width: min(1100px, 92%); margin-inline: auto; }

/* Minimal top-centered logo */
.logo-banner { position: relative; text-align: center; padding: 46px 0 18px; overflow: visible; isolation: isolate; }

.logo-fade { 
  display: inline-block; 
  position: relative; 
  isolation: isolate; 
  overflow: visible;
}
.logo-fade::before { /* centered glow not clipped by the image mask */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(var(--mh-glow-tx), var(--mh-glow-ty));
  width: calc(100% * var(--mh-glow-scale));
  aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side circle at 50% 50%,
      rgba(14,165,168,0.55),
      rgba(14,165,168,0.36) 22%,
      rgba(35,193,198,0.24) 40%,
      rgba(192,116,59,0.16) 57%,
      rgba(13,27,36,0.55) 76%,
      rgba(13,27,36,0.85) 88%,
      var(--mh-navy-900) 100%);
  filter: blur(18px) saturate(115%);
  z-index: 0; /* sits beneath the logo image */
  pointer-events: none;
  animation: mh-glow 7.5s cubic-bezier(.62,.15,.25,.88) infinite;
}
.logo-center { 
  width: min(500px, 55vw); 
  height: auto; 
  filter: none; /* avoid shadow clipping against the mask */
  position: relative; z-index: 1; display: block;
  /* Eased mask: smooth logistic-style falloff */
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
    #000 0%,
    #000 54%,
    #000 58%,
    rgba(0,0,0,0.96) 62%,
    rgba(0,0,0,0.85) 68%,
    rgba(0,0,0,0.65) 74%,
    rgba(0,0,0,0.40) 80%,
    rgba(0,0,0,0.22) 86%,
    rgba(0,0,0,0.10) 90%,
    rgba(0,0,0,0.04) 93%,
    rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle at 50% 50%,
    #000 0%,
    #000 54%,
    #000 58%,
    rgba(0,0,0,0.96) 62%,
    rgba(0,0,0,0.85) 68%,
    rgba(0,0,0,0.65) 74%,
    rgba(0,0,0,0.40) 80%,
    rgba(0,0,0,0.22) 86%,
    rgba(0,0,0,0.10) 90%,
    rgba(0,0,0,0.04) 93%,
    rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  /* keep logo static; glow animates on wrapper */
  transform-origin: 50% 55%;
}

@keyframes mh-glow {
  0% { transform: translate(var(--mh-glow-tx), var(--mh-glow-ty)) scale(0.985); opacity: 0.85; filter: blur(14px) saturate(115%); }
  25% { transform: translate(var(--mh-glow-tx), var(--mh-glow-ty)) scale(1.000); opacity: 0.95; filter: blur(16px) saturate(125%); }
  55% { transform: translate(var(--mh-glow-tx), var(--mh-glow-ty)) scale(1.015); opacity: 0.88; filter: blur(18px) saturate(120%); }
  75% { transform: translate(var(--mh-glow-tx), var(--mh-glow-ty)) scale(1.005); opacity: 0.92; filter: blur(15px) saturate(118%); }
  100% { transform: translate(var(--mh-glow-tx), var(--mh-glow-ty)) scale(0.985); opacity: 0.85; filter: blur(14px) saturate(115%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-fade::before { animation: none; }
}

/* logo pulse removed; animation now applied to glow only to avoid clipping */

/* Buttons kept for CTAs in hero/contact */
.btn { border: 1px solid var(--mh-border); padding: 10px 18px; border-radius: 32px; font-weight: 600; text-decoration: none; cursor: pointer; letter-spacing: 0.4px; }
.btn.primary { background: linear-gradient(135deg, var(--mh-primary), var(--mh-teal-300)); color: #032227; border-color: transparent; }
.btn.secondary { background: linear-gradient(135deg, var(--mh-accent), var(--mh-copper-300)); color: #2b1608; border-color: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--mh-shadow); }

.hero { position: relative; padding: 16px 0 12px; overflow: hidden; }
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); margin: 0 0 12px; letter-spacing: 0.2px; }
.hero p { margin: 0 auto; max-width: 750px; color: var(--mh-text-muted); font-size: 1.1rem; }
.actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.section { padding: 64px 0; }
.section.muted { background: var(--mh-surface); border-top: 1px solid var(--mh-border); border-bottom: 1px solid var(--mh-border); }
.section-title { font-size: 1.8rem; margin: 0 0 22px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 20px; background: var(--mh-card); border: 1px solid var(--mh-border); border-radius: 16px; box-shadow: var(--mh-shadow); }
.card h3 { margin: 4px 0 8px; }
.card p { margin: 0; color: var(--mh-text-muted); }

.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.about-art { width: 100%; max-width: 420px; justify-self: end; filter: drop-shadow(0 10px 24px rgba(14,165,168,0.25)); }
.bullets { margin: 14px 0 0; padding-left: 18px; color: var(--mh-text-muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.contact-card { padding: 18px; background: var(--mh-card); border: 1px solid var(--mh-border); border-radius: 16px; }

.site-footer { padding: 22px 0; color: var(--mh-text-muted); }
.footer-inner {align-items: center; text-align: center; font-size: 12px; justify-content: space-between; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-art { justify-self: start; order: -1; }
  .contact { grid-template-columns: 1fr; }
}

/* "Coming soon" styling */
.coming-soon {
  --cs-teal: #23c1c6;
  --cs-copper: #c7793a;
  --cs-navy: #0d1b24;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: clamp(1.3rem, 1.9vw + 0.7rem, 2rem);
  margin: 10px 0 0;
  background: linear-gradient(90deg, var(--cs-teal), #7de0e3 28%, var(--cs-copper) 62%, #ffd0a5 78%, var(--cs-teal) 100%);
  background-size: 150% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(35,193,198,0.08), 0 0 3px rgba(199,121,58,0.06);
  position: relative;
  animation: cs-sheen 14s ease-in-out infinite;
}
.coming-soon::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 48%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35,193,198,0.35), rgba(199,121,58,0.35), transparent);
  filter: blur(0.2px);
  border-radius: 2px;
}
@keyframes cs-sheen {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .coming-soon { animation: none; }
}
