html {
  scroll-behavior: smooth;
}

:root{
  --bg:#0b1220;
  --bg2:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line: rgba(148,163,184,.18);
  --accent:#38bdf8;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 70% 30%, rgba(56,189,248,.10), transparent 60%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height:1.6;
}

/* hero background only */
.heroWrap{
  position: relative;
  isolation: isolate;
}

.heroWrap::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px) 0 0 / 16px 16px;
  opacity:.6;
  z-index:-1;
}

/* top nav */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  background: rgba(2,6,23,.55);
  border-bottom:1px solid rgba(148,163,184,.18);
  backdrop-filter: blur(10px);
  z-index:50;
}

.brand{
  font-weight:700;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav a{
  color:var(--text);
  text-decoration:none;
  opacity:.85;
  font-size:14.5px;
}

.nav a:hover{ opacity:1; }

.nav a.active{
  opacity:1;
  color:var(--accent);
}

/* full-screen hero */
.heroWrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 0 24px;
}

.hero{
  text-align:center;
  transform: translateY(-18px);
}

.hero h1{
  margin:0;
  font-size: clamp(56px, 8vw, 110px);
  font-weight:300;
  letter-spacing:.5px;
}

.hero p{
  margin: 12px 0 0;
  color: var(--muted);
}

.down{
  margin-top: 44px;
  font-size: 34px;
  color: rgba(229,231,235,.7);
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(10px); }
}

/* ---- About section (scroll-down info) ---- */
.section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}

.sectionTitle{
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.aboutGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px){
  .aboutGrid{
    grid-template-columns: 1.1fr .9fr; /* text | photo */
    gap: 36px;
  }
}

.aboutCard{
  background: #ffffff;              /* 완전 흰 카드 */
  border: 1px solid #e5e7eb;        /* 연한 테두리 */
  border-radius: 18px;
  padding: 26px 26px 22px;

  /* ↓ 이 줄은 제거 */
  /* backdrop-filter: blur(10px); */
}

.aboutLead{
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 600;
}

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

.contactList{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.contactItem{
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.contactLabel{
  width: 72px;
  color: rgba(229,231,235,.75);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contactValue a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(56,189,248,.55);
}
.contactValue a:hover{
  color: var(--accent);
  border-bottom-color: rgba(56,189,248,.9);
}

.profileWrap{
  display: grid;
  place-items: center;
}

.profileImg{
  width: min(420px, 92%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  background: rgba(2,6,23,.35);
}

/* helpers */
.page{ padding: 120px 24px 64px; max-width: 1100px; margin: 0 auto; }
.muted{ color: var(--muted); }

.downLink{
  display: inline-block;
  margin-top: 44px;
  font-size: 34px;
  color: rgba(229,231,235,.7);
  text-decoration: none;
  animation: bob 1.6s ease-in-out infinite;
}
.downLink:hover{ color: var(--accent); }

.section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}

#about{
  background: #f8fafc;
  color: #0f172a;
}
/* ===== Section pages ===== */
.pageHead{position:relative;isolation:isolate;padding:140px 24px 56px;border-bottom:1px solid var(--line)}
.pageHead::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px) 0 0 / 16px 16px;
  opacity:.6;z-index:-1}
.pageHeadInner{max-width:1100px;margin:0 auto}
.pageHead h1{margin:0;font-size:clamp(40px,6vw,72px);font-weight:300;letter-spacing:.5px;line-height:1.1}
.pageHead p{margin:14px 0 0;color:var(--muted);max-width:60ch}

.projectList{max-width:1100px;margin:0 auto;padding:24px 24px 96px}
.project{display:grid;grid-template-columns:1fr;gap:24px;padding:48px 0;border-bottom:1px solid var(--line)}
.project:last-child{border-bottom:0}
@media (min-width:900px){.project{grid-template-columns:.95fr 1.05fr;gap:40px;align-items:start}}
.projectMedia{aspect-ratio:4/3;border:1px dashed rgba(148,163,184,.35);border-radius:14px;background:rgba(2,6,23,.35);display:grid;place-items:center;color:var(--muted);font-size:14px;overflow:hidden}
.projectMedia img{width:100%;height:100%;object-fit:cover}
.projectMeta{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0 0 8px}
.project h2{margin:0 0 12px;font-size:28px;font-weight:600;line-height:1.25}
.project p{margin:0 0 14px;opacity:.9;max-width:62ch}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 0;padding:0;list-style:none}
.tags li{font-size:13.5px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted)}

.cvWrap{max-width:1100px;margin:0 auto;padding:24px 24px 96px}
.cvBlock{padding:40px 0;border-bottom:1px solid var(--line)}
.cvBlock:last-of-type{border-bottom:0}
.cvRow{display:grid;grid-template-columns:1fr;gap:4px;padding:14px 0;border-top:1px solid rgba(148,163,184,.10)}
.cvRow:first-of-type{border-top:0}
@media (min-width:720px){.cvRow{grid-template-columns:140px 1fr;gap:24px}}
.cvDate{color:var(--muted);font-size:14.5px}
.cvTitle{font-weight:600}
.cvSub{color:var(--muted);font-size:14.5px}
.cvDownload{display:inline-block;margin-top:22px;padding:10px 18px;border:1px solid var(--accent);border-radius:10px;color:var(--accent);text-decoration:none}
.cvDownload:hover{background:rgba(56,189,248,.12)}

/* ===== Robot lineup (robotics page) ===== */
.lineup{max-width:1100px;margin:0 auto;padding:56px 24px 24px}
.lineupHead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.lineupHead h2{margin:0;font-size:28px;font-weight:600}
.lineupHead p{margin:6px 0 0;color:var(--muted)}
.filter{display:flex;gap:6px;flex-wrap:wrap}
.filter button{font:inherit;font-size:14px;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:999px;padding:6px 14px;cursor:pointer}
.filter button[aria-pressed="true"]{color:var(--bg);background:var(--accent);border-color:var(--accent)}
.robotGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin:0;padding:0;list-style:none}
.robot{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:rgba(2,6,23,.35);display:flex;flex-direction:column}
.robot[hidden]{display:none}
.robotPhoto{aspect-ratio:4/3;display:grid;place-items:center;color:var(--muted);font-size:13px;border-bottom:1px dashed rgba(148,163,184,.3)}
.robotPhoto img{width:100%;height:100%;object-fit:cover}
.robotBody{padding:14px 16px 16px}
.robotNo{font-size:12px;letter-spacing:.12em;color:var(--accent);margin:0 0 4px}
.robot h3{margin:0 0 10px;font-size:19px;font-weight:600}
.robotSpecs{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:14px}
.robotSpecs dt{color:var(--muted)}
.robotSpecs dd{margin:0}
.blank{color:rgba(148,163,184,.55)}

.paperBlank{border:1px dashed rgba(148,163,184,.35);border-radius:10px;padding:14px 16px;margin:0 0 14px;color:var(--muted);font-size:14.5px}
.paperBlank dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 14px}
.paperBlank dt{color:var(--muted)}
.paperBlank dd{margin:0;color:rgba(148,163,184,.55)}

/* ===== Site-wide blueprint grid (fixed, continuous behind every section) ===== */
.heroWrap::before, .pageHead::before{ display:none; }
body::before, body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
}
/* fine 16px grid */
body::before{
  background:
    linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px) 0 0 / 16px 16px;
}
/* major 64px grid */
body::after{
  background:
    linear-gradient(rgba(148,163,184,.16) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(148,163,184,.16) 1px, transparent 1px) 0 0 / 64px 64px;
}

/* intro: grid lines grow out from scattered intersections (scripts/blueprint.js) */
body::before, body::after{ transition: opacity .7s ease; }
.bp-intro:not(.bp-done) body::before,
.bp-intro:not(.bp-done) body::after{ opacity:0; }
.bpCanvas{ position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:-1; transition: opacity .7s ease; }
.bp-intro .hero, .bp-intro .pageHeadInner{ animation: bpFade .8s ease-out 1.4s both; }
@keyframes bpFade{ from{ opacity:0; transform: translateY(-6px); } to{ opacity:1; transform: translateY(-18px); } }
.bp-intro .pageHeadInner{ animation-name: bpFadeFlat; }
@keyframes bpFadeFlat{ from{ opacity:0; } to{ opacity:1; } }
@media (prefers-reduced-motion: reduce){
  .bp-intro body::before, .bp-intro body::after{ opacity:1 !important; }
  .bp-intro .hero, .bp-intro .pageHeadInner{ animation:none; }
  .bpCanvas{ display:none; }
}

/* ===== About: floating rounded panel ===== */
#about{
  max-width:1100px;
  margin:0 auto 96px;
  padding:72px 48px;
  border-radius:28px;
  background:#f8fafc;
  color:#0f172a;
  border:1px solid rgba(148,163,184,.25);
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
@media (max-width: 1148px){
  #about{ margin:0 24px 96px; }
}
@media (max-width: 640px){
  #about{ margin:0 16px 64px; padding:40px 20px; border-radius:20px; }
}
#about .contactLabel{ color:#475569; }
#about .contactValue a{ color:#0f172a; border-bottom-color:rgba(15,23,42,.35); }
#about .contactValue a:hover{ color:#0369a1; border-bottom-color:#0369a1; }
