/* ============================================
   Mahalo IT Solutions — design tokens
   ============================================ */
:root{
  --bg:            #0B0D10;
  --bg-elevated:   #14171B;
  --bg-elevated-2: #191D22;
  --line:          rgba(255,255,255,0.08);
  --line-strong:   rgba(255,255,255,0.14);

  --steel:         #9CA5AE;
  --steel-bright:  #EDEFF2;
  --steel-dim:     #6B7480;

  --blue:          #2C7BE5;
  --blue-deep:     #123A6B;
  --blue-glow:     #6FB4FF;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 14px;
  --wrap: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before{
  content: "";
  position: fixed;
  inset: -20% auto auto -10%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(44,123,229,0.16), transparent 70%);
  filter: blur(55px);
  z-index: -1;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

body::after{
  content: "";
  position: fixed;
  inset: auto -8% -12% auto;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 72%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--steel-bright);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3{ font-size: 1.15rem; margin-bottom: 0.4em; }

p{ margin: 0 0 1em; }

a{ color: inherit; text-decoration: none; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin: 0 0 0.9em;
}

.section-sub{
  max-width: 60ch;
  color: var(--steel);
}

/* subtle grain overlay for texture, echoing brushed-metal logo */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   Buttons
   ============================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary{
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(111,180,255,0.25), 0 8px 24px -8px rgba(44,123,229,0.55);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(111,180,255,0.4), 0 12px 30px -8px rgba(44,123,229,0.7); }
.btn-ghost{
  background: transparent;
  color: var(--steel-bright);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover{ border-color: var(--blue-glow); color: var(--blue-glow); transform: translateY(-2px); }

/* ============================================
   Header
   ============================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,13,16,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.scroll-progress{
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-glow), var(--blue));
  box-shadow: 0 0 18px rgba(111,180,255,0.35);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand{ display: inline-flex; align-items: center; min-width: 0; }
.brand-mark{ height: 44px; width: auto; display: block; }
.nav{ display: flex; align-items: center; gap: 32px; }
.nav a{
  font-size: 0.92rem;
  color: var(--steel);
  font-weight: 500;
}
.nav a:hover{ color: var(--steel-bright); }
.nav a.active{ color: var(--steel-bright); }
.nav-cta{
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--steel-bright) !important;
}
.nav-cta:hover{ border-color: var(--blue-glow); color: var(--blue-glow) !important; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--steel-bright); border-radius: 2px;
}
.nav-mobile{
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
}
.nav-mobile a{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
}
.nav-mobile.open{ display: flex; }

@media (max-width: 860px){
  .nav{ display: none; }
  .nav-toggle{ display: flex; }
}

/* ============================================
   Hero
   ============================================ */
.hero{
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-sub{ font-size: 1.08rem; max-width: 52ch; }
.hero-highlights{ display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; }
.hero-highlights span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111,180,255,0.2);
  background: rgba(255,255,255,0.03);
  color: var(--steel-bright);
  font-size: 0.92rem;
}
.hero-highlights span::before{
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-glow), var(--blue));
  box-shadow: 0 0 0 4px rgba(111,180,255,0.12);
}
.hero-actions{ display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero-metrics{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.metric-card{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-value{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: var(--steel-bright);
  font-weight: 700;
}
.metric-label{ font-size: 0.88rem; color: var(--steel); }

.hero-visual{ display: flex; justify-content: center; align-items: center; transition: transform 0.2s ease-out; padding: 32px; border-radius: 32px; background: var(--bg); border: 1px solid rgba(255,255,255,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 80px rgba(44,123,229,0.14); position: relative; }
.hero-mark{ width: 100%; max-width: 420px; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45)); }
.hero-mark-static{ display: none; }

@media (prefers-reduced-motion: reduce){
  .hero-mark-animated{ display: none; }
  .hero-mark-static{ display: block; }
}

@keyframes drift{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(6%, 8%, 0) scale(1.08); }
}

@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; text-align: left; }
  .hero-visual{ order: -1; max-width: 320px; margin: 0 auto; }
  .hero-metrics{ grid-template-columns: 1fr; }
}

/* ============================================
   Status strip (signature element)
   ============================================ */
.status-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 16px 0;
}
.status-inner{
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--steel);
}
.status-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ED598;
  box-shadow: 0 0 0 4px rgba(62,213,152,0.15);
  flex: 0 0 auto;
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse{
  0%, 100%{ box-shadow: 0 0 0 4px rgba(62,213,152,0.15); }
  50%{ box-shadow: 0 0 0 7px rgba(62,213,152,0.06); }
}
.status-label{ color: var(--steel-dim); }
.status-item{ position: relative; padding-left: 28px; }
.status-item::before{
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 1px;
  background: var(--line-strong);
  transform: translateY(-50%);
}
.status-num{ color: var(--blue-glow); font-weight: 500; }

/* ============================================
   Section rhythm
   ============================================ */
.services, .experience, .process, .contact{ padding: 96px 0; }
.experience{ background: var(--bg-elevated); }
.section-head{ max-width: 62ch; margin-bottom: 52px; }

/* Services grid */
.service-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card{
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover{ border-color: rgba(111,180,255,0.4); transform: translateY(-4px); }
.service-index{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--blue-glow);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.service-card p{ font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 980px){ .service-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .service-grid{ grid-template-columns: 1fr; } }

/* Timeline */
.timeline{
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.timeline::before{
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line-strong);
}
.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0 24px;
  padding-bottom: 40px;
}
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-marker{
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--blue-glow);
  margin-top: 4px;
}
.timeline-date{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-glow);
  display: block;
  margin-bottom: 6px;
}
.timeline-body p{ max-width: 62ch; margin-bottom: 0; font-size: 0.96rem; }

/* Process */
.process-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.process-num{
  font-family: var(--font-mono);
  color: var(--blue-glow);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 14px;
}
.process-card p{ font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 860px){ .process-grid{ grid-template-columns: 1fr; } }

/* CTA band */
.cta-band{
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 160% at 20% 0%, rgba(44,123,229,0.14), transparent 60%);
}
.cta-band-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band-inner h2{ margin: 0; max-width: 40ch; }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.contact-card{
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.contact-row:last-child{ border-bottom: none; }
a.contact-row:hover{ background: rgba(255,255,255,0.03); }
.contact-label{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-value{ color: var(--steel-bright); font-weight: 500; }

@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ============================================
   Footer
   ============================================ */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--steel-dim);
  font-size: 0.85rem;
}
.footer-mark{ height: 24px; width: auto; opacity: 0.85; }
.footer-inner p{ margin: 0; }

/* ============================================
   Reveal-on-scroll
   ============================================ */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
