:root {
  color-scheme: dark;
  --canvas: #090c14;
  --ink: #f2f5fb;
  --muted: #a3aec2;
  --line: rgba(187, 203, 232, .14);
  --cyan: #9be9fa;
  --violet: #c6b3fa;
  --font: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 30% at 78% 10%, rgba(66, 102, 153, .17), transparent 80%),
    radial-gradient(ellipse 48% 28% at 4% 40%, rgba(45, 120, 139, .12), transparent 80%),
    radial-gradient(ellipse 50% 34% at 100% 55%, rgba(97, 65, 154, .11), transparent 80%);
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 28px;
  padding: 12px 24px;
  margin-top: 24px;
  background: rgba(20, 27, 41, .78);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(233, 243, 255, .04), 0 12px 40px rgba(0, 0, 0, .14);
}
@supports (backdrop-filter: blur(16px)) {
  .header { background: rgba(20, 27, 41, .55); backdrop-filter: blur(16px); }
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 26px; letter-spacing: -1.3px; font-weight: 700; }
.brand-dot { color: var(--cyan); }
.header nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 13px; color: #c0c9d9; }
.header nav a { padding-block: 14px; transition: color .2s; }
.header nav a:hover, .footer a:hover { color: var(--cyan); }
.header-cta {
  padding: 11px 16px;
  background: rgba(154, 212, 233, .08);
  border: 1px solid rgba(168, 227, 245, .26);
  border-radius: 11px;
  font-size: 12px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: #d0effa;
  min-height: 44px;
  transition: background .2s, border-color .2s;
}
.header-cta span { font-size: 19px; }
.header-cta:hover { background: rgba(154, 212, 233, .15); border-color: rgba(168, 227, 245, .55); }
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 32px; align-items: center; padding: 102px 0 98px; }
.eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: 10px; letter-spacing: 1.9px; font-weight: 500; line-height: 1.7; margin: 0; display: flex; align-items: center; gap: 10px; color: #9daac2; }
.hero-copy > .eyebrow { color: #b2c1d8; }
.square { width: 6px; height: 6px; background: var(--cyan); border-radius: 1px; box-shadow: 0 0 13px rgba(155, 233, 250, .45); }
.hero h1 { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: clamp(38px, 4.45vw, 64px); font-weight: 500; line-height: 1.38; letter-spacing: -2.3px; margin: 27px 0 23px; }
.hero h1 > span { display: block; color: #b6d9f2; }
@supports (background-clip: text) {
  .hero h1 > span { background: linear-gradient(105deg, #9be9fa, #c6b3fa 92%); color: transparent; background-clip: text; }
}
.period { color: var(--violet); }
.hero-description { font-size: 15px; line-height: 1.95; color: var(--muted); margin: 0; }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 31px; }
.primary-link {
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 11px;
  background: linear-gradient(120deg, #b4eaf5, #bdcaf4);
  border: 1px solid rgba(240, 249, 255, .3);
  box-shadow: 0 3px 22px rgba(149, 192, 236, .12), inset 0 1px 0 rgba(255, 255, 255, .4);
  color: #132132;
  font-size: 14px;
  font-weight: 600;
  transition: box-shadow .2s, transform .2s;
}
.primary-link span { font-size: 21px; }
.primary-link:hover { box-shadow: 0 4px 30px rgba(149, 192, 236, .24); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: #c0c9db; min-height: 44px; }
.text-link:hover { color: var(--cyan); }
.down { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(170, 187, 215, .25); border-radius: 50%; font-size: 18px; }
.hero-meta { color: #8795ac; font-size: 9px; letter-spacing: 2px; margin: 34px 0 0; }
.hero-meta span { margin-inline: 9px; color: #55657b; }
.hero-art { position: relative; height: 350px; width: 100%; max-width: 360px; justify-self: end; }
.hero-art::before { content: ''; position: absolute; inset: 25px -25px; background: radial-gradient(ellipse at center, rgba(97, 152, 199, .16), transparent 67%); }
.art-grid { position: absolute; inset: -10px; background-image: radial-gradient(#5a779e .7px, transparent .7px); background-size: 22px 22px; opacity: .4; mask-image: radial-gradient(ellipse, black 20%, transparent 70%); }
.orbit { position: absolute; border: 1px solid rgba(133, 177, 220, .24); border-radius: 50%; width: 316px; height: 316px; left: calc(50% - 158px); top: 20px; transform: rotate(-33deg) scaleY(.53); }
.orbit-two { transform: rotate(54deg) scaleY(.62); border-color: rgba(181, 162, 232, .24); }
.art-center {
  position: absolute;
  width: 136px;
  height: 136px;
  top: 107px;
  left: calc(50% - 68px);
  display: grid;
  place-items: center;
  transform: rotate(-9deg);
  border-radius: 32px;
  border: 1px solid rgba(168, 210, 252, .57);
  background: linear-gradient(135deg, rgba(173, 219, 255, .29), rgba(44, 77, 112, .22) 40%, rgba(174, 145, 225, .2));
  box-shadow: inset 0 1px 1px rgba(238, 250, 255, .6), inset 0 -10px 28px rgba(52, 86, 129, .4), 8px 10px 0 -1px #132335, 8px 10px 0 0 rgba(107, 154, 211, .25), 0 0 60px rgba(139, 178, 223, .12);
}
.art-center::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(193, 219, 252, .13); border-radius: 24px; }
.art-center svg { width: 80px; height: 80px; stroke-width: 2; color: #b7eaf6; filter: drop-shadow(0 0 11px rgba(158, 215, 250, .35)); }
.art-node { position: absolute; background: linear-gradient(140deg, rgba(55, 75, 105, .65), rgba(26, 32, 53, .87)); border: 1px solid rgba(152, 182, 226, .28); display: grid; place-items: center; border-radius: 17px; width: 54px; height: 54px; box-shadow: inset 0 1px 0 rgba(233, 246, 255, .09), 0 10px 22px rgba(0, 0, 0, .17); }
.node-water { top: 34px; left: 66px; color: #a3e3f0; transform: rotate(-12deg); }
.node-water svg { width: 27px; height: 27px; }
.node-code { right: 0; top: 160px; color: #d4c1ff; transform: rotate(10deg); font-size: 19px; font-weight: 500; }
.node-plus { left: 12px; bottom: 40px; color: #a4bde6; font-size: 28px; transform: rotate(7deg); }
.art-coordinate { position: absolute; left: 62px; bottom: 6px; font-size: 8px; letter-spacing: 2px; color: #8c9fbe; }
.art-label { position: absolute; top: 2px; right: 0; font-size: 8px; line-height: 1.7; color: #8c9fbe; letter-spacing: 1.5px; }
.projects { padding-top: 20px; scroll-margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; gap: 24px; }
.section-heading h2 { font-family: 'IBM Plex Sans Thai', sans-serif; font-weight: 500; font-size: 27px; margin: 8px 0 0; letter-spacing: -.6px; }
.section-note { font-size: 11px; line-height: 1.9; text-align: right; color: #9aa7bd; }
.project-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 22px; }
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 23px;
  padding: 31px 32px 22px;
  border: 1px solid rgba(159, 194, 224, .2);
  background: linear-gradient(155deg, rgba(59, 113, 139, .22), rgba(22, 40, 57, .65) 48%, rgba(16, 25, 39, .82));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(225, 247, 255, .06), 0 14px 40px rgba(0, 0, 0, .14);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project::before { content: ''; position: absolute; width: 200px; height: 1px; left: 40px; top: 0; background: linear-gradient(90deg, transparent, rgba(177, 235, 255, .65), transparent); pointer-events: none; }
.project:hover { transform: translateY(-5px); border-color: rgba(151, 206, 237, .4); box-shadow: inset 0 1px 0 rgba(225, 247, 255, .1), 0 20px 45px rgba(0, 0, 0, .24); }
.portfolio-project { background: linear-gradient(150deg, rgba(109, 81, 153, .25), rgba(42, 34, 65, .57) 42%, rgba(20, 24, 39, .84)); border-color: rgba(189, 167, 230, .22); }
.portfolio-project::before { background: linear-gradient(90deg, transparent, rgba(225, 194, 255, .6), transparent); }
.portfolio-project:hover { border-color: rgba(189, 167, 230, .4); }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.project-category { display: flex; align-items: center; gap: 9px; font-size: 9px; letter-spacing: 1.8px; color: #b6d4e4; }
.portfolio-project .project-category { color: #cec0e8; }
.project-category svg { width: 21px; height: 21px; }
.project-number { color: #a2b2c9; font-size: 11px; }
.project h3 { font-size: 30px; font-weight: 500; line-height: 1.4; letter-spacing: -.8px; margin: 0 0 10px; }
.portfolio-project h3 { font-size: 36px; line-height: 1.2; letter-spacing: -1.5px; }
.project-title-dot { color: var(--violet); }
.project-description { font-size: 13px; line-height: 1.85; color: #aebed2; margin: 0; }
.portfolio-project .project-description { color: #bab3cf; }
.flood-visual { position: relative; height: 256px; margin: 24px -32px 0; overflow: hidden; }
.flood-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(16, 25, 39, .4)); pointer-events: none; }
.map-plane { position: absolute; inset: 10px -10px -30px; transform: perspective(620px) rotateX(36deg) rotateZ(-17deg) scale(1.05); }
.map-drawing { height: 100%; width: 100%; stroke: none; }
.map-buildings { fill: rgba(112, 196, 219, .11); stroke: #6b95b0; stroke-width: 1.1; }
.map-roads { fill: none; stroke: #607993; stroke-width: 2; }
.canal { fill: none; stroke: #1a4d66; stroke-width: 20; }
.map-route { fill: none; stroke: #8be8fa; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(120, 229, 255, .42)); }
.map-ring { fill: none; stroke: #8be8fa; stroke-width: 1; opacity: .5; }
.map-chip { position: absolute; z-index: 1; left: 34px; bottom: 43px; display: flex; align-items: center; gap: 9px; background: rgba(35, 55, 74, .94); color: #daedf6; border: 1px solid rgba(153, 204, 232, .3); padding: 10px 13px; border-radius: 9px; font-size: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
@supports (backdrop-filter: blur(10px)) { .map-chip { background: rgba(35, 55, 74, .7); backdrop-filter: blur(10px); } }
.map-chip > span:last-child { margin-left: 18px; font-size: 16px; }
.chip-dot { height: 6px; width: 6px; background: #8be8fa; border-radius: 50%; box-shadow: 0 0 10px rgba(139, 232, 250, .4); }
.map-mode { position: absolute; right: 32px; top: 11px; display: flex; align-items: center; gap: 10px; font-size: 9px; border: 1px solid rgba(144, 182, 208, .24); border-radius: 7px; padding: 8px 10px; color: #b8d5e6; background: rgba(22, 37, 54, .75); }
.map-mode i { height: 10px; border-left: 1px solid rgba(144, 182, 208, .3); }
.visual-note { position: absolute; z-index: 1; right: 32px; bottom: 15px; color: #a1b7cb; font-size: 9px; }
.project-bottom { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(158, 196, 219, .15); padding-top: 19px; margin-top: auto; position: relative; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { border: 1px solid rgba(164, 195, 222, .15); background: rgba(125, 171, 210, .04); color: #b7c6d7; border-radius: 6px; padding: 4px 7px; font-size: 9px; }
.project-action { display: flex; align-items: center; gap: 10px; font-size: 10px; color: #d4e8f4; flex-shrink: 0; }
.round-arrow { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 50%; background: rgba(156, 220, 243, .1); border: 1px solid rgba(156, 220, 243, .27); color: #b7eaf6; font-size: 23px; transition: transform .2s, background .2s; }
.project:hover .round-arrow { transform: rotate(7deg); background: rgba(156, 220, 243, .19); }
.portfolio-project .project-bottom { border-color: rgba(178, 161, 212, .15); }
.portfolio-project .tags span { border-color: rgba(178, 161, 212, .17); color: #c7bed9; }
.portfolio-project .round-arrow { border-color: rgba(195, 168, 242, .3); background: rgba(195, 168, 242, .09); color: #d3bcfa; }
.portfolio-visual { height: 256px; position: relative; margin-top: 24px; overflow: hidden; }
.case-sheet { position: absolute; inset: 4px 15px -30px 17px; padding: 18px 22px; background: linear-gradient(145deg, rgba(63, 59, 88, .8), rgba(26, 30, 47, .94)); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(231, 227, 255, .13), 0 15px 25px rgba(0, 0, 0, .24); transform: rotate(-6deg); border: 1px solid rgba(172, 158, 212, .29); }
.sheet-header { display: flex; justify-content: space-between; font-size: 7px; letter-spacing: 1.2px; color: #c0b8d5; border-bottom: 1px solid rgba(196, 185, 226, .22); padding-bottom: 10px; }
.sheet-code { display: block; font-size: 8px; letter-spacing: 1.4px; margin: 18px 0 10px; color: #b3a4cd; }
.sheet-title { font-family: 'Space Grotesk', sans-serif; display: block; font-size: 40px; font-weight: 500; line-height: 1.05; letter-spacing: -2px; color: #e9e4f5; }
.sheet-title span { color: #baa4ed; }
.sheet-line { height: 1px; background: rgba(196, 185, 226, .22); margin: 15px 0 10px; }
.sheet-footer { display: flex; justify-content: space-between; color: #b7aacd; font-size: 6px; letter-spacing: 1.3px; line-height: 1.7; }
.sheet-footer svg { height: 35px; width: 35px; stroke: #bfaee3; stroke-width: 1; }
.sheet-stamp { position: absolute; right: 6px; top: 93px; border: 1px solid rgba(196, 176, 232, .37); border-radius: 50%; width: 72px; height: 72px; display: grid; place-content: center; text-align: center; font-size: 7px; letter-spacing: 1px; line-height: 1.6; transform: rotate(15deg); color: #cfc0ed; background: #302c49; box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.project-directory { display: flex; gap: 30px; align-items: center; padding: 25px 4px; margin-top: 10px; border-bottom: 1px solid var(--line); color: #a2b1c8; }
.project-directory > .eyebrow { font-size: 9px; margin-right: auto; color: #8b9ab3; }
.project-directory a { min-height: 44px; align-items: center; font-size: 12px; display: flex; gap: 17px; }
.project-directory a:hover { color: var(--cyan); }
.about { display: flex; gap: 32px; align-items: center; padding: 68px 4px; }
.about-mark { font-family: Arial, sans-serif; font-size: 73px; color: #a8b5de; line-height: 1; }
.about .eyebrow { font-size: 9px; color: #8b9ab3; }
.about h2 { font-size: 27px; font-weight: 500; margin: 10px 0; letter-spacing: -.8px; }
.about p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: #9eacc2; margin: 0; }
.about-link { display: flex; gap: 28px; align-items: center; border-bottom: 1px solid rgba(173, 190, 215, .3); padding: 12px 0; margin-left: auto; font-size: 12px; white-space: nowrap; min-height: 44px; color: #c2cde1; }
.about-link:hover { color: var(--cyan); }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 4px 36px; font-size: 10px; color: #9aa8c0; }
.footer-brand { font-size: 20px; color: #e0e7f3; gap: 0; }
.footer > a:last-child { display: flex; align-items: center; min-height: 44px; gap: 10px; }
.skip { position: fixed; top: 15px; transform: translateY(-200%); left: 15px; z-index: 100; background: #192c43; color: #f2f5fb; padding: 12px; border: 1px solid var(--cyan); border-radius: 8px; }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-script { text-align: center; font-size: 13px; }
.no-script a { text-decoration: underline; }
::selection { background: #badcf4; color: #102031; }
@media (min-width: 1440px) { .hero { padding-top: 110px; padding-bottom: 106px; } }
@media (max-width: 1020px) {
  .wrap { width: calc(100% - 56px); }
  .header { gap: 20px; padding-inline: 20px; }
  .header nav { gap: 20px; font-size: 12px; }
  .hero { grid-template-columns: 1.8fr 1fr; gap: 8px; padding: 80px 0; }
  .hero h1 { font-size: 45px; letter-spacing: -1.7px; }
  .hero-art { transform: scale(.86); transform-origin: right center; }
  .orbit { width: 260px; height: 260px; left: calc(50% - 130px); top: 44px; }
  .project { padding-inline: 24px; }
  .flood-visual { margin-inline: -24px; }
  .project-description { font-size: 12px; }
  .project-action { font-size: 0; }
  .project-directory { gap: 20px; }
}
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .portfolio-visual { max-width: 460px; width: 100%; align-self: center; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 70px; padding: 10px 14px; margin-top: 16px; gap: 12px; border-radius: 16px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .header nav { display: none; }
  .header-cta { font-size: 10px; padding: 8px 10px; gap: 8px; min-height: 44px; border-radius: 9px; }
  .header-cta span { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding: 62px 0 54px; }
  .hero h1 { font-size: clamp(31px, 6.1vw, 45px); line-height: 1.4; letter-spacing: -1.2px; margin: 24px 0 20px; }
  .hero-description { font-size: 14px; line-height: 1.9; max-width: 480px; }
  .hero-art { display: none; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .hero-actions { margin-top: 25px; gap: 18px; }
  .primary-link { padding: 11px 15px; font-size: 12px; min-height: 48px; gap: 17px; }
  .text-link { font-size: 11px; gap: 8px; }
  .down { width: 27px; height: 27px; }
  .hero-meta { font-size: 8px; letter-spacing: 1.5px; margin-top: 30px; }
  .hero-meta span { margin-inline: 6px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 22px; }
  .section-note { display: none; }
  .projects { padding-top: 6px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project { padding: 24px 24px 19px; border-radius: 20px; }
  .project-top { margin-bottom: 18px; }
  .project h3 { font-size: 28px; }
  .project-description { font-size: 13px; }
  .flood-visual { height: 226px; margin-top: 17px; }
  .portfolio-visual { height: 226px; margin-top: 20px; }
  .project-category { font-size: 8px; }
  .project-number { font-size: 10px; }
  .portfolio-project h3 { font-size: 33px; }
  .case-sheet { max-width: 360px; right: 20px; left: 20px; margin: auto; }
  .sheet-stamp { right: 7%; top: 154px; width: 58px; height: 58px; font-size: 6px; }
  .sheet-title { font-size: 34px; }
  .tags span { font-size: 9px; }
  .project-action { font-size: 0; }
  .project-directory { align-items: start; flex-wrap: wrap; gap: 6px 20px; padding: 22px 0; }
  .project-directory > .eyebrow { width: 100%; font-size: 8px; padding-bottom: 5px; }
  .project-directory a { font-size: 11px; gap: 8px; }
  .about { display: grid; grid-template-columns: 48px 1fr; padding: 42px 0; gap: 20px 18px; }
  .about-mark { font-size: 48px; align-self: flex-start; padding-top: 17px; }
  .about > div:nth-child(2) { flex: 1; min-width: 0; }
  .about h2 { font-size: 22px; }
  .about p:not(.eyebrow) { font-size: 12px; }
  .about-link { grid-column: 2; justify-self: start; margin-left: 0; font-size: 12px; padding: 4px 0 10px; }
  .footer { gap: 6px 12px; flex-wrap: wrap; font-size: 9px; padding: 22px 0 25px; }
  .footer > a:last-child { width: 100%; }
  .desktop-break { display: none; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .header { flex-wrap: wrap; justify-content: center; gap: 10px; padding-block: 12px; }
  .header .brand { margin-right: auto; }
  .header-cta { width: 100%; justify-content: space-between; }
  .hero { padding-top: 46px; }
  .hero-actions { gap: 15px; }
  .hero h1 { font-size: 29px; letter-spacing: -1.15px; }
  .project { padding-inline: 20px; }
  .flood-visual { margin-inline: -20px; }
  .project-description { font-size: 12px; }
  .map-chip { left: 22px; font-size: 9px; }
  .tags span { padding-inline: 5px; font-size: 8px; }
  .sheet-title { font-size: 32px; }
  .about h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .project:hover, .primary-link:hover { transform: none; }
  .project:hover .round-arrow { transform: none; }
}

@media (forced-colors: active) {
  .hero h1 > span { background: none; color: CanvasText; }
}
