:root {
  --ivory: #fffdf7;
  --white: #ffffff;
  --mist: #f3f8f6;
  --glacier: #eaf7ff;
  --sage: #e8f3e6;
  --sun: #fff4c7;
  --teal: #2ec4b6;
  --coral: #ff7a59;
  --yellow: #ffd166;
  --sky: #4ea8de;
  --lavender: #cdb4db;
  --slate: #243238;
  --muted: #627179;
  --border: #e5e9e7;
  --shadow: 0 22px 60px rgba(36, 50, 56, .09);
  --shadow-strong: 0 30px 90px rgba(36, 50, 56, .14);
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Aptos", "Inter", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 209, 102, .18), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(78, 168, 222, .12), transparent 24rem),
    linear-gradient(180deg, var(--ivory), #fbfffd 52%, var(--ivory));
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; text-underline-offset: .22em; }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a, input, textarea { outline-color: var(--teal); outline-offset: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 20;
  background: var(--slate);
  color: var(--white);
  padding: .7rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 247, .82);
  border-bottom: 1px solid rgba(229, 233, 231, .72);
}
.wordmark {
  display: inline-flex;
  gap: .3rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}
.wordmark span:first-child { color: var(--slate); }
.wordmark span:last-child { color: #317f77; }
.site-nav { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; }
.site-nav a, .header-cta, .button, .filter-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}
.site-nav a {
  padding: .55rem .75rem;
  color: var(--muted);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--slate);
  background: var(--white);
  border-color: var(--border);
}
.header-cta {
  padding: .65rem .9rem;
  background: var(--slate);
  color: var(--white);
  white-space: nowrap;
}
.nav-toggle { display: none; }

.hero, .page-hero, .section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 3rem;
  align-items: center;
}
.hero h1, .page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Aptos Display", "Manrope", "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(2.35rem, 4.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-text, .page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}
.eyebrow {
  margin: 0 0 .85rem;
  color: #317f77;
  font-weight: 850;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .12em;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .project-card:hover, .writing-card:hover, .bento-card:hover, .lens-card:hover {
  transform: translateY(-3px);
}
.button.primary { background: var(--teal); color: #082f2c; box-shadow: 0 10px 24px rgba(46, 196, 182, .25); }
.button.secondary { background: var(--white); border-color: var(--border); color: var(--slate); }
.button.ghost { background: transparent; border-color: rgba(36, 50, 56, .18); }

.sector-radar {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(229, 233, 231, .86);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 20%, transparent 34%),
    conic-gradient(from 210deg, rgba(46, 196, 182, .2), rgba(78, 168, 222, .18), rgba(255, 209, 102, .2), rgba(205, 180, 219, .16), rgba(46, 196, 182, .2)),
    linear-gradient(135deg, rgba(234, 247, 255, .75), rgba(255, 244, 199, .68));
  box-shadow: var(--shadow-strong);
}
.sector-radar::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background-image:
    linear-gradient(rgba(36, 50, 56, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 50, 56, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, transparent 0 19%, black 20%);
  opacity: .45;
  pointer-events: none;
}
.radar-ring {
  position: absolute;
  border: 1px dashed rgba(36, 50, 56, .19);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.ring-one { width: 72%; aspect-ratio: 1; animation: slow-spin 36s linear infinite; }
.ring-two { width: 46%; aspect-ratio: 1; animation: slow-spin 24s linear infinite reverse; opacity: .68; }
.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  min-height: 122px;
  display: grid;
  place-items: center;
  gap: .25rem;
  text-align: center;
  border-radius: 24px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(229, 233, 231, .9);
  box-shadow: 0 22px 54px rgba(36, 50, 56, .13);
  z-index: 2;
}
.radar-core strong { font-size: 1.08rem; }
.radar-core span { color: var(--muted); font-size: .84rem; line-height: 1.35; max-width: 130px; }
.sector-node, .capability-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .58rem .78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(229, 233, 231, .92);
  box-shadow: 0 14px 34px rgba(36, 50, 56, .08);
  font-weight: 800;
  font-size: .92rem;
  animation: float-soft 5s ease-in-out infinite;
}
.capability-chip {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  color: #38555b;
  font-size: .82rem;
}
.node-energy { left: 11%; top: 16%; border-color: rgba(255, 209, 102, .65); }
.node-health { right: 9%; top: 20%; border-color: rgba(255, 122, 89, .48); animation-delay: -.8s; }
.node-auto { right: 11%; bottom: 20%; border-color: rgba(78, 168, 222, .55); animation-delay: -1.5s; }
.node-public { left: 9%; bottom: 22%; border-color: rgba(46, 196, 182, .5); animation-delay: -2s; }
.node-sustainability { left: 38%; bottom: 8%; border-color: rgba(96, 154, 91, .45); animation-delay: -2.7s; }
.chip-data { left: 38%; top: 9%; }
.chip-policy { left: 7%; top: 47%; }
.chip-people { right: 7%; top: 48%; }
.chip-delivery { left: 39%; bottom: 29%; }

.knowledge-map {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(229, 233, 231, .86);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(234, 247, 255, .78), rgba(255, 244, 199, .55)),
    var(--white);
  box-shadow: var(--shadow);
}
.knowledge-map::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(36, 50, 56, .17);
  border-radius: 999px;
  animation: slow-spin 30s linear infinite;
}
.map-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(36, 50, 56, .12);
  font-weight: 900;
  font-size: 1.35rem;
}
.orbit-tag, .map-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(36, 50, 56, .08);
  font-weight: 750;
  font-size: .9rem;
}
.tag-ai { left: 10%; top: 18%; border-color: rgba(46, 196, 182, .35); }
.tag-sustainability { right: 8%; top: 24%; border-color: rgba(96, 154, 91, .35); }
.tag-public { left: 12%; bottom: 24%; border-color: rgba(78, 168, 222, .35); }
.tag-circular { right: 12%; bottom: 18%; border-color: rgba(255, 122, 89, .35); }
.tag-learning { left: 45%; top: 8%; border-color: rgba(205, 180, 219, .5); }
.card-one { left: 8%; top: 46%; background: var(--sun); }
.card-two { right: 12%; top: 48%; background: var(--sage); }
.card-three { left: 28%; bottom: 8%; background: var(--glacier); }

.section-heading { max-width: 760px; margin-bottom: 1.6rem; }
.section-heading h2, .section h2, .contact-panel h2 {
  margin: 0 0 .7rem;
  font-family: "Aptos Display", "Manrope", "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.soft-band {
  max-width: none;
  background: rgba(243, 248, 246, .65);
  border-block: 1px solid rgba(229, 233, 231, .7);
}
.soft-band > * { max-width: var(--max); margin-inline: auto; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.bento-card, .project-card, .writing-card, .contact-form, .contact-card, .cv-main, .cv-side, .note-article, .lens-card, .lens-detail {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(36, 50, 56, .055);
}
.bento-card {
  min-height: 220px;
  padding: 1.35rem;
  transition: transform .2s ease;
}
.bento-card.large { grid-column: span 2; background: linear-gradient(135deg, var(--white), var(--glacier)); }
.card-kicker, .status-row span, .writing-card span, .note-label {
  color: #317f77;
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.bento-card h3, .project-card h2, .project-card h3, .writing-card h3 {
  margin: .4rem 0 .55rem;
  line-height: 1.18;
  letter-spacing: 0;
}
.bento-card p, .project-card p, .writing-card p, .cv-snapshot p { color: var(--muted); }

.sector-lens-section {
  padding-top: 4rem;
}
.lens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.4rem 0 1rem;
}
.lens-card {
  min-height: 168px;
  padding: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lens-card span {
  display: inline-flex;
  margin-bottom: .7rem;
  color: #317f77;
  font-weight: 900;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .1em;
}
.lens-card strong {
  display: block;
  line-height: 1.25;
}
.lens-card.is-active {
  border-color: rgba(46, 196, 182, .7);
  background: linear-gradient(135deg, var(--white), rgba(234, 247, 255, .72));
  box-shadow: 0 18px 44px rgba(46, 196, 182, .13);
}
.lens-detail {
  padding: 1.45rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(243, 248, 246, .88)),
    var(--white);
}
.lens-detail h3 {
  margin: 0 0 .7rem;
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
  line-height: 1.12;
}
.lens-detail p:last-child { margin-bottom: 0; color: var(--muted); }

.project-grid, .writing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 1.25rem;
  transition: transform .2s ease, opacity .2s ease;
}
.project-card[hidden] { display: none; }
.status-row { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; }
.tag-row { display: flex; gap: .45rem; flex-wrap: wrap; margin: auto 0 1.1rem; }
.tag-row span, .category-strip span {
  padding: .38rem .58rem;
  border-radius: var(--radius);
  background: var(--mist);
  border: 1px solid var(--border);
  color: #38555b;
  font-size: .86rem;
  font-weight: 700;
}
.tag-row.vertical { margin-top: .8rem; }
.project-card a, .text-link { font-weight: 850; color: #197d74; }

.split-section, .article-layout, .cv-layout, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}
.timeline { display: grid; gap: .7rem; }
.timeline-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
}
.timeline-item span { display: block; color: #317f77; font-weight: 850; }
.timeline-item strong { display: block; margin: .15rem 0; }
.timeline-item em { color: var(--muted); font-style: normal; }
.timeline-item.is-active { border-color: rgba(46, 196, 182, .65); box-shadow: 0 10px 26px rgba(46, 196, 182, .13); }

.writing-card { min-height: 230px; padding: 1.2rem; text-decoration: none; transition: transform .2s ease; }
.cv-snapshot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.stat-grid span {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.stat-grid strong { display: block; color: var(--slate); font-size: 1.65rem; line-height: 1; }
.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), var(--sun));
  box-shadow: var(--shadow);
}

.filter-bar, .category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.4rem;
}
.filter-button {
  min-height: 42px;
  padding: .5rem .75rem;
  background: var(--white);
  border-color: var(--border);
  cursor: pointer;
}
.filter-button.is-active { background: var(--slate); color: var(--white); border-color: var(--slate); }

.article-layout { grid-template-columns: 280px minmax(0, 1fr); }
.article-meta {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: .7rem;
}
.article-meta span {
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: .92rem;
}
.article-body, .note-article {
  max-width: 820px;
  padding: 2rem;
}
.article-body h2, .note-article h2, .cv-main h2, .cv-side h2, .contact-card h2 {
  margin-top: 1.6rem;
  font-size: 1.6rem;
}
.article-body h2:first-child, .note-article h2:first-child, .cv-main h2:first-child, .cv-side h2:first-child { margin-top: 0; }
.article-body p, .article-body li, .note-article p { font-size: 1.05rem; }

.note-article { margin-bottom: 1rem; }
.cv-layout { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }
.cv-main, .cv-side, .contact-form, .contact-card { padding: 1.5rem; }
.cv-item { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.cv-item h3 { margin-bottom: .2rem; }
.cv-item p { color: var(--muted); margin-top: 0; }

.contact-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.contact-form { display: grid; gap: .65rem; }
.contact-form input, .contact-form textarea, .ask-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: .82rem .9rem;
  color: var(--slate);
}
.contact-form textarea { resize: vertical; }
.small-note { color: var(--muted); font-size: .95rem; }

.ask-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--slate);
  color: var(--white);
  padding: .8rem 1rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.ask-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 13;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(680px, calc(100vh - 7rem));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.ask-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.ask-close {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--mist);
  padding: .35rem .55rem;
  cursor: pointer;
}
.ask-form { display: grid; gap: .7rem; }
.ask-results { margin-top: 1rem; display: grid; gap: .7rem; }
.ask-result { border-top: 1px solid var(--border); padding-top: .7rem; }
.ask-result a { font-weight: 850; color: #197d74; }

.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--yellow));
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.site-footer nav, .footer-links { display: flex; flex-wrap: wrap; gap: .85rem; margin: .9rem 0; }
.site-footer a { color: var(--slate); font-weight: 700; }
.site-footer small { display: block; max-width: 820px; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes float-soft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    padding: .55rem .75rem;
    cursor: pointer;
  }
  .site-nav, .header-cta { display: none; }
  .site-header.nav-open .site-nav {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .5rem;
  }
  .site-header.nav-open .header-cta { display: inline-flex; grid-column: 1 / -1; justify-content: center; }
  .hero, .split-section, .article-layout, .cv-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 4rem; }
  .knowledge-map, .sector-radar { min-height: 420px; }
  .bento-grid, .project-grid, .writing-grid, .stat-grid, .lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-meta { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { padding: .8rem 1rem; }
  .hero, .page-hero, .section { padding: 3.5rem 1rem; }
  .hero h1, .page-hero h1 { font-size: clamp(2.05rem, 10vw, 2.75rem); }
  .bento-grid, .project-grid, .writing-grid, .stat-grid, .lens-grid { grid-template-columns: 1fr; }
  .bento-card.large { grid-column: auto; }
  .knowledge-map, .sector-radar { min-height: 390px; }
  .orbit-tag, .map-card { font-size: .76rem; max-width: 150px; }
  .sector-node, .capability-chip { font-size: .72rem; min-height: 34px; padding: .4rem .55rem; max-width: 150px; }
  .radar-core { width: 138px; min-height: 96px; }
  .radar-core strong { font-size: .9rem; }
  .radar-core span { font-size: .72rem; }
  .node-energy { left: 7%; top: 14%; }
  .node-health { right: 5%; top: 17%; }
  .node-auto { right: 5%; bottom: 22%; }
  .node-public { left: 5%; bottom: 24%; }
  .node-sustainability { left: 30%; bottom: 7%; }
  .chip-data { left: 36%; top: 7%; }
  .chip-policy { left: 5%; top: 47%; }
  .chip-people { right: 5%; top: 48%; }
  .chip-delivery { left: 31%; bottom: 31%; }
  .card-three { left: 18%; }
  .article-body, .note-article, .cv-main, .cv-side, .contact-form, .contact-card { padding: 1.1rem; }
  .ask-toggle { left: auto; right: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem); }
  .ask-panel { left: 1rem; right: 1rem; bottom: 4.7rem; width: auto; }
}
