/*
  LEARNING NOTE - COLOR SYSTEM
  Change these CSS variables to redesign the whole website.
  No edit panel is shown on the website body.
  Edit this code directly for learning.
*/
:root {
  --navy: #0b132b;
  --deep: #1c2541;
  --cyan: #00b4d8;
  --gold: #f4b400;
  --rose: #f43f5e;
  --violet: #7c3aed;
  --bg: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 24px 80px rgba(11, 19, 43, 0.14);
  --radius: 24px;
  --font: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  opacity: 1;
  transition: opacity 120ms ease;
}

body.page-leaving {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 56px);
  color: #fff;
  background: rgba(11, 19, 43, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  font-weight: 950;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.nav a {
  border-radius: 999px;
  padding: 9px 12px;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--gold);
}

.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--violet));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.nav a:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.site-preview {
  min-width: 0;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.editor-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hint,
.note-list {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.note-list {
  padding-left: 18px;
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--navy);
}

.page-hero {
  min-height: 620px;
}

.page-hero.no-photo {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
  text-align: center;
}

.page-hero.no-photo .button-row {
  justify-content: center;
}

.page-hero.no-photo .hero-text {
  margin-right: auto;
  margin-left: auto;
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--cyan) 30%, transparent), transparent 34%),
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--rose) 24%, transparent), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--deep));
}

.hero-copy,
.page-hero > div,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 7.2vw, 7rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
}

h1 .title-name {
  color: transparent;
  background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--cyan) 45%, #fff), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h3 {
  color: var(--navy);
  font-size: 1.22rem;
}

p {
  line-height: 1.72;
}

.hero-subtitle {
  color: #e2e8f0;
  font-size: clamp(1.1rem, 2vw, 1.48rem);
  font-weight: 850;
}

.hero-text {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  transition: 180ms ease;
}

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

.btn.primary {
  color: var(--navy);
  background: var(--cyan);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--cyan) 30%, transparent);
}

.btn.gold {
  color: var(--navy);
  background: var(--gold);
}

.btn.outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 30px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--cyan);
  font-size: 2.5rem;
  font-weight: 950;
}

.stat span {
  color: #475569;
  font-weight: 850;
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section.dark {
  color: #fff;
  background:
    radial-gradient(circle at 80% 0, color-mix(in srgb, var(--gold) 22%, transparent), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--deep));
}

.section.education-band {
  background:
    radial-gradient(circle at 80% 0, color-mix(in srgb, var(--gold) 22%, transparent), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--deep));
}

.section.education-band .section-head h2 {
  color: #fff;
}

.section.education-band .card {
  border-color: rgba(244, 180, 0, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 255, 0.96));
  box-shadow: 0 28px 80px rgba(0, 180, 216, 0.18);
  text-align: center;
}

.section.education-band .card h3 {
  color: var(--navy);
}

.section.education-band .card p {
  color: #475569;
  text-align: center;
}

.section-head {
  max-width: 920px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.dark .section-head p:not(.eyebrow),
.dark .card p {
  color: #cbd5e1;
}

.dark h2,
.dark h3 {
  color: #fff;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  justify-content: center;
}

.grid > * {
  flex: 1 1 280px;
}

.grid.three > * {
  max-width: 360px;
}

.grid.two > * {
  flex-basis: 300px;
  max-width: 560px;
}

.grid.two:has(> :only-child),
.grid.three:has(> :only-child),
.grid.four:has(> :only-child) {
  justify-content: center;
}

.grid.center-single > * {
  max-width: 560px;
}

.grid.four > * {
  flex-basis: 240px;
  max-width: 280px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
  transition: 180ms ease;
}

.card h3,
.card .eyebrow {
  text-align: center;
}

.card p {
  text-align: left;
}

.card .chart-insight {
  text-align: left;
}

.card .accent-line,
.card .badge {
  margin-right: auto;
  margin-left: auto;
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  content: "";
  opacity: 0;
  transition: 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--line));
  box-shadow: 0 30px 90px rgba(0, 180, 216, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #475569;
  line-height: 1.55;
}

.clean-list li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.accent-line {
  width: 58px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.wims-logo {
  display: grid;
  place-items: center;
  min-height: 300px;
  border-radius: 30px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wims-logo img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}

.project-card {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #047857;
  background: #ecfdf5;
  font-size: 0.76rem;
  font-weight: 950;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  font-weight: 950;
}

.footer {
  padding: 28px clamp(18px, 5vw, 72px);
  color: #cbd5e1;
  background: var(--navy);
  text-align: center;
  font-weight: 800;
}

/*
  DATA VISUALIZATION PAGE STYLES
  Edit chart data in app.js > siteData.dataViz.
  Edit visual colors in :root or siteData.colors.
*/
.viz-grid-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.viz-card-main {
  flex: 1 1 340px;
  max-width: 410px;
  min-height: 320px;
}

.chart-insight {
  margin-top: 12px;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--navy);
  background: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 850;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 132px 1fr 48px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 850;
}

.bar-row span:nth-child(2) {
  height: 13px;
  border-radius: 99px;
  background: #e2e8f0;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.project-visual.work-type .bar-row i {
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.project-visual.sector-type .bar-row i {
  background: linear-gradient(90deg, #16a34a, #00b4d8);
}

.project-visual.sector-type .chart-insight {
  background: #ecfdf5;
}

.project-visual .bar-row.color-1 i { background: linear-gradient(90deg, #00b4d8, #0b132b); }
.project-visual .bar-row.color-2 i { background: linear-gradient(90deg, #f4b400, #f97316); }
.project-visual .bar-row.color-3 i { background: linear-gradient(90deg, #16a34a, #22c55e); }
.project-visual .bar-row.color-4 i { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.project-visual .bar-row.color-5 i { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.project-visual .bar-row.color-6 i { background: linear-gradient(90deg, #dc2626, #fb7185); }
.project-visual .bar-row.color-7 i { background: linear-gradient(90deg, #0f766e, #2dd4bf); }

.columns {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 170px;
  margin-top: 18px;
  padding-top: 10px;
}

.col {
  display: grid;
  flex: 1;
  align-content: end;
  gap: 8px;
  height: 100%;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 850;
}

.col strong {
  color: var(--navy);
}

.col i {
  display: block;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--navy));
}

.chart-legend,
.network-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.chart-legend span,
.network-note span {
  border-radius: 12px;
  padding: 8px 10px;
  background: #f1f5f9;
}

.donut-wrap,
.gauge-wrap,
.radar-wrap {
  display: grid;
  place-items: center;
  min-height: 190px;
}

.donut {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
}

.donut::after {
  position: absolute;
  inset: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  content: "Services";
  font-weight: 950;
}

.donut-labels {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.donut-labels span::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.donut-labels span:nth-child(2)::before { background: var(--gold); }
.donut-labels span:nth-child(3)::before { background: var(--navy); }
.donut-labels span:nth-child(4)::before { background: #e2e8f0; }

.kpi-scorecard {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.kpi-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.kpi-value {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 950;
}

.kpi-progress {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 9px;
  border-radius: 99px;
  background: #e2e8f0;
}

.kpi-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.scatter {
  position: relative;
  height: 190px;
  margin-top: 22px;
  border-left: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.axis-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 24%, rgba(203, 213, 225, 0.45) 25%, transparent 26%, transparent 49%, rgba(203, 213, 225, 0.45) 50%, transparent 51%, transparent 74%, rgba(203, 213, 225, 0.45) 75%, transparent 76%),
    linear-gradient(to top, transparent 24%, rgba(203, 213, 225, 0.45) 25%, transparent 26%, transparent 49%, rgba(203, 213, 225, 0.45) 50%, transparent 51%, transparent 74%, rgba(203, 213, 225, 0.45) 75%, transparent 76%);
}

.axis-label {
  position: absolute;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.axis-label.x { right: 0; bottom: -24px; }
.axis-label.y { left: -4px; top: -18px; }

.dot {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--s, 14px);
  height: var(--s, 14px);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
}

.dot span {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.heat-days,
.hist-labels,
.box-labels {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.heat-days {
  grid-template-columns: repeat(7, 1fr);
  margin-top: 12px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.heatmap span {
  aspect-ratio: 1.2;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cyan) calc(var(--v) * 1%), #eef2f7);
}

.heat-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.heat-key i {
  display: block;
  width: 62px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7, var(--cyan));
}

.histogram {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 170px;
  margin-top: 18px;
}

.histogram span {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: var(--gold);
}

.histogram span::after {
  display: block;
  margin-top: -22px;
  color: var(--navy);
  content: attr(data-count);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.hist-labels {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 8px;
}

.boxplot {
  display: grid;
  place-items: center;
  height: 180px;
}

.boxplot svg {
  width: 100%;
  max-width: 360px;
}

.box-labels {
  grid-template-columns: repeat(5, 1fr);
  margin-top: -8px;
}

.map {
  position: relative;
  overflow: hidden;
  height: 190px;
  margin-top: 12px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(ellipse at 18% 38%, rgba(255, 255, 255, 0.2) 0 10%, transparent 11%),
    radial-gradient(ellipse at 50% 34%, rgba(255, 255, 255, 0.18) 0 18%, transparent 19%),
    radial-gradient(ellipse at 74% 48%, rgba(255, 255, 255, 0.2) 0 15%, transparent 16%),
    radial-gradient(ellipse at 52% 75%, rgba(255, 255, 255, 0.14) 0 8%, transparent 9%),
    linear-gradient(135deg, var(--navy), var(--deep));
  font-weight: 950;
}

.map-title {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 2;
  font-size: 0.9rem;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.map-pin i {
  display: block;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(244, 180, 0, 0.2);
}

.map-pin span {
  position: absolute;
  left: 14px;
  top: -7px;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--navy);
  background: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
}

.visited-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.visited-list span {
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--navy);
  background: #e0f7ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.radar-label {
  fill: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .hero,
  .page-hero,
  .split,
  .grid.three,
  .grid.two,
  .grid.four,
  .stats {
    grid-template-columns: 1fr;
  }

  .grid > *,
  .viz-card-main {
    flex-basis: 100%;
    max-width: 100%;
  }

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