:root {
  --ink: #0b1715;
  --ink-soft: #132522;
  --paper: #f3f6f1;
  --white: #ffffff;
  --text: #172522;
  --muted: #64736f;
  --line: #d6ded9;
  --mint: #79ffc4;
  --green: #25c987;
  --cyan: #77d9ff;
  --amber: #f2ad61;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--mint); color: var(--ink); }

.section-shell,
.header-inner,
.footer-inner {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--ink);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader.hidden { opacity: 0; visibility: hidden; }
.loader p {
  margin: 0;
  color: #a9bbb5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.loader-emblem { position: relative; width: 104px; height: 104px; }
.loader-emblem > img { width: 100%; height: 100%; }
.loader-node-ring {
  position: absolute;
  inset: 8px;
  animation: loaderOrbit 2.8s linear infinite;
}

.loader-node-ring span {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #effff8;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(121, 255, 196, 0.75);
}

.loader-node-ring span:nth-child(1) { top: 1px; left: 1px; }
.loader-node-ring span:nth-child(2) { top: 32px; right: -10px; background: var(--cyan); }
.loader-node-ring span:nth-child(3) { bottom: -10px; left: 32px; background: #c8f5ff; }
@keyframes loaderOrbit { to { transform: rotate(360deg); } }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #e9f4f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 23, 21, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.course-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
}
.course-identity img { width: 42px; height: 42px; flex: 0 0 auto; }
.course-identity b { color: #80948e; font-weight: 600; }

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

.header-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.header-link:hover { color: #ffffff; background: rgba(121, 255, 196, 0.1); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 122px 0 54px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f4fbf8;
  background:
    linear-gradient(90deg, rgba(11, 23, 21, 0.98) 0%, rgba(11, 23, 21, 0.88) 39%, rgba(11, 23, 21, 0.3) 70%, rgba(11, 23, 21, 0.92) 100%),
    radial-gradient(circle at 75% 30%, rgba(37, 201, 135, 0.13), transparent 33%),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 255, 196, 0.7), transparent);
}

.hero-inner {
  position: relative;
  width: min(1380px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(640px, 1.22fr);
  align-items: stretch;
}

.hero-copy { position: relative; z-index: 2; padding-left: max(0px, calc((100% - 1240px) / 2)); }
.eyebrow,
.section-label {
  margin-bottom: 28px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 32px;
  font-size: clamp(4rem, 6.7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.hero h1 span,
.course-section h2 span,
.projects-section h2 span,
.closing-section h2 span {
  color: var(--mint);
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 20px;
  color: #b6c8c2;
  font-size: clamp(1.02rem, 1.45vw, 1.26rem);
}
.hero-note { max-width: 620px; margin: 0; color: #71877f; font-size: 0.91rem; }

.hero-visual {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}

.building-stage {
  position: relative;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  transform: none;
}
.building-stage::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -2%;
  left: 7%;
  height: 13%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.68), transparent 70%);
  filter: blur(12px);
}
.building-stage > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 38px 46px rgba(0, 0, 0, 0.28)); }

.sensor-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #eefff8;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(121, 255, 196, 0.12), 0 0 22px rgba(121, 255, 196, 0.9);
  animation: sensorPulse 2.7s ease-in-out infinite;
}
.sensor-dot::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(121, 255, 196, 0.3);
  border-radius: 50%;
  animation: sensorRing 2.7s ease-out infinite;
}
.s1 { left: 38.7%; top: 10.1%; }
.s2 { left: 62.2%; top: 27.3%; animation-delay: -0.4s; }
.s3 { left: 70.7%; top: 30.6%; animation-delay: -0.8s; }
.s4 { left: 45.7%; top: 45.4%; animation-delay: -1.2s; }
.s5 { left: 9%; top: 49.8%; animation-delay: -1.6s; }
.s6 { left: 60.5%; top: 56.3%; animation-delay: -2s; }
.s7 { left: 78.4%; top: 58.4%; animation-delay: -2.4s; }
.s8 { left: 42.3%; top: 81.9%; animation-delay: -2.75s; }
@keyframes sensorPulse { 50% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(121, 255, 196, 0.07), 0 0 28px rgba(121, 255, 196, 1); } }
@keyframes sensorRing { 0% { transform: scale(0.55); opacity: 0.75; } 80%, 100% { transform: scale(1.55); opacity: 0; } }

.course-section { padding: 140px 0 120px; background: var(--paper); }
.section-intro,
.projects-intro {
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  gap: 90px;
  align-items: end;
}
.section-intro h2,
.projects-intro h2,
.closing-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.section-intro h2 span { color: #14865b; }
.section-intro > p,
.projects-intro > p,
.closing-detail > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.workflow {
  position: relative;
  margin: 88px 0 74px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}
.workflow li {
  min-width: 0;
  min-height: 150px;
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid var(--line);
}
.workflow li:last-child { border-right: 0; }
.workflow li > span { color: #14865b; font-size: 1.34rem; font-weight: 850; line-height: 1; }
.workflow b { display: block; margin-bottom: 8px; font-size: 0.78rem; letter-spacing: 0.08em; }
.workflow small { display: block; color: #7c8b86; font-size: 0.67rem; line-height: 1.45; }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-card {
  min-height: 335px;
  padding: 30px;
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  background: var(--white);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.principle-card:hover { transform: translateY(-5px); border-color: #9ecab6; box-shadow: 0 20px 45px rgba(25, 52, 44, 0.08); }
.principle-card h3 { margin-bottom: 10px; font-size: 1.45rem; letter-spacing: -0.025em; }
.principle-card > p:last-child { color: var(--muted); font-size: 0.9rem; }
.card-kicker { margin: 23px 0 8px; color: #14865b; font-size: 0.65rem; font-weight: 850; letter-spacing: 0.16em; }
.principle-icon { position: relative; width: 72px; height: 72px; }

.sensor-icon { border: 1px solid #b7ccc2; border-radius: 50%; }
.sensor-icon span { position: absolute; inset: 26px; border-radius: 50%; background: #14865b; box-shadow: 0 0 18px rgba(20, 134, 91, 0.35); }
.sensor-icon i { position: absolute; inset: 11px; border: 1px dashed #85ae9b; border-radius: 50%; animation: iconSpin 9s linear infinite; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

.neural-icon,
.flexibility-icon { overflow: hidden; border: 1px solid #b7ccc2; border-radius: 8px; background: #f6faf7; }
.neural-icon {
  background:
    linear-gradient(32deg, transparent 48.5%, rgba(20, 134, 91, 0.38) 49%, rgba(20, 134, 91, 0.38) 51%, transparent 51.5%),
    linear-gradient(-32deg, transparent 48.5%, rgba(56, 152, 190, 0.38) 49%, rgba(56, 152, 190, 0.38) 51%, transparent 51.5%),
    #f6faf7;
}
.neural-icon::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #14865b;
  box-shadow: 0 0 15px rgba(20, 134, 91, 0.4);
  transform: translate(-50%, -50%);
}
.neural-icon::after { content: ""; position: absolute; inset: 19px; border: 1px solid rgba(20, 134, 91, 0.28); border-radius: 50%; }
.neural-icon span, .neural-icon i, .neural-icon b, .neural-icon em {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3898be;
  box-shadow: 0 0 9px rgba(56, 152, 190, 0.35);
  animation: neuralPulse 2.8s ease-in-out infinite;
}
.neural-icon span { top: 9px; left: 14px; }
.neural-icon i { top: 9px; right: 14px; animation-delay: -0.7s; }
.neural-icon b { right: 14px; bottom: 9px; animation-delay: -1.4s; }
.neural-icon em { bottom: 9px; left: 14px; animation-delay: -2.1s; }
@keyframes neuralPulse { 50% { opacity: 0.4; transform: scale(0.8); } }

.flexibility-icon { display: grid; place-items: center; }
.flexibility-icon svg { width: 100%; height: 100%; }
.flexibility-icon path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-axis { stroke: #b7c7bf; stroke-width: 1.2; }
.load-curve, .flex-curve { stroke-width: 2.3; stroke-dasharray: 8 5; animation: flexibilityFlow 9s linear infinite; }
.load-curve { stroke: #3898be; }
.flex-curve { stroke: #14865b; stroke-dasharray: 5 4; animation-direction: reverse; animation-duration: 12s; }
@keyframes flexibilityFlow { to { stroke-dashoffset: -100; } }

.projects-section { padding: 140px 0; color: #eef8f4; background: var(--ink-soft); }
.projects-section .section-label { color: var(--mint); }
.projects-intro > p { color: #91a59f; }
.project-grid { margin-top: 68px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  position: relative;
  min-height: 410px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
}
.project-card:hover { border-color: rgba(121, 255, 196, 0.45); background: rgba(255, 255, 255, 0.055); }
.project-card-active { background: linear-gradient(145deg, rgba(121, 255, 196, 0.09), rgba(255, 255, 255, 0.035)); }
.project-number { display: flex; justify-content: space-between; align-items: flex-start; color: #748982; font-size: 0.62rem; letter-spacing: 0.14em; }
.project-number b { color: #b4cbc4; font-size: 2.2rem; line-height: 0.9; letter-spacing: -0.04em; }
.project-card h3 { margin: 20px 0 5px; font-size: 1.45rem; }
.project-card p { margin-bottom: 0; color: #80958f; font-size: 0.86rem; }
.project-action { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--mint); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.13em; }
.project-action.muted { color: #61756f; }
.project-diagram {
  position: relative;
  height: 155px;
  margin: 26px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}
.project-diagram i { width: 30px; border: 1px solid rgba(121, 255, 196, 0.35); background: linear-gradient(180deg, rgba(121, 255, 196, 0.12), rgba(119, 217, 255, 0.02)); }
.project-diagram i:nth-child(1) { height: 48%; }
.project-diagram i:nth-child(2) { height: 75%; }
.project-diagram i:nth-child(3) { height: 60%; }
.project-diagram i:nth-child(4) { height: 90%; }
.d2 i:nth-child(1), .d4 i:nth-child(3) { height: 82%; }
.d2 i:nth-child(3), .d5 i:nth-child(2) { height: 94%; }
.d3 i:nth-child(1), .d6 i:nth-child(3) { height: 67%; }
.d3 i:nth-child(4), .d4 i:nth-child(1) { height: 52%; }
.d5 i:nth-child(4), .d6 i:nth-child(2) { height: 72%; }

.closing-section { padding: 128px 0; color: #eef8f4; background: var(--ink); }
.closing-inner { display: grid; grid-template-columns: 1fr; }
.closing-section .section-label { color: var(--mint); }
.closing-section h2 { max-width: 950px; color: #eef8f4; }
.closing-section h2 span { color: var(--mint); }
.closing-detail { margin-top: 42px; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; }
.closing-detail > p { max-width: 700px; color: #a5b8b1; }
.closing-detail a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--mint);
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

footer { padding: 30px 0 38px; color: #799089; background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; font-size: 0.7rem; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #d8e7e2; font-weight: 850; letter-spacing: 0.06em; }
.footer-brand img { width: 34px; height: 34px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.65, 0.2, 1); }
.reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 0.82fr 1.18fr; }
  .section-intro, .projects-intro { grid-template-columns: 1fr 0.8fr; gap: 55px; }
}

@media (max-width: 980px) {
  .hero { padding-top: 112px; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-copy { padding-left: 0; }
  .hero-visual { height: 500px; }
  .building-stage { width: min(830px, 122%); max-width: none; height: auto; transform: none; }
  .section-intro, .projects-intro { grid-template-columns: 1fr; gap: 34px; }
  .workflow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid #b9c8c0; }
  .workflow li { min-height: 90px; padding: 18px 22px; border-right: 0; }
  .principle-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .section-shell, .header-inner, .footer-inner { width: calc(100% - 30px); }
  .header-inner { min-height: 66px; }
  .course-identity { font-size: 0.7rem; line-height: 1.25; }
  .course-identity img { width: 36px; height: 36px; }
  .course-identity b { display: block; }
  .header-nav { gap: 0; }
  .header-link { width: auto; height: auto; justify-content: center; overflow: visible; padding: 8px 6px; border: 0; border-radius: 999px; font-size: 0.63rem; white-space: nowrap; }
  .hero { min-height: auto; padding: 108px 0 42px; }
  .hero-inner { width: calc(100% - 30px); }
  .eyebrow { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 4.8rem); }
  .hero-lead { font-size: 1rem; }
  .hero-note br { display: none; }
  .hero-visual { height: 370px; }
  .building-stage { width: 132%; transform: translate(0, -3.4rem); }
  .sensor-dot { width: 10px; height: 10px; }
  .course-section, .projects-section { padding: 96px 0; }
  .section-intro h2, .projects-intro h2, .closing-section h2 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
  .workflow { margin: 62px 0 54px; }
  .principle-grid, .project-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 300px; }
  .project-card { min-height: 390px; }
  .closing-section { padding: 92px 0; }
  .closing-detail { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .loader { display: none; }
}


.water-platform-section { padding: 104px 0; background: var(--paper); }
.water-platform-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  gap: 90px;
  align-items: end;
}
.water-platform-layout h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.water-platform-layout h2 span { color: #14865b; }
.water-platform-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}
.water-platform-action {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid #14865b;
  color: #0c6a46;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}
.water-platform-action:hover { color: #084e35; border-color: #084e35; }
.water-platform-action span { font-size: 1rem; }

@media (max-width: 980px) {
  .water-platform-layout { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .water-platform-section { padding: 76px 0; }
  .water-platform-layout h2 { font-size: clamp(2.65rem, 12vw, 4.2rem); }
}
