:root{
  --bg: #ffffff;
  --bg2: #f6f7fb;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e6e8ef;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --brand: #2563eb;
  --brand2: #1d4ed8;
  --radius: 16px;
  --container: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family:
    "Cairo",
    "Noto Sans JP",
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 1rem; top: 1rem;
  width:auto; height:auto;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .6rem .9rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: .85rem 0;
  gap: 1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:.65rem;
  font-weight: 700;
}
.brand-mark{
  width: 36px; height: 36px;
  display:grid; place-items:center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--brand2);
}
.brand-text{ letter-spacing: .2px; }

.site-nav{
  display:flex;
  align-items:center;
  gap: .9rem;
}
.site-nav a{
  padding: .45rem .55rem;
  border-radius: 10px;
  color: var(--muted);
}
.site-nav a:hover{ background: var(--bg2); color: var(--text); }

.nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: .55rem .75rem;
  font-size: 1.05rem;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--brand);
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .16);
}
.btn:hover{ background: var(--brand2); }
.btn-ghost{
  background: var(--bg);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover{ background: var(--bg2); }
.btn-small{ padding: .55rem .75rem; border-radius: 12px; font-weight: 700; }

.hero{
  padding: 3.25rem 0 2.25rem;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 2rem;
  align-items:start;
}
.badge{
  display:inline-flex;
  gap: .45rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .35rem .6rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 .8rem;
}
h1,.h1{
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 .9rem;
}
h2,.h2{
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  margin: 0 0 .9rem;
}
.lead{
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions{ display:flex; gap:.7rem; flex-wrap:wrap; margin-bottom: 1.1rem; }
.hero-meta{ display:flex; flex-wrap:wrap; gap: .8rem; color: var(--muted); font-weight: 600; }

.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.hero-card{ position: sticky; top: 84px; }

.profile{
  display:flex;
  align-items:center;
  gap: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .9rem;
}
.avatar{
  width: 52px; height: 52px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,.25), transparent 60%),
              linear-gradient(135deg, var(--bg2), #ffffff);
  border: 1px solid var(--border);
}
.h3{ margin: 0; font-size: 1.2rem; }
.h4{ margin: 0 0 .6rem; font-size: 1.05rem; }
.muted{ color: var(--muted); }

.chips{ display:flex; flex-wrap:wrap; gap: .5rem; margin: .75rem 0 1rem; }
.chip{
  border: 1px solid var(--border);
  background: var(--bg2);
  padding: .35rem .6rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  font-size: .92rem;
}
.card-actions{ display:flex; flex-wrap:wrap; gap: .55rem; }

.section{ padding: 2.5rem 0; }
.section.subtle{ background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head{ margin-bottom: 1.2rem; }
.section-head h2{ margin: 0 0 .35rem; font-size: 1.7rem; }

.grid{ display:grid; gap: 1rem; }
.projects-grid{ grid-template-columns: repeat(12, 1fr); }
.project-card{ grid-column: span 6; }
.project-card h3{ margin: 0 0 .15rem; }
.card-top{ margin-bottom: .6rem; }
.tags{ display:flex; flex-wrap:wrap; gap:.45rem; margin: .75rem 0 .9rem; }
.tag{
  border: 1px solid var(--border);
  padding: .28rem .55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
  background: #fff;
}
.card-link{ color: var(--brand2); font-weight: 800; }
.card-link:hover{ text-decoration: underline; }

.two-col{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items:start;
}

.list{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
}
.list li{ margin: .35rem 0; }

.contact-grid{ grid-template-columns: repeat(12, 1fr); }
.contact-card{ grid-column: span 4; }
.contact-card:hover{ background: var(--bg2); }

.site-footer{
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap:wrap;
}

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-card{ position: static; }
  .project-card{ grid-column: span 12; }
  .two-col{ grid-template-columns: 1fr; }
  .contact-card{ grid-column: span 12; }
  .site-nav{ display:none; width: 100%; padding-top: .5rem; }
  .site-nav.open{ display:flex; flex-direction:column; align-items:flex-start; }
  .nav-toggle{ display:inline-flex; }
  .header-inner{ align-items:flex-start; flex-wrap:wrap; }
}
