
:root{
  --bg:#f6fbff;
  --card:#ffffff;
  --text:#334155;
  --muted:#64748b;
  --line:#dbeafe;
  --accent:#38bdf8;
  --accent-2:#7dd3fc;
  --accent-soft:#e0f2fe;
  --shadow:0 10px 30px rgba(15, 23, 42, .08);
  --shadow-hover:0 18px 44px rgba(56, 189, 248, .24);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125,211,252,.25), transparent 30%),
    linear-gradient(180deg,#ffffff 0%,var(--bg) 30%,#ffffff 100%);
  color:var(--text);
  line-height:1.7;
}

button,
input{
  font:inherit;
}

#loader{
  position:fixed;
  inset:0;
  background:#ffffff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
  z-index:9999;
  transition:opacity .35s ease, visibility .35s ease;
}

#loader.is-hidden{
  opacity:0;
  visibility:hidden;
}

.loader-line{
  width:220px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transform-origin:left center;
  animation:load 1.1s infinite alternate ease-in-out;
}

@keyframes load{
  from{transform:scaleX(.25)}
  to{transform:scaleX(1)}
}

.hero{
  position:relative;
  padding:92px 24px 80px;
  background-image:
    linear-gradient(135deg,rgba(255,255,255,.76),rgba(224,242,254,.72)),
    url("header-bg.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-bottom:1px solid rgba(56,189,248,.2);
  overflow:hidden;
}

.hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.26) 0 1px,transparent 1px 44px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.14) 0 1px,transparent 1px 44px);
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  max-width:1200px;
  margin:auto;
}

.hero-kicker{
  display:inline-block;
  margin:0 0 16px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  font-size:.78rem;
  letter-spacing:.16em;
  font-weight:700;
}

.hero h1{
  margin:0;
  font-size:clamp(2.6rem,7vw,5.4rem);
  letter-spacing:.08em;
  line-height:1;
  text-shadow:0 2px 16px rgba(255,255,255,.7);
}

.hero-lead{
  margin:22px 0 0;
  font-size:clamp(1rem,2vw,1.2rem);
  color:#475569;
  text-shadow:0 2px 16px rgba(255,255,255,.7);
}

.layout{
  max-width:1440px;
  margin:auto;
  padding:28px 24px 44px;
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:24px;
}

.sidebar{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(219,234,254,.9);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}

.avatar{
  height:164px;
  border-radius:18px;
  background:none;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  overflow:hidden;
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.profile-heading{
  margin:18px 0 8px;
}

.profile-heading h2{
  margin:0 0 4px;
}

.profile-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:500;
  line-height:1.5;
}



.profile p{
  color:var(--muted);
}

.stats.single{
  margin-top:18px;
}

.stats.single div{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:18px 12px;
  border-radius:18px;
  background:linear-gradient(135deg,#f0f9ff,#ffffff);
  border:1px solid var(--line);
  color:#0284c7;
}

.count-label{
  font-weight:800;
}

.stats strong{
  display:inline-block;
  font-size:1.6rem;
  line-height:1;
  color:#0284c7;
}

.social{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.social a{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  text-decoration:none;
  color:#0369a1;
  background:var(--accent-soft);
  border:1px solid rgba(56,189,248,.25);
  font-weight:800;
  transition:.2s ease;
}

.social a:hover{
  transform:translateY(-2px);
  background:#bae6fd;
}

.timeline-accordion summary{
  cursor:default;
  list-style:none;
  font-size:1.08rem;
  font-weight:800;
  margin-bottom:12px;
}

.timeline-accordion summary::-webkit-details-marker{
  display:none;
}

.timeline{
  position:relative;
  list-style:none;
  margin:0;
  padding:0 0 0 18px;
}

.timeline:before{
  content:"";
  position:absolute;
  left:4px;
  top:8px;
  bottom:8px;
  width:2px;
  background:linear-gradient(var(--accent),transparent);
}

.timeline li{
  position:relative;
  margin:0 0 16px;
  padding-left:18px;
}

.timeline li:before{
  content:"";
  position:absolute;
  left:-19px;
  top:.55em;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px #e0f2fe;
}

.timeline span{
  display:block;
  font-weight:800;
  color:#0284c7;
  font-size:.86rem;
}

.search-panel input{
  width:100%;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#ffffff;
  color:var(--text);
  outline:none;
}

.search-panel input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(56,189,248,.18);
}

.tag-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.tag-btn{
  border:none;
  padding:8px 13px;
  border-radius:999px;
  color:#075985;
  background:var(--accent-soft);
  cursor:pointer;
  transition:.2s ease;
}

.tag-btn:hover,
.tag-btn.is-active{
  background:var(--accent);
  color:#ffffff;
}

.result-info{
  margin:12px 0 0;
  color:var(--muted);
  font-size:.92rem;
}

.works-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
  gap:22px;
  margin-top:22px;
}

.work-card{
  overflow:hidden;
  border-radius:22px;
  background:#ffffff;
  border:1px solid rgba(219,234,254,.9);
  box-shadow:0 8px 22px rgba(15,23,42,.07);
  cursor:pointer;
  opacity:0;
  transform:translateY(26px);
  transition:
    opacity .5s ease,
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    outline-color .25s ease;
  outline:2px solid transparent;
  outline-offset:3px;
}

.work-card.show{
  opacity:1;
  transform:translateY(0);
}

.work-card:hover{
  transform:translateY(-7px);
  border-color:var(--accent);
  outline-color:rgba(56,189,248,.38);
  box-shadow:var(--shadow-hover);
}

.work-card img,
.no-image{
  width:100%;
  aspect-ratio:16/9;
}

.work-card img{
  display:block;
  object-fit:cover;
  background:#e2e8f0;
}

.no-image{
  display:grid;
  place-items:center;
  background:
    linear-gradient(135deg,#e0f2fe,#f8fcff),
    repeating-linear-gradient(45deg,rgba(56,189,248,.12) 0 8px,transparent 8px 16px);
  color:#0284c7;
  font-weight:900;
  letter-spacing:.12em;
}

.card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:12px 16px 0;
}

.work-content{
  padding:10px 17px 17px;
}

.work-content h3{
  margin:0 0 6px;
  line-height:1.4;
}

.work-content small{
  color:var(--muted);
}

.work-content p{
  margin:10px 0 0;
  color:var(--muted);
}

.tags span,
.card-tags span{
  display:inline-block;
  background:var(--accent-soft);
  color:#075985;
  padding:4px 8px;
  border-radius:999px;
  font-size:.78rem;
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.42);
  padding:24px;
  overflow:auto;
  z-index:1000;
}

.modal.is-open{
  display:block;
}

.modal-content{
  position:relative;
  max-width:900px;
  margin:5vh auto;
  background:#ffffff;
  padding:28px;
  border-radius:24px;
  box-shadow:0 24px 80px rgba(15,23,42,.24);
}

.modal-close{
  position:absolute;
  right:18px;
  top:14px;
  border:none;
  background:#e0f2fe;
  color:#075985;
  width:40px;
  height:40px;
  border-radius:50%;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
}

.modal-visual{
  width:100%;
  margin:0 0 20px;
  border-radius:18px;
  overflow:hidden;
}

.modal-visual img,
.modal-visual .no-image{
  width:100%;
  aspect-ratio:16/9;
}

.modal-visual img{
  display:block;
  object-fit:cover;
}

@media(min-width:901px){
  .modal-visual .no-image{
    aspect-ratio:32/9;
  }
}

.modal-title{
  margin:0 48px 8px 0;
  font-size:clamp(1.5rem,4vw,2.2rem);
}

.modal-year{
  margin:0 0 18px;
  color:var(--muted);
}

.modal .tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 16px;
}

.modal-text{
  white-space:pre-wrap;
  color:#475569;
}

.modal-links{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.modal-links a{
  color:#0284c7;
  word-break:break-all;
  text-decoration:underline;
  text-underline-offset:3px;
}

.archive-note{
  max-width:1440px;
  margin:0 auto;
  padding:0 24px 24px;
  color:var(--muted);
  font-size:.92rem;
}

.archive-note p{
  margin:0;
  text-align:right;
}

.footer{
  padding:32px 20px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--line);
  background:#ffffff;
}

@media(max-width:900px){
  .layout{
    grid-template-columns:1fr;
    padding:20px 16px 36px;
  }

  .timeline-accordion summary{
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:0;
  }

  .timeline-accordion summary:after{
    content:"+";
    font-size:1.4rem;
    color:#0284c7;
  }

  .timeline-accordion[open] summary{
    margin-bottom:12px;
  }

  .timeline-accordion[open] summary:after{
    content:"−";
  }

  .hero{
    padding:64px 18px 54px;
  }
}
