/* Shared public surfaces and the research homepage. */
:root {
  color-scheme: light;
  --ink: var(--kk-paper, #faf8f4);
  --paper: var(--kk-forest, #17211c);
  --surface: #f2efe9;
  --surface-soft: #e9e5dc;
  --card: #fffdf9;
  --muted: #49554d;
  --quiet: #58645c;
  --gold: var(--kk-terracotta, #b64728);
  --gold-soft: #f6e7df;
  --cyan: #315242;
  --cyan-soft: #e3ebe6;
  --border-subtle: #e4dfd5;
  --border-strong: #cfcac0;
  --shadow-sm: 0 2px 9px #28312408;
  --shadow-md: 0 8px 24px -12px #28312421;
  --container: 1168px;
}
html { font-family: var(--kk-sans, system-ui, sans-serif); }
body { background: var(--ink); }
h1, h2, h3 { font-family: var(--kk-display, Georgia, serif); font-weight: 500; letter-spacing: -.035em; }
button, input, textarea { font-family: inherit; }
::selection { background: #e8c0ad; color: #17211c; }
:focus-visible { outline: 3px solid #a64225; outline-offset: 4px; }
.skip-link { z-index: 210; }
section[id], article[id] { scroll-margin-top: 96px; }

.site-header { z-index: 100; background: rgba(250,248,244,.94); border-bottom: 1px solid var(--border-subtle); }
.header-inner { flex-wrap: nowrap; min-height: 76px; gap: clamp(10px, 2vw, 30px); }
.wordmark { min-width: 0; }
.brand-lockup-header, .brand-lockup-footer {
  width: max-content; max-width: 100%; height: auto; overflow: visible; justify-content: flex-start; gap: 10px;
}
.brand-lockup-header img, .brand-lockup-footer img {
  flex: 0 0 auto; width: 46px; height: 46px; max-width: none; object-fit: contain; object-position: center; filter: none;
}
.brand-type { display: grid; gap: 5px; }
.brand-name { font: 600 26px/1 var(--kk-display, Georgia, serif); letter-spacing: -.055em; white-space: nowrap; }
.brand-line { color: var(--quiet); font: 500 8px/1.25 var(--kk-mono, monospace); letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.main-nav { flex-wrap: wrap; justify-content: center; gap: 1px; width: auto; order: 0; background: none; border: 0; border-radius: 0; padding: 0; overflow: visible; }
.main-nav a { padding: 8px clamp(6px, .9vw, 13px); color: var(--muted); font-size: .87rem; font-weight: 600; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold); background: var(--surface); box-shadow: none; }
.mobile-menu-toggle { display: none; }
.header-actions .button { background: var(--paper); border-color: var(--paper); color: #fffdf9; white-space: nowrap; }
.header-actions .button:hover { background: var(--gold); border-color: var(--gold); }
.language-trigger { min-height: 38px; min-width: 40px; background: transparent; border-radius: 50%; padding: 7px; box-shadow: none; }
.language-trigger img { width: 21px; height: 15px; border-radius: 2px; }
.language-options { background: var(--card); }
.button { border-radius: 999px; box-shadow: none; }
.button:hover { box-shadow: var(--shadow-sm); }
.button-secondary { background: transparent; }

.future-hero {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .95fr); align-items: center;
  gap: clamp(36px, 6vw, 90px); padding-block: clamp(48px, 6.2vw, 92px);
}
.future-hero:has(.lab-snapshot[hidden]) { grid-template-columns: minmax(0, 700px); }
.future-copy { min-width: 0; }
.lab-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 23px; padding: 5px 11px; border: 1px solid #cedbd1; border-radius: 99px; background: var(--cyan-soft); color: #2d4a3b; font: 500 .7rem/1.5 var(--kk-mono, monospace); }
.lab-label > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.future-copy h1 { font-size: clamp(2.95rem, 4.25vw, 3.75rem); line-height: 1.08; letter-spacing: -.048em; }
.future-copy h1 span { display: block; }
.future-gradient, .accent { color: var(--gold); font-style: italic; }
.future-lead { max-width: 53ch; margin: 22px 0 26px; color: var(--muted); font-size: clamp(1rem, 1.33vw, 1.16rem); line-height: 1.68; }
.future-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.future-actions .button { min-height: 46px; padding: 10px 22px; }
.future-actions .button:first-child { gap: 13px; }
.research-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; width: fit-content; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border-subtle); font: 500 .7rem/1.7 var(--kk-mono, monospace); color: var(--quiet); }
.research-meta span + span::before { display: inline-block; content: ''; width: 4px; height: 4px; margin-right: 12px; vertical-align: middle; border-radius: 50%; background: #9cafa0; }
.research-meta [lang=ksw] { font: 600 .85rem/1.7 "Myanmar Text", sans-serif; color: var(--cyan); }
.woven-divider, .lab-snapshot::before {
  --weave: repeating-linear-gradient(90deg,#bd4a2c 0 9px,transparent 9px 12px,#58675c 12px 15px,transparent 15px 18px,#dcb397 18px 22px,transparent 22px 26px);
  background: var(--weave);
}
.woven-divider { height: 4px; opacity: .64; }
.lab-snapshot { position: relative; align-self: center; min-width: 0; padding: 23px; border: 1px solid #ded9cf; border-radius: 19px; background: #f1eee7; box-shadow: 0 12px 35px -24px #353c2f5c; }
.lab-snapshot::before { position: absolute; content: ''; height: 3px; top: 0; inset-inline: 15px; }
.snapshot-heading { margin-bottom: 13px; }
.eyebrow, .product-type { background: transparent; border: 0; border-radius: 0; padding: 0; color: var(--quiet); font: 500 .67rem/1.55 var(--kk-mono, monospace); letter-spacing: .105em; text-transform: uppercase; }
.snapshot-heading .eyebrow { margin: 0 0 4px; color: var(--quiet); }
.snapshot-heading h2 { font-size: 1.53rem; letter-spacing: -.035em; }
.snapshot-tracks { display: grid; gap: 6px; max-height: 244px; overflow-y: auto; padding: 3px; margin: -3px; }
.snapshot-tracks > a, .snapshot-tracks > button {
  position: relative; display: flex; align-items: center; width: 100%; gap: 12px; min-height: 49px; padding: 8px 13px;
  background: #f9f7f1; border: 1px solid transparent; border-radius: 11px; color: var(--paper); text-align: left; font: inherit; cursor: pointer;
}
.snapshot-tracks > button[aria-selected=true] { background: var(--card); border-color: #c68369; box-shadow: var(--shadow-sm); }
.snapshot-tracks > button:hover { border-color: #b7c1b5; }
.snapshot-tracks > button:focus-visible { outline-offset: 0; }
.snapshot-tracks svg { width: 31px; height: 31px; flex: none; padding: 6px; border-radius: 7px; background: #e5ebe3; stroke: #355442; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.snapshot-tracks button[aria-selected=true] svg { background: #f4e5dd; stroke: #a13e23; }
.snapshot-tracks > button::after { content: ''; width: 6px; height: 6px; flex: none; margin-left: auto; border-radius: 50%; background: #98a69a; }
.snapshot-tracks > button[aria-selected=true]::after { background: var(--gold); }
.snapshot-tracks > button span { min-width: 0; }
.snapshot-tracks strong, .snapshot-tracks small { display: block; line-height: 1.45; overflow-wrap: anywhere; }
.snapshot-tracks strong { font-size: .9rem; font-weight: 650; }
.snapshot-tracks small { color: var(--quiet); font-size: .72rem; }
.snapshot-sample { margin-top: 13px; padding: 12px 16px; border-radius: 11px; background: var(--paper); color: #fffaf0; }
.sample-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 3px; font: 500 .6rem/1.55 var(--kk-mono, monospace); text-transform: uppercase; letter-spacing: .065em; }
.sample-status { color: #f2a27c; text-align: right; }
.sample-art { height: 40px; }
.sample-art > * { display: none; }
[data-sample=data] .sample-wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 100%; }
.sample-wave i { width: 3px; flex: 1 1 3px; max-width: 5px; height: 20%; border-radius: 4px; background: #e7e8d8; }
.sample-wave i:nth-child(2n) { height: 54%; background: #e38b63; }
.sample-wave i:nth-child(3n) { height: 76%; }
.sample-wave i:nth-child(4n) { height: 40%; background: #9caf95; }
.sample-wave i:nth-child(5n) { height: 91%; }
.sample-wave i:nth-child(7n) { height: 32%; }
[data-sample=ocr] .sample-scan { position: relative; display: grid; place-items: center; height: 100%; }
.sample-scan span { border: 1px dashed #e69c79; padding-inline: 12px; font: 1.16rem/1.5 "Myanmar Text", sans-serif; }
[data-sample=write] .sample-glyph { height: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; font: 1.3rem/1.5 "Myanmar Text", sans-serif; }
.sample-glyph span:nth-child(2) { color: #edb196; }
[data-sample=other] .sample-art { display: none; }
.sample-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: #f3eee3; font-size: .71rem; font-weight: 600; }
.sample-link:hover { color: #f2a27c; }
@media (prefers-reduced-motion: no-preference) {
  .sample-wave i { animation: sample-pulse 1.5s ease-in-out 2 alternate; }
  .sample-wave i:nth-child(2n) { animation-delay: -.6s; }
  .sample-wave i:nth-child(3n) { animation-delay: -.25s; }
  @keyframes sample-pulse { 0%, 100% { transform: scaleY(.65); } 50% { transform: scaleY(1); } }
}


.section { padding-block: clamp(46px, 5.6vw, 80px); }
.section + .section { border-top-color: var(--border-subtle); }
.section-heading { margin-bottom: 27px; }
.section-heading .eyebrow, .about-copy .eyebrow { margin-bottom: 9px; color: #925138; }
.section-heading h2, .about-copy h2, .contact-grid h2 { font-size: clamp(2rem, 3.35vw, 3.05rem); }
.section-heading-split { align-items: end; }
.section-lead { font-size: .98rem; }
.projects .section-heading { align-items: center; }
.note-bar { display: block; padding: 13px 16px; margin: 0; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--surface); }
.note-bar strong { display: inline; padding: 0; border: 0; background: none; font: 650 .78rem/1.5 var(--kk-sans, sans-serif); text-transform: none; letter-spacing: 0; }
.note-bar p { display: inline; font-size: .79rem; line-height: 1.55; }
.note-bar strong::after { content: ' · '; color: var(--gold); }
[data-layout=cards] .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: stretch; }
[data-layout=cards] .project-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px,2.1vw,30px); background: var(--card); border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: none; }
[data-layout=cards] .project-card[hidden] { display: none; }
.project-card:hover { border-color: #bfc6bc; box-shadow: var(--shadow-md); }
.project-card-visual { order: -1; padding: 0; justify-content: flex-start; }
.brand-lockup-project { width: auto; height: auto; max-width: 100%; aspect-ratio: auto; justify-content: flex-start; overflow: visible; }
.brand-lockup-project img, .project-card-visual > img { width: auto; height: 64px; max-width: 100%; object-fit: contain; object-position: left center; }
.project-card-main { flex: 1; gap: 12px; }
.project-card h2 { font-size: 1.69rem; }
.project-top { gap: 6px 10px; }
.badge { min-height: 0; padding: 4px 8px; font: 500 .66rem/1.5 var(--kk-mono, monospace); letter-spacing: -.01em; }
.badge-dev { background: #f1eee7; border-color: #e8e3d9; color: #514338; }
.badge-learning { background: var(--cyan-soft); border-color: #d4e0d4; color: var(--cyan); }
.project-domain { color: var(--quiet); font: 500 .67rem/1.5 var(--kk-mono, monospace); }
.project-summary, .product-desc { font-size: .93rem; line-height: 1.65; }
.project-links { padding: 0; border: 0; background: transparent; }
.project-card-main:has(.project-more:not([open])) .project-fact,
.project-card-main:has(.project-more:not([open])) .project-links:has(.project-link-actions:empty) { display: none; }
.project-more { margin-top: auto; padding-top: 16px; }
.project-more summary { color: var(--paper); font-size: .83rem; }
.project-more summary::after { content: '↗'; border-radius: 0; background: none; color: var(--gold); font-weight: 600; }
.project-more[open] summary::after { content: '−'; }
.project-more p { font-size: .86rem; }
.products { background: #f2efe9; }
.product-catalog { grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 17px; }
.product-item { min-width: 0; padding: 21px; border: 1px solid var(--border-subtle); border-radius: 15px; background: var(--card); box-shadow: var(--shadow-sm); justify-content: flex-start; }
.product-item:hover { transform: translateY(-2px); border-color: #bfc6bc; }
.product-item-header { gap: 8px; align-items: center; }
.product-logo-pill { width: 62px; height: 44px; }
.product-logo-pill img { object-position: left center; }
.product-item h3 { font-size: 1.48rem; }
.product-item-body { gap: 8px; }
.product-item-footer { margin-top: auto; }
.product-item-footer .button-small, .project-links .button-small { padding: 7px 12px; min-height: 36px; font-size: .79rem; }
.filter-chip { font-weight: 600; background: var(--ink); box-shadow: none; }
.filter-chip[aria-pressed=true] { border-color: var(--paper); background: var(--paper); color: #fffaf0; box-shadow: none; }
.principle, .support-card { background: var(--card); border: 1px solid var(--border-subtle); border-radius: 14px; box-shadow: none; }
.principle > span, .support-index { width: auto; height: auto; justify-content: start; border: 0; background: none; color: var(--gold); font: 500 .71rem/1.5 var(--kk-mono, monospace); }
.principle h3, .support-card h3 { font-size: 1.55rem; }
.about-panel { background: #e6ece5; border-color: #d3ded3; border-radius: 16px; }
.about-body .large-copy { font: 500 clamp(1.35rem,2.15vw,1.8rem)/1.35 var(--kk-display, Georgia, serif); }
.support-card-highlight { color: #fbf8ef; background: var(--paper); }
.support-card-highlight h3 { color: #fffdf6; }
.support-card-highlight .support-index { color: #edb196; }
.support-card-highlight p { color: #d4ddcf; }
.support-card-highlight .button-disabled { background: #364239; border-color: #58685c; color: #f2eee2; }
.contact { background: var(--surface); }
.contact-card { border-radius: 16px; box-shadow: var(--shadow-sm); }
.contact-list > div { border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--border-subtle); padding-inline: 0; }
.site-footer { background: var(--ink); }
.footer-brand { align-items: start; flex-direction: column; gap: 10px; }
.footer-brand p, .footer-nav a { font-size: .82rem; }
.floating-top { position: fixed; z-index: 60; right: max(18px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--card); color: var(--paper); font-size: 1.25rem; box-shadow: var(--shadow-md); }
.floating-top:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 1000px) {
  .future-hero { gap: 30px; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); }
  .future-copy h1 { font-size: clamp(2.85rem,5.7vw,3.6rem); }
  .lab-snapshot { padding: 18px; }
  .brand-line { display: none; }
  .section-heading-split { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); }
}
@media (max-width: 800px) {
  .header-inner { gap: 10px; }
  .future-hero { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .future-copy h1 { font-size: clamp(2.8rem,7.6vw,3.7rem); }
  .future-lead { max-width: 56ch; }
  .lab-snapshot { max-width: 560px; width: 100%; justify-self: start; }
  [data-layout=cards] .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading-split { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .note-bar { max-width: 65ch; }
  .brand-lockup-header img { width: 40px; height: 40px; }
  .header-actions { gap: 6px; }
  .main-nav a { padding-inline: 5px; }
}
@media (max-width: 760px) {
  .header-inner { position: relative; min-height: 64px; }
  .site-header .main-nav { position: absolute; display: none; inset: 100% 0 auto; max-height: calc(100dvh - 75px); overflow-y: auto; background: var(--card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 8px; box-shadow: var(--shadow-md); }
  .site-header .main-nav.is-open { display: grid; justify-content: stretch; }
  .main-nav a { padding: 10px 12px; border-radius: 8px; }
  .mobile-menu-toggle { order: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--paper); border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--card); font-size: 21px; cursor: pointer; }
  .header-actions { margin-left: auto; }
  section[id],article[id] { scroll-margin-top: 80px; }
}
@media (max-width: 580px) {
  .container { width: calc(100% - 36px); }
  .future-hero { padding-block: 41px 37px; }
  .lab-label { margin-bottom: 17px; }
  .future-copy h1 { font-size: clamp(2.12rem,9vw,3.15rem); }
  .research-meta { margin-top: 21px; }
  .future-lead { margin: 16px 0 20px; }
  [data-layout=cards] .project-grid { grid-template-columns: minmax(0,1fr); }
  .brand-lockup-header { gap: 7px; }
  .brand-type { gap: 3px; }
  .brand-line { display: block; font-size: 6.7px; }
  .brand-name { font-size: 24px; }
  .section { padding-block: 43px; }
  .section-heading h2, .about-copy h2, .contact-grid h2 { font-size: 2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (min-width: 481px) and (max-width: 580px) { .brand-line { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .product-item:hover, .button:hover { transform: none; }
}

