/* ---------- Blackscale Minimal Glass Theme ---------- */
:root{
  --bg: #f8fafc;
  --fg: #1e293b;
  --muted: #64748b;
  --muted-opacity: 0.8;
  --accent: #0f172a;
  --ring: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --maxw: 1100px;

  /* Minimal glass effects */
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-weak: rgba(255, 255, 255, 0.4);
  --blur: 12px;
  --saturate: 110%;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  /* Enhanced background with more dynamic gradient sections */
  background:
    /* Text backdrop gradients - increased visibility */
    radial-gradient(ellipse 500px 250px at 20% 30%, rgba(15, 23, 42, 0.12), transparent 70%),
    radial-gradient(ellipse 600px 350px at 80% 25%, rgba(15, 23, 42, 0.10), transparent 70%),
    radial-gradient(ellipse 700px 300px at 50% 75%, rgba(15, 23, 42, 0.08), transparent 70%),
    /* Enhanced accent gradients */
    radial-gradient(800px 600px at 20% 30%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(600px 400px at 80% 20%, rgba(139, 92, 246, 0.06), transparent 50%),
    radial-gradient(400px 300px at 40% 80%, rgba(16, 185, 129, 0.07), transparent 50%),
    var(--bg);
  line-height:1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.page{
  min-height: calc(100dvh - 64px);
  display:flex;
  align-items:center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
}




.content{
  display:flex;
  flex-direction: column;
  gap: clamp(24px, 6vw, 40px);
  align-items: flex-start;
  text-align: left;
  max-width: var(--maxw);
  width: 100%;
}

.tagline{
  margin:0;
  font-weight:300;
  letter-spacing:-0.02em;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.2;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tagline.expanded{
  opacity: 1;
}

.tm{ font-size: .4em; vertical-align: super; opacity: .7 }

.lede{
  margin:0;
  max-width: 65ch;
  color: var(--muted);
  opacity: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lede.expanded{
  opacity: var(--muted-opacity);
  transform: translateY(0);
}

.contact{
  margin-top: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact.expanded{
  opacity: 1;
  transform: translateY(0);
}

.email-wrap{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.email{
  font-weight: 400;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  user-select: text;
  cursor: text;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.2s ease;
}

.email:hover{
  color: var(--accent);
}

.email[href]{
  cursor: pointer;
}

.email.noscript{
  user-select: text;
}


/* ---------- Expanded Content ---------- */
.expanded-content{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 32px);
  margin: clamp(16px, 4vw, 24px) 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-content.expanded{
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.service-section{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-title{
  margin: 0;
  font-weight: 500;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--accent);
  letter-spacing: -0.01em;
}

.service-description{
  margin: 0;
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--muted);
  opacity: var(--muted-opacity);
  line-height: 1.5;
}



/* ---------- Responsive Layout ---------- */
@media (min-width: 760px){
  .content{
    align-items: flex-start;
    text-align: left;
    padding-left: 8vw;
  }
  
  .expanded-content{
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 5vw, 40px);
  }
}

@media (min-width: 1200px){
  .content{
    padding-left: 12vw;
  }
  
  .expanded-content{
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(32px, 6vw, 48px);
  }
}

/* ---------- Footer ---------- */
.site-footer{
  display:flex;
  justify-content:center;
  align-items:center;
  height:64px;
  color: var(--muted);
  opacity: 0.3;
  font-size:.9rem;
  gap:.5ch;
}

/* ---------- Fallbacks ---------- */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))){
  .hero, .email, .btn{
    background: rgba(255, 255, 255, 0.7);
  }
}
