
:root{
  --bg:#f6f4ef;
  --panel:#ffffff;
  --text:#0b0b0c;
  --muted:#666a73;
  --border:#e7e4dc;
  --shadow:0 24px 70px rgba(0,0,0,.10);
  --shadow-soft:0 12px 30px rgba(0,0,0,.05);
  --mono:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans:'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  background:linear-gradient(180deg,#faf9f6 0%, var(--bg) 100%);
  color:var(--text);
}
a{text-decoration:none;color:inherit}
.page-shell{padding:22px}
.container{max-width:1180px;margin:0 auto}

.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 4px 30px;
}
.brand{
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-0.03em;
}
.nav{
  display:flex;
  gap:28px;
}
.nav a{
  color:var(--muted);
  font-size:.95rem;
}
.nav a:hover{color:var(--text)}

.eyebrow{
  display:inline-flex;
  align-items:center;
  padding:9px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow-soft);
  color:#50545d;
  font-size:.84rem;
  font-weight:500;
}

.hero{padding:12px 4px 42px}
.hero-copy{
  text-align:center;
  max-width:920px;
  margin:0 auto 34px;
}
.hero h1{
  margin:20px 0 16px;
  font-size:clamp(2.6rem, 7vw, 6rem);
  line-height:.95;
  letter-spacing:-0.07em;
}
.hero p{
  margin:0 auto;
  max-width:760px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.85;
}

.terminal-window{
  margin:0 auto;
  max-width:1080px;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(0,0,0,.08);
  background:#000;
  box-shadow:var(--shadow);
}
.terminal-topbar{
  position:relative;
  height:52px;
  display:flex;
  align-items:center;
  padding:0 18px;
  background:linear-gradient(180deg,#3c3c40 0%, #2a2a2d 100%);
}
.traffic-lights{display:flex;gap:8px}
.light{width:12px;height:12px;border-radius:50%;display:inline-block}
.light.red{background:#ff5f57}
.light.yellow{background:#febc2e}
.light.green{background:#28c840}
.terminal-title{
  position:absolute;
  inset-inline:0;
  text-align:center;
  color:rgba(255,255,255,.72);
  font-size:.96rem;
  font-weight:500;
}
.terminal-body{
  min-height:410px;
  padding:24px 28px 30px;
  color:#fff;
  font-family:var(--mono);
  font-size:15px;
  line-height:1.78;
}
.terminal-block{margin:0 0 18px}
.prompt{color:rgba(255,255,255,.82)}
.output{white-space:pre-wrap;color:#fff;margin-top:2px}
.cursor{
  display:inline-block;
  width:10px;
  height:1.1em;
  margin-left:6px;
  background:#fff;
  vertical-align:-2px;
  animation:blink 1s steps(1) infinite;
}
@keyframes blink{50%{opacity:0}}
.section-header.center{
  text-align:center;
  max-width:680px;
  margin:40px auto 20px;
}
.blog-section{padding:58px 4px 12px}
.section-heading{
  max-width:720px;
  margin:0 auto 26px;
  text-align:center;
}
.section-heading h2{
  margin:14px 0 10px;
  font-size:clamp(1.9rem, 3vw, 3rem);
  letter-spacing:-0.045em;
}
.section-heading p{margin:0;color:var(--muted);line-height:1.8}
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.tool-card{
  background:rgba(255,255,255,.85);
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px 22px 24px;
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 36px rgba(0,0,0,.08);
  border-color:#d8d3c8;
}
.tool-date{color:#8b9097;font-size:.84rem;margin-bottom:12px}
.tool-card h3{margin:0 0 10px;font-size:1.25rem;letter-spacing:-0.03em}
.tool-card p{margin:0 0 18px;color:var(--muted);line-height:1.75}
.tool-card span{
  font-size:.95rem;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
}

.contact-section{padding:38px 4px 58px}
.contact-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border:1px solid var(--border);
  border-radius:28px;
  background:rgba(255,255,255,.88);
  box-shadow:var(--shadow-soft);
  padding:28px 30px;
}
.contact-box h2{
  margin:12px 0 10px;
  font-size:2rem;
  letter-spacing:-0.04em;
}
.contact-box p{margin:0;color:var(--muted);line-height:1.8}
.mail-link{
  white-space:nowrap;
  padding:14px 18px;
  border-radius:16px;
  background:#111;
  color:#fff;
  font-weight:600;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
}

.article-page{
  max-width:980px;
  margin:0 auto;
  padding:14px 4px 56px;
}
.back-link{display:inline-block;margin:6px 0 26px;color:var(--muted)}
.article-hero{margin-bottom:26px}
.article-hero h1{
  margin:14px 0 12px;
  font-size:clamp(2rem, 4vw, 3.7rem);
  letter-spacing:-0.05em;
}
.article-hero p{
  max-width:760px;
  color:var(--muted);
  line-height:1.85;
  font-size:1.05rem;
}
.article-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
}
@media (max-width: 920px){
  .article-grid{
    grid-template-columns:1fr;
  }
}
.panel{
  background:rgba(255,255,255,.9);
  border:1px solid var(--border);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow-soft);
}
.panel h2{margin:0 0 14px;font-size:1.2rem;letter-spacing:-0.03em}
.panel p,.panel li{color:#43474f;line-height:1.8}
.panel ul{margin:0;padding-left:18px}
.code-window{
  margin-top:16px;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background:#000;
}
.code-topbar{
  height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 14px;
  background:linear-gradient(180deg,#3b3b3f 0%, #2a2a2d 100%);
}
.code-window pre{
  margin:0;
  padding:16px 18px 18px;
  color:#fff;
  overflow:auto;
  font:500 14px/1.8 var(--mono);
}
.note{
  display:block;
  padding:14px 16px;
  border-radius:16px;
  background:#f5f4ef;
  color:#50545d;
  margin-top:14px;
}

@media (max-width: 920px){
  .card-grid{grid-template-columns:1fr 1fr}
  .article-grid{grid-template-columns:1fr}
  .contact-box{flex-direction:column;align-items:flex-start}
}
@media (max-width: 640px){
  .page-shell{padding:14px}
  .nav{display:none}
  .terminal-body{min-height:360px;padding:20px}
  .card-grid{grid-template-columns:1fr}
  .mail-link{width:100%;text-align:center}
}
.projects-section{
  padding: 22px 4px 26px;
}

.projects-list{
  display:flex;
  flex-direction:column;
  gap:16px;
  max-width:980px;
  margin:0 auto;
}

.project-row{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  align-items:start;
  background:rgba(255,255,255,.88);
  border:1px solid #ddd8ce;
  border-radius:24px;
  padding:20px 20px 18px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration:none;
  color:inherit;
}

.project-row:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(0,0,0,.07);
  border-color:#cfc8bb;
}

.project-status{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:38px;
  padding:8px 14px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:-0.01em;
  border:1px solid transparent;
  color:#1b1b1b;
}

.project-status.active{
  background:#d7eadf;
  border-color:#bcd8c6;
}

.project-status.progress{
  background:#f6e6b8;
  border-color:#e6cc80;
}

.project-status.research{
  background:#dbe7f5;
  border-color:#c3d6ec;
}
.project-status.hold{
  background:#e7e7ea;
  border-color:#d2d2d7;
  color:#555;
}

.project-content h3{
  margin:2px 0 10px;
  font-size:1.28rem;
  letter-spacing:-0.03em;
  color:#0b0b0c;
}

.project-content p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

@media (max-width: 720px){
  .project-row{
    grid-template-columns:1fr;
    gap:14px;
  }

  .project-status{
    justify-self:start;
  }
}
.site-footer{
  margin-top:60px;
  padding:30px 0 40px;
  border-top:1px solid #e8e4dc;
}

.footer-inner{
  text-align:center;
  font-size:13px;
  color:#777;
}

.footer-links{
  margin-bottom:10px;
}

.footer-links a{
  color:#444;
  text-decoration:none;
  margin:0 6px;
}

.footer-links a:hover{
  text-decoration:underline;
}

.footer-note{
  font-size:12px;
  color:#888;
  margin-bottom:10px;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.6;
}

.footer-copy{
  font-size:12px;
  color:#aaa;
}
.app-slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.slider-track {
  width: 100%;
  max-width: 320px;
  overflow: hidden;
}

.slide {
  display: none;
  justify-content: center;
}

.slide.active {
  display: flex;
}

.slider-image {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.slider-image:hover {
  transform: translateY(-2px);
}

.slider-btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}

.slider-btn:hover {
  background: #fff;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #c8c8c8;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: #111;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .slider-track {
    max-width: 260px;
  }

  .slider-image {
    max-width: 220px;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}