:root{
  --bg:#0e0e11; --panel:#15161a; --panel-2:#101114;
  --muted:#a2a6b0; --text:#e9ecf1; --accent:#3b82f6; --accent-2:#9b9bff;
  --radius:22px; --radius-sm:16px; --radius-lg:28px;
  --shadow:0 1px 0 rgba(255,255,255,.06) inset, 0 20px 40px rgba(0,0,0,.45);
  --border:1px solid rgba(255,255,255,.06);
  --card-grad:
    radial-gradient(1200px 600px at 0% -10%, rgba(255,255,255,.06), transparent 50%),
    radial-gradient(1200px 600px at 120% 110%, rgba(255,255,255,.05), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.02));
}

/* ========== Base Typography: Inter 14 / 19.2, color #9f9f9f ========== */
*{box-sizing:border-box}
html,body{height:100%}
html{font-size:14px}
body{
  margin:0;
  background:
    radial-gradient(80vw 80vh at 10% -10%, #14151a, transparent 50%),
    radial-gradient(80vw 80vh at 110% 10%, #101116, transparent 50%),
    var(--bg);
  color:#9f9f9f;
  font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height:19.2px;
  letter-spacing:.2px;
}
h1,h2,h3{color:#e9ecf1;margin:0}
.muted{color:#8b8f96; font-size:12px; text-transform:uppercase; letter-spacing:.18em}

/* ========== Navbar ========== */
.nav{
  position:sticky;
  top:0;
  z-index:40;
  background:transparent;
  border:0;
  box-shadow:none;
}
.nav-centered .nav-inner{
  max-width:1180px;
  margin:0 auto;
  padding:18px 20px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
}
.logo{
  font-weight:700;
  font-size:22px;
  letter-spacing:.6px;
  color:#e9ecf1;
  text-transform:lowercase;
}
.navlinks{
  display:flex;
  gap:26px;
  justify-self:center;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.navlinks a{
  position:relative;
  text-decoration:none;
  color:#a2a6b0;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  white-space:nowrap;
}
.navlinks a.active,
.navlinks a:hover{
  color:#e9ecf1;
}
.navlinks a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  border-radius:4px;
  background:linear-gradient(90deg, transparent, #6e7fff, transparent);
  transform:scaleX(0);
  transform-origin:center;
  transition:.28s ease;
}
.navlinks a.active::after,
.navlinks a:hover::after{
  transform:scaleX(1);
}
.cta{justify-self:end}
.btn{
  appearance:none;
  border:var(--border);
  color:#e9ecf1;
  background-color:var(--panel);
  background-image:var(--card-grad);
  padding:10px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  box-shadow:var(--shadow);
}
.btn:hover{filter:brightness(1.06)}

/* ========== MENU button for mobile ========== */
.menu-toggle{
  display:none;              /* desktop hidden */
  border:0;
  background:none;
  color:#e9ecf1;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.18em;
  cursor:pointer;
}

/* MOBILE NAV: bis 768px */
@media (max-width:768px){
  .nav-centered .nav-inner{
    grid-template-columns:auto auto auto; /* logo | menu | cta */
    gap:12px;
  }

  .menu-toggle{
    display:block;
    justify-self:center;
  }

  .navlinks{
    display:none;             /* closed by default */
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:12px 20px 18px;
    background:var(--panel);
    border-bottom:var(--border);
    box-shadow:0 20px 40px rgba(0,0,0,.6);
    flex-direction:column;
    gap:12px;
    z-index:39;
  }

  .navlinks.is-open{
    display:flex;
  }

  .navlinks a{
    padding:6px 0;
  }
}

/* Desktop fallback (navlinks always visible) */
@media (min-width:769px){
  .navlinks{
    display:flex;
  }
}

/* ========== Wrapper ========== */
.wrap{max-width:1180px; margin:48px auto 120px; padding:0 24px}

/* ========== Grid ========== */
.grid{ display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width:640px){ .grid{ grid-template-columns: repeat(6, 1fr); } }
@media (min-width:1024px){ .grid{ grid-template-columns: repeat(12, 1fr); } }

/* ========== Card base ========== */
.card{
  position:relative;
  border:var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  background-image: var(--card-grad);
  box-shadow: var(--shadow);
  overflow:hidden;
  isolation:isolate;
  transition: transform .2s ease, box-shadow .2s ease, background .3s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px rgba(0,0,0,.5);
}
.card .in{ padding:26px; }

/* ========== Minimal corner arrow (no background) ========== */
.corner{
  position:absolute;
  right:16px;
  bottom:16px;
  width:auto;
  height:auto;
  padding:0;
  border:0;
  background:none;
  color:#e9ecf1;
  opacity:.8;
  display:grid;
  place-items:center;
  transition: transform .18s ease, opacity .18s ease;
}
.corner svg{ width:22px; height:22px; }
.card:hover .corner{ transform:translateX(2px); opacity:1; }

/* ========== Spans ========== */
.profile,.services,.cta-wide,.panel,.media,.logo-tile,.social,.stats{ grid-column: span 1; }
@media (min-width:640px){
  .profile,.services,.cta-wide{ grid-column: span 6; }
  .panel,.media,.logo-tile,.social{ grid-column: span 3; }
  .stats{ grid-column: span 2; }
}
@media (min-width:1024px){
  .profile{ grid-column: span 6; }
  .services{ grid-column: span 6; }
  .cta-wide{ grid-column: span 6; }
  .panel,.media,.logo-tile,.social{ grid-column: span 3; }
  .stats{ grid-column: span 2; }
}

/* ========== Profile (bigger photo & headline) ========== */
.profile{ min-height:240px; display:grid; align-items:center }
.profile .in{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap:28px;
  align-items:center;
}
@media (min-width:1024px){ .profile .in{ grid-template-columns: 200px 1fr; gap:32px; } }
@media (max-width:520px){ .profile .in{ grid-template-columns: 120px 1fr; gap:18px; } }

.avatar{
  width:170px;
  height:170px;
  border-radius:20px;
  overflow:hidden;
}
@media (min-width:1024px){
  .avatar{ width:200px; height:200px; border-radius:22px; }
}
@media (max-width:520px){
  .avatar{ width:120px; height:120px; border-radius:18px; }
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:inherit;
}

.hero-title{
  font:800 42px/1.05 Inter, sans-serif;
  letter-spacing:.2px;
}
@media (min-width:1024px){ .hero-title{ font-size:46px; } }
@media (max-width:520px){ .hero-title{ font-size:32px; line-height:1.06; } }
.hero-sub{ margin-top:8px; color:#c1c5cf }

/* ========== Vertical card helpers ========== */
.in-column{ display:flex; flex-direction:column; align-items:flex-start; }
.in-column .muted{ margin-top:2px; }
.card-title{ margin-top:6px; }

/* ========== Signature / works / blog images ========== */
.signature{
  display:block;
  margin:8px auto 16px;
  max-width:70%;
  height:auto;
  filter:contrast(110%) brightness(105%);
  opacity:.95;
}
.media .signature.works{ max-width:82%; margin-top:0; }
.blog .blog-cover{
  display:block;
  max-width:82%;
  height:auto;
  margin:0 auto 12px;
  filter:contrast(110%) brightness(105%);
  opacity:.95;
}

/* ========== Services (icons above, labels below, equal spacing) ========== */
.icons-row{ display:flex; gap:16px; align-items:center; margin-top:16px } /* legacy */
.circle{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,#1b1c21,#0f1013)
}
.sub-muted{ color:#b9bec8 }

/* New layout for Services */
.services .in.in-column{ align-items:center; min-height:230px; }
.icons-grid{
  display:flex;
  gap:36px;                 /* more space between icons */
  justify-content:center;
  align-items:flex-start;
  margin:6px 0 0;
  flex-wrap:wrap;
}
.service{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-width:110px;
}
/* strip background so icons are minimal white */
.service .circle{
  width:auto;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.service .circle svg{
  width:40px;
  height:40px;
  stroke:#fff;
  opacity:.95;
}
.svc-label{
  font-weight:700;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#e9ecf1;
  opacity:.92;
  text-align:center;
}
/* services footer pinned to the bottom for consistent spacing */
.services .foot{
  align-self:flex-start;
  width:100%;
  margin-top:58px;
  margin-bottom:0;
}

.icons-grid{ margin-top:60px; }

/* ========== Social (inner mini-card + foot) ========== */
.social .in.in-column{ align-items:center; }
.micro-panel{
  width:100%;
  max-width:420px;
  min-height:150px;
  padding:20px 24px;
  margin:8px auto 12px; /* tighter to the foot below */
  border:var(--border);
  border-radius:20px;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(255,255,255,.05), transparent 50%),
    linear-gradient(180deg,#191a1f,#0f1013);
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
}
.icon-w{
  width:80px;
  height:80px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(180deg,#1b1c21,#0f1013);
  border:1px solid rgba(255,255,255,.08);
  position:relative;
  transition:.2s transform, .2s box-shadow, .2s opacity;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  opacity:.95;
  aspect-ratio:1/1;
}
.icon-w::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.icon-w:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 8px 22px rgba(0,0,0,.35),
    0 0 0 6px rgba(255,255,255,.03);
  opacity:1;
}
.icon-w svg{ width:36px; height:36px; }
.social .foot{ align-self:flex-start; margin-top:12px; margin-bottom:0; }

/* ========== Stats ========== */
.stats{ min-height:140px; display:grid; align-items:center }
.num{font:800 28px/1 Inter, sans-serif; color:#e9ecf1}
.stats small{color:#a2a6b0; text-transform:uppercase; letter-spacing:.18em}

/* ========== CTA wide ========== */
.cta-wide{ min-height:160px; display:grid; align-items:center }
.cta-wide h3{
  font:700 34px/1.1 Inter, sans-serif;
  margin:6px 0;
  color:#e9ecf1;
}
.cta-wide .accent{ color: var(--accent) }
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,#181a20,#0f1013);
  color:#c6cad4;
  font-size:12px
}

/* ========== Footer ========== */
footer{
  max-width:1180px;
  margin:64px auto 88px;
  padding:0 24px;
  color:#9aa0ac;
}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
}
.links{
  display:flex;
  gap:34px;
  justify-content:center;
}
.links a{
  text-decoration:none;
  color:#9aa0ac;
  text-transform:uppercase;
  font-weight:400;
  letter-spacing:.12em;
}
.links a:hover{ color:#e9ecf1 }

/* ========== Hover shine ========== */
.shine{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:.35s;
  background: radial-gradient(400px 200px at 50% 50%, rgba(255,255,255,.08), transparent 40%);
  mix-blend-mode: screen;
}
.card:hover .shine{ opacity:1 }

/* ========== Mobile tweaks ========== */
@media (max-width:360px){
  .btn{padding:8px 14px}
  .navlinks{gap:18px}
  .card .in{ padding:22px }
  .profile .in{ grid-template-columns: 96px 1fr; gap:18px }
  .icon-w{ width:52px; height:52px }
  .icon-w svg{ width:24px; height:24px }
}
