* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #111827;
  --text: #4b5563;
  --muted: #6b7280;
  --soft-muted: #9ca3af;
  --line: #e5e7eb;
  --green: #05E66E;
  --green-dark: #07984F;
  --green-hover: #057A40;
  --green-deep: #06351F;
  --green-pale: #F7FCF9;
  --green-soft: #E8FFF1;
  --green-line: #DDEFE5;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }


/* ================================
   Navigation
================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.85);
}

.nav-inner {
  max-width: 1100px;
  height: 70px;
  margin: auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--ink);
}

.logo-dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 27px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-dark);
}


/* ================================
   Portfolio Hero
================================ */

.portfolio-hero {
  min-height: 60vh;
  padding-top: 70px;
  overflow: hidden;
  display: flex;
  align-items: center;

  background:
    radial-gradient(circle at 80% 23%, rgba(5,230,110,.17), transparent 33%),
    radial-gradient(circle at 16% 92%, rgba(5,230,110,.09), transparent 25%),
    linear-gradient(180deg,#fff 0%,var(--green-pale) 100%);
}

.portfolio-hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: 70px 30px 60px;
  display: block;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;

  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-label::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--green);
}

.portfolio-hero h1 {
  margin-bottom: 26px;

  color: var(--ink);
  font-size: clamp(52px,7vw,82px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.portfolio-hero h1 span {
  color: var(--green);
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: #5f6876;
  font-size: 18px;
  line-height: 1.75;
}

.lead strong {
  color: #374151;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;

  padding: 12px 20px;
  border-radius: 8px;

  text-decoration: none;
  font-size: 15px;
  font-weight: 600;

  transition: .2s;
}

.btn-primary {
  color: #07351F;
  background: var(--green);
}

.btn-primary:hover {
  background: var(--green-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  color: #374151;
  background: rgba(255,255,255,.85);
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}


/* ================================
   Shared Sections
================================ */

.container {
  max-width: 1100px;
  margin: auto;
}

.portfolio-section {
  padding: 100px 30px;
}

.archive-section {
  background: var(--green-pale);
}

.section-title {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-label {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-title h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.section-title p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}


/* ================================
   Highlight Cards
================================ */

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}

.feature-card {
  display: block;
  overflow: hidden;
  min-width: 0;

  text-decoration: none;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;

  transition: .25s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #9BF1BE;
  box-shadow: 0 16px 35px rgba(15,23,42,.055);
}

.card-visual {
  position: relative;
  min-height: 215px;
  overflow: hidden;

  padding: 27px 28px;

  display: flex;
  align-items: flex-end;

  background:
    radial-gradient(circle at 82% 20%, rgba(5,230,110,.27), transparent 31%),
    linear-gradient(145deg,#f5fcf8,#e7f8ee);

  border-bottom: 1px solid #e4f2e9;
}

.weather-framework-image {
  position: absolute;
  left: 0;
  top: 50%;

  width: 100%;
  height: auto;

  transform: translateY(-50%);
  display: block;
}

.visual-weather {
  background:
    radial-gradient(circle at 20% 25%, rgba(5,230,110,.18), transparent 24%),
    radial-gradient(circle at 79% 72%, rgba(7,152,79,.12), transparent 30%),
    linear-gradient(145deg,#fbfefc,#eaf8f0);
}

.visual-number {
  position: absolute;
  top: 21px;
  left: 26px;
  z-index: 3;

  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
}

.visual-kicker {
  position: relative;
  z-index: 3;

  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.visual-scene {
  position: absolute;
  inset: 0;
}

.satellite-scene::before {
  content: "";
  position: absolute;

  width: 185px;
  height: 115px;

  top: 40px;
  right: 45px;

  border-radius: 12px;
  border: 1px solid rgba(7,152,79,.22);

  background:
    linear-gradient(90deg,transparent 49%,rgba(7,152,79,.1) 50%,transparent 51%),
    linear-gradient(0deg,transparent 49%,rgba(7,152,79,.1) 50%,transparent 51%),
    rgba(255,255,255,.55);

  background-size: 28px 28px;

  transform: rotate(-7deg);
  box-shadow: 0 16px 34px rgba(7,152,79,.08);
}

.pixel {
  position: absolute;
  display: block;
  background: rgba(5,230,110,.48);
  border-radius: 3px;
}

.pixel-a {
  width: 38px;
  height: 38px;
  right: 72px;
  top: 58px;
}

.pixel-b {
  width: 24px;
  height: 24px;
  right: 128px;
  top: 98px;
  background: rgba(7,152,79,.25);
}

.pixel-c {
  width: 18px;
  height: 18px;
  right: 58px;
  top: 126px;
  background: rgba(7,152,79,.17);
}

.scan {
  position: absolute;
  width: 130px;
  height: 1px;
  right: 72px;
  background: rgba(7,152,79,.25);
  transform: rotate(-7deg);
}

.scan-a { top: 70px; }
.scan-b { top: 104px; }
.scan-c { top: 138px; }

.climate-scene::before,
.climate-scene::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(7,152,79,.2);
}

.climate-scene::before {
  width: 195px;
  height: 125px;
  right: 30px;
  top: 37px;
  transform: rotate(-13deg);
}

.climate-scene::after {
  width: 135px;
  height: 84px;
  right: 65px;
  top: 58px;
  transform: rotate(11deg);
}

.contour {
  position: absolute;
  display: block;
  border: 1px solid rgba(7,152,79,.18);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.contour-a {
  width: 245px;
  height: 95px;
  top: 54px;
  right: 8px;
}

.contour-b {
  width: 180px;
  height: 65px;
  top: 76px;
  right: 44px;
}

.contour-c {
  width: 110px;
  height: 38px;
  top: 89px;
  right: 79px;
}

.climate-dot {
  position: absolute;

  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: var(--green);

  box-shadow: 0 0 0 5px rgba(5,230,110,.13);
}

.dot-a {
  right: 68px;
  top: 64px;
}

.dot-b {
  right: 158px;
  top: 102px;
}

.dot-c {
  right: 102px;
  top: 135px;
}

.card-body {
  padding: 28px 30px 30px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 4px 8px;
  border-radius: 4px;

  color: var(--green-dark);
  background: var(--green-soft);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge.locked {
  color: #5e6762;
  background: #f1f5f2;
}

.badge.published {
  color: #08783f;
  background: #E8FFF1;
}

.card-title {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: -.022em;
}

.card-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: 25px;
  padding-top: 18px;

  border-top: 1px solid #E4F2E9;

  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.card-footer b {
  color: var(--green);
  font-size: 15px;
}

.card-footer .year {
  color: var(--soft-muted);
  font-weight: 600;
}


/* ================================
   All Research Cards
================================ */

.research-archive {
  display: flex;
  flex-direction: column;
  gap: 65px;
}

.research-status-group {
  display: block;
}

.research-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 22px;
  padding-bottom: 12px;

  border-bottom: 1px solid var(--green-line);
}

.research-group-header h3 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.research-group-header span {
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 600;
}


/* All Research = 무조건 1열 */
.research-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.research-card {
  position: relative;
  min-height: 210px;

  padding: 29px;

  text-decoration: none;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;

  transition: .25s;
}

.research-card:hover {
  transform: translateY(-4px);
  border-color: #9BF1BE;
  box-shadow: 0 14px 30px rgba(15,23,42,.045);
}

.research-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  margin-bottom: 19px;
}

.research-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  min-width: 0;
}

.research-meta-row .research-type {
  margin-bottom: 0;
}

.research-number {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.mini-visual {
  position: relative;
  height: 62px;

  margin-bottom: 23px;

  overflow: hidden;

  border-radius: 9px;
  background: var(--green-pale);
  border: 1px solid #E4F2E9;
}

.mini-visual::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(5,230,110,.08)
    );
}

.mini-foundation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.mini-foundation span {
  width: 26px;
  height: 26px;

  border: 1px solid #8bdcab;
  background: #fff;

  transform: rotate(45deg);
}

.mini-gpp span {
  position: absolute;
  bottom: 0;

  width: 14px;

  background: rgba(7,152,79,.3);
  border-radius: 3px 3px 0 0;
}

.mini-gpp span:nth-child(1) {
  height: 25px;
  left: 27%;
}

.mini-gpp span:nth-child(2) {
  height: 43px;
  left: 47%;
  background: rgba(5,230,110,.5);
}

.mini-gpp span:nth-child(3) {
  height: 34px;
  left: 67%;
}

.mini-crop {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;

  padding: 10px 13px;
}

.mini-crop span {
  border-radius: 4px;
  background: linear-gradient(180deg,#c7f4d8,#e9fff1);
  border: 1px solid #aceac5;
}

.mini-monitoring span {
  position: absolute;

  width: 42px;
  height: 25px;

  border: 1px solid #9ce3b8;
  background: #fff;

  transform: skewX(-12deg);
}

.mini-monitoring span:nth-child(1) {
  left: 24%;
  top: 19px;
}

.mini-monitoring span:nth-child(2) {
  left: 45%;
  top: 11px;
}

.mini-monitoring span:nth-child(3) {
  left: 64%;
  top: 25px;
}

.research-type {
  margin-bottom: 8px;

  color: var(--green-dark);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}


/* Publication / Funded Project */
.purpose-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 10px;

  border: 1px solid #BEEFD0;
  border-radius: 999px;

  background: #E8FFF1;
  color: #08783f;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;

  white-space: nowrap;
}

.research-card h3 {
  margin-bottom: 10px;

  color: var(--ink);

  font-size: 19px;
  line-height: 1.48;
}

.research-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}


/* Bottom row */
.research-bottom {
  position: absolute;

  left: 29px;
  right: 29px;
  bottom: 25px;

  padding-top: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-top: 1px solid #E4F2E9;

  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}


/* Year = 오른쪽 아래 */
.research-bottom .research-year {
  margin-left: auto;

  color: var(--soft-muted);

  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;
}

.research-bottom span:last-child {
  color: var(--soft-muted);
  font-weight: 600;
}


/* ================================
   Research Detail Pages
================================ */

.detail-hero {
  padding: 140px 30px 76px;
  overflow: hidden;

  background:
    radial-gradient(circle at 82% 16%,rgba(5,230,110,.13),transparent 27%),
    linear-gradient(180deg,#fff,var(--green-pale));

  border-bottom: 1px solid #e8f1eb;
}

.back-link {
  display: inline-flex;

  margin-bottom: 28px;

  color: var(--green-dark);

  text-decoration: none;

  font-size: 14px;
  font-weight: 700;
}

.detail-title {
  max-width: 900px;

  margin-bottom: 22px;

  color: var(--ink);

  font-size: clamp(38px,6vw,64px);
  line-height: 1.08;
  letter-spacing: -.048em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-bottom: 20px;
}

.detail-lead {
  max-width: 760px;

  color: #5f6876;

  font-size: 18px;
  line-height: 1.75;
}

.detail-body {
  padding: 76px 30px 110px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  gap: 70px;
  align-items: start;
}

.detail-content {
  max-width: 760px;
}

.detail-block {
  padding: 0 0 42px;
  margin-bottom: 42px;

  border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
  border-bottom: 0;
}

.detail-block h2 {
  margin-bottom: 14px;

  color: var(--ink);

  font-size: 25px;
  letter-spacing: -.025em;
}

.detail-block p,
.detail-block li {
  color: #596373;
  font-size: 16px;
}

.detail-block ul {
  padding-left: 21px;

  display: grid;
  gap: 8px;
}

.fact-panel {
  position: sticky;
  top: 96px;

  padding: 24px;

  background: var(--green-pale);

  border: 1px solid var(--green-line);
  border-radius: 14px;
}

.fact {
  padding: 14px 0;

  border-bottom: 1px solid #dfebe4;
}

.fact:last-child {
  border-bottom: 0;
}

.fact strong {
  display: block;

  margin-bottom: 3px;

  color: #647269;

  font-size: 11px;
  letter-spacing: .08em;
}

.fact span,
.fact a {
  color: #36443b;

  font-size: 14px;

  text-decoration: none;
}

.fact a:hover {
  color: var(--green-dark);
}

.placeholder-figure {
  min-height: 260px;

  margin: 24px 0 4px;
  padding: 24px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  border-radius: 16px;

  color: var(--green-deep);

  background:
    radial-gradient(circle at 75% 20%,rgba(5,230,110,.23),transparent 26%),
    repeating-linear-gradient(90deg,transparent 0 38px,rgba(7,152,79,.055) 38px 39px),
    linear-gradient(145deg,#f7fcf9,#e5f7ec);

  border: 1px solid #dceee4;
}

.placeholder-figure span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* ================================
   Lock Panel
================================ */

.lock-panel {
  margin-top: 12px;
  padding: 34px;

  border: 1px solid #dce5df;
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      #fbfefc,
      #f5faf7
    );
}

.lock-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  margin-bottom: 16px;

  border-radius: 12px;

  background: #eaf8f0;

  font-size: 21px;
}

.lock-panel h2 {
  margin-bottom: 7px;

  color: var(--ink);

  font-size: 24px;
}

.lock-panel > p {
  margin-bottom: 20px;

  color: #697281;
}

.lock-form {
  display: flex;
  gap: 10px;
}

.lock-form input {
  min-width: 0;
  flex: 1;

  height: 46px;
  padding: 0 14px;

  border: 1px solid #ced7d1;
  border-radius: 9px;

  font: inherit;

  background: #fff;

  outline: none;
}

.lock-form input:focus {
  border-color: var(--green-dark);

  box-shadow:
    0 0 0 3px rgba(5,230,110,.12);
}

.lock-form button {
  height: 46px;

  padding: 0 18px;

  border: 0;
  border-radius: 9px;

  background: var(--green);

  color: #07351F;

  font: inherit;
  font-size: 14px;
  font-weight: 760;

  cursor: pointer;
}

.lock-form button:hover {
  background: #13d86d;
}

.lock-status {
  min-height: 24px;

  margin-top: 10px;

  color: #b42318;

  font-size: 13px;
}

.locked-content {
  display: none;

  animation: reveal .35s ease;
}

.locked-content.visible {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.protected-note {
  padding: 12px 14px;

  margin-bottom: 28px;

  border-left: 3px solid var(--green);

  background: #f5fbf7;

  color: #657067;

  font-size: 13px;
}


/* ================================
   Footer
================================ */

.site-footer {
  padding: 40px 30px;

  color: var(--soft-muted);

  text-align: center;
  font-size: 14px;

  background: #fff;
}


/* ================================
   Responsive
================================ */

@media (max-width: 950px) {

  .nav-links {
    gap: 18px;
  }

}


@media (max-width: 850px) {

  .nav-links {
    display: none;
  }

  .portfolio-hero {
    min-height: auto;
  }

  .portfolio-hero-inner {
    padding-top: 100px;
    padding-bottom: 75px;
  }

  .portfolio-hero h1 {
    font-size: 54px;
  }

  .highlight-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    gap: 36px;
  }

  .fact-panel {
    position: static;
  }

  .portfolio-section {
    padding: 75px 22px;
  }

  .research-card {
    min-height: 320px;
  }

  .research-group-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

}


@media (max-width: 500px) {

  .nav-inner {
    padding: 0 20px;
  }

  .portfolio-hero-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  .portfolio-hero h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 31px;
  }

  .card-body {
    padding: 24px;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .research-bottom {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .research-card {
    min-height: 365px;
    padding: 25px;
  }

  .research-bottom {
    left: 25px;
    right: 25px;
  }

  .detail-body,
  .detail-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .lock-panel {
    padding: 24px;
  }

  .lock-form {
    flex-direction: column;
  }

  .lock-form button {
    width: 100%;
  }

}
