@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{--ink:#1a3029;--sub:#697b6d;--forest:#152e29;--mint:#b6ddc6;--cream:#f7f7ef;--line:#dde5d9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}img{max-width:100%;display:block}.shell{width:min(1250px,88%);margin:auto}.header{position:absolute;z-index:3;left:0;right:0;top:0;color:#f5fbf5}.nav{height:88px;display:flex;align-items:center;gap:30px}.brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;letter-spacing:.12em;white-space:nowrap}.brand-mark{border:1px solid #a6d9b9;color:#a6d9b9;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:18px}.brand i{font-style:normal;font-weight:400;opacity:.7}.links{display:flex;align-items:center;gap:28px;margin-left:auto;font-size:12px;color:#e3efe5}.links a:hover,.links a[aria-current=page]{color:#a6e4bd}.login{border:1px solid #9bbb9f;border-radius:5px;padding:10px 15px;font-size:11px;white-space:nowrap}.menu-toggle{display:none;background:none;border:1px solid #8caf97;color:white;border-radius:5px;padding:8px 12px;margin-left:auto}.hero{background:#142a26;color:white}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,25,22,.97) 0%,rgba(10,29,25,.86) 39%,rgba(14,27,24,.17) 100%),url('/nekomori/lab.jpg') center/cover}.page-hero > .shell{position:relative;z-index:1}.eyebrow{display:flex;align-items:center;gap:12px;font-size:10px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#a7d3b5}.eyebrow:before{content:'';width:30px;height:1px;background:currentColor}.page-hero .hero-heading{font:400 clamp(53px,6.5vw,91px)/1.03 'DM Serif Display',Georgia,serif;letter-spacing:-.045em;margin:24px 0}.hero .hero-heading em,.intro .hero-heading em{color:#afdcbf;font-weight:400}.lead{max-width:445px;color:#d0dfd2;font-size:15px;line-height:1.85}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:25px;padding:15px 21px;background:#b9dec6;border-radius:5px;font-size:12px;font-weight:700;border:1px solid #b9dec6;color:#183a2b}.btn:hover{background:#d7f2df}.btn.ghost{background:transparent;color:#f3f8f2;border-color:#8aab95}.hero-bottom{margin-top:90px;font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:#b9d4bf}.hero-bottom span{margin-right:28px}.hero-bottom span:before{content:'✦';margin-right:8px}.section{padding:100px 0}.section.soft{background:#e7efe5}.section.dark{background:#1c3a30;color:#eef8ef}.split{display:flex;justify-content:space-between;gap:45px;align-items:end}.kicker{font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:#789884}.title{font:400 clamp(38px,4.5vw,58px)/1.1 'DM Serif Display',Georgia,serif;letter-spacing:-.035em;margin:16px 0 0}.body{line-height:1.9;color:var(--sub);font-size:14px}.split .body{max-width:395px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:45px}.card{border:1px solid var(--line);background:#fffefa;border-radius:8px;padding:28px;min-height:220px}.card .num,.meta{font-size:10px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:#829c88}.card h3{font:400 25px/1.15 'DM Serif Display',Georgia,serif;margin:38px 0 10px}.card p{font-size:13px;color:#718074;line-height:1.8}.card a{display:inline-block;font-size:12px;font-weight:700;margin-top:10px}.intro{background:#19362e;color:#fff}.intro:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#142d25ee,#19372ee0),url('/nekomori/lab.jpg') center 48%/cover}.intro .hero-heading{font-size:clamp(50px,6vw,78px);max-width:800px}.intro .lead{max-width:600px}.story{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.story img,.wide-image{border-radius:8px;width:100%;object-fit:cover;max-height:540px}.story .title{margin-bottom:23px}.quote{margin:28px 0;border-left:2px solid #80ad8a;padding-left:20px;font:italic 23px/1.45 'DM Serif Display',Georgia,serif}.badge{display:inline-block;background:#e8f0e5;color:#597f64;border-radius:30px;padding:7px 11px;font-size:9px;letter-spacing:.1em;font-weight:700;text-transform:uppercase}.team-picture{width:100%;height:390px;object-fit:cover;border-radius:8px}.portrait{min-height:240px}.portrait h3{font-size:32px;margin-top:32px}.journal-list{margin-top:46px;border-top:1px solid #d9e3d8}.entry{display:grid;grid-template-columns:150px 1fr 90px;gap:20px;align-items:start;padding:30px 0;border-bottom:1px solid #d9e3d8}.entry h3{font:400 27px 'DM Serif Display',Georgia,serif;margin:0 0 8px}.entry p{margin:0;max-width:660px;font-size:13px;color:var(--sub);line-height:1.8}.entry .arrow{font-size:20px;text-align:right;color:#82a890}.form-panel{background:#fffefa;border:1px solid #e2e9dd;border-radius:10px;padding:35px;max-width:440px}.form-panel h2{font:400 30px 'DM Serif Display',Georgia,serif;margin:0}.form-panel p{font-size:13px;color:#748276;line-height:1.8}.field{display:block;font-size:11px;font-weight:700;margin-top:20px;color:#5b6d61}.field input{display:block;width:100%;padding:14px;background:#f7f9f5;border:1px solid #e0e8dc;border-radius:5px;margin-top:9px}.disabled-button{width:100%;margin-top:24px;padding:14px;border:0;background:#a8bcb0;color:#f8fff9;border-radius:5px}.notice{font-size:11px;color:#718777;margin-top:16px}.footer{background:#132920;color:#b2c9b7;padding:38px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px;align-items:center}.footer-note{font-size:11px;color:#8ba293}.bottom-links{display:flex;gap:18px;font-size:11px}@media(max-width:800px){.shell{width:88%}.menu-toggle{display:block}.links{display:none;position:absolute;top:74px;left:6%;right:6%;padding:22px;background:#19352e;border:1px solid #4c6956;border-radius:8px;flex-direction:column;align-items:flex-start}.links.open{display:flex}.login{display:none}.hero:before{background:linear-gradient(90deg,#081916ef,#0b211ec2),url('/nekomori/lab.jpg') 62% center/cover}.hero .hero-heading{font-size:54px}.hero-bottom span{display:block;margin:10px 0}.section{padding:70px 0}.split{display:block}.cards{grid-template-columns:1fr}.card{min-height:unset}.card h3{margin-top:25px}.story{grid-template-columns:1fr;gap:32px}.team-picture{height:260px}.entry{grid-template-columns:1fr;gap:10px}.entry .arrow{display:none}.footer-inner{flex-direction:column;align-items:flex-start}.bottom-links{flex-wrap:wrap}}
@media(prefers-reduced-motion:no-preference){.btn,.card{transition:transform .2s,background .2s}.btn:hover,.card:hover{transform:translateY(-3px)}}

/* Navigation, research details, and small discoveries. */
.skip-link{position:absolute;left:1rem;top:-5rem;z-index:10;background:#fff;color:#183a2b;padding:.8rem 1rem;border-radius:4px}.skip-link:focus{top:1rem}
.links .mobile-only{display:none}
.research-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:45px}.research-area{scroll-margin-top:24px;border-top:2px solid #a8cbb1;padding:24px 3px}.research-area h3{font:400 26px/1.2 'DM Serif Display',Georgia,serif;margin:16px 0}.research-area p{color:var(--sub);font-size:13px;line-height:1.85}.research-area a{display:inline-block;margin-top:14px;font-weight:700;font-size:12px}.research-area a:hover,.bottom-links a:hover{color:#6f9f7b}
.footer-end{display:flex;align-items:center;gap:22px}.lab-secret{position:relative}.lab-secret summary{cursor:pointer;list-style:none;color:#9fc9a8;font-size:17px;line-height:1}.lab-secret summary::-webkit-details-marker,.mascot-secret summary::-webkit-details-marker{display:none}.lab-secret p{position:absolute;z-index:2;right:0;bottom:22px;width:225px;background:#e6f1e7;color:#294a37;border-radius:6px;padding:12px 14px;font-size:11px;line-height:1.6;box-shadow:0 6px 20px #0003}.mascot-secret{margin-top:21px;border-top:1px solid #e0e9df;padding-top:15px}.mascot-secret summary{cursor:pointer;list-style:none;color:#668f72;font-size:11px;font-weight:700}.mascot-secret p{font-size:12px;margin-bottom:0}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #8ecba4;outline-offset:4px;border-radius:3px}
@media(max-width:800px){.links .mobile-only{display:block}.research-grid{grid-template-columns:1fr}.research-area{padding-bottom:10px}.footer-end{align-items:flex-start;gap:18px}.bottom-links{max-width:270px}.lab-secret p{right:auto;left:-210px}}

/* A balanced header on wide screens, and one centered brand on mobile. */
.brand-mark svg{width:19px;height:19px;display:block;flex:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.nav{position:relative;justify-content:center}
.nav>.brand{position:absolute;left:50%;transform:translateX(-50%);z-index:2}
.nav .links{position:absolute;left:0;right:0;top:0;height:88px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:0;pointer-events:none}
.nav-left,.nav-right{display:flex;align-items:center;gap:26px;pointer-events:auto}
.nav .nav-cta{border:1px solid #9bbb9f;border-radius:5px;padding:10px 15px;color:#f2f8f1;white-space:nowrap}
.nav .nav-cta:hover{border-color:#c2e6ca;color:#c2e6ca}
@media(max-width:1050px){
 .nav>.brand{left:50%;transform:translateX(-50%)}
 .nav .menu-toggle{display:block;margin-left:auto}
 .nav .links{display:none;position:absolute;top:74px;left:0;right:0;height:auto;padding:14px 22px;background:#19352e;border:1px solid #4c6956;border-radius:8px;flex-direction:column;align-items:stretch;gap:0;pointer-events:auto;box-shadow:0 16px 36px #0004}
 .nav .links.open{display:flex}
 .nav-left,.nav-right{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .nav-left a,.nav-right a{display:block;padding:11px 0}
 .nav .nav-cta{padding:11px 13px;margin-top:7px;text-align:center}
}

/* Quiet interactions and discoveries, kept inside the existing visual language. */
.back-to-top[hidden]{display:none}
.back-to-top{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));z-index:5;min-width:67px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #a7cbb0;border-radius:999px;background:#f7fbf4;color:#224a32;box-shadow:0 8px 24px #12342521;font-size:11px;font-weight:700;cursor:pointer}
.back-to-top span:first-child{font-size:18px;line-height:1}
.back-to-top:hover{background:#e1f1e3}
.hero-discovery{position:absolute;z-index:2;right:0;bottom:28px;width:max-content;max-width:min(290px, 85vw)}
.hero-discovery summary{list-style:none;cursor:pointer;display:inline-flex;min-height:42px;align-items:center;gap:8px;padding:9px 14px;border:1px solid #c5e8ce70;border-radius:999px;background:#102a21d9;color:#e1f5e4;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;box-shadow:0 8px 24px #0002}
.hero-discovery summary::-webkit-details-marker,.lab-note summary::-webkit-details-marker{display:none}
.hero-discovery summary span:first-child{color:#beeccc;font-size:15px}
.hero-discovery[open] summary{border-color:#c5e8ce;background:#1e4431}
.hero-discovery p{position:absolute;right:0;bottom:43px;width:230px;margin:0 0 10px;padding:13px 15px;border:1px solid #cce9d0;border-radius:7px;background:#f1f7ee;color:#294b35;font-size:12px;line-height:1.65;box-shadow:0 8px 24px #0003}
.lab-note{max-width:370px;margin-top:26px;border-top:1px solid #cfdfd1;border-bottom:1px solid #cfdfd1}
.lab-note summary{cursor:pointer;list-style:none;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#4e785b;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.lab-note summary span:last-child{font-size:15px;letter-spacing:0}
.lab-note-content{border-left:2px solid #a4ceb0;margin:1px 0 18px;padding-left:15px}
.lab-note-content p{margin:0 0 9px;color:#536d5a;font:italic 17px/1.5 'DM Serif Display',Georgia,serif}
.lab-note-content span{color:#789884;font-size:10px;letter-spacing:.08em}
.mascot-secret summary{min-height:32px;display:flex;align-items:center}
.mascot-secret[open] summary,.lab-note[open] summary{color:#2a6942}
.research-area,.entry,[id$='-note']{scroll-margin-top:28px}
.story img{height:auto;aspect-ratio:2 / 1}
.story img[src$='team.jpg']{aspect-ratio:1672 / 941}
.team-picture{aspect-ratio:1672 / 941}
@media (hover:hover) and (pointer:fine){
 .card{transition:transform .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
 .card:hover{transform:translateY(-3px);border-color:#bdd9c2;box-shadow:0 10px 30px #274d3210}
 .card a,.research-area a{transition:transform .2s ease,color .2s ease}
 .card a:hover,.research-area a:hover{transform:translateX(3px);color:#477a57}
}
@media (prefers-reduced-motion:no-preference){
 .hero-discovery[open] summary span:first-child{animation:discovery-glow .5s ease-out}
 @keyframes discovery-glow{50%{text-shadow:0 0 12px #ccffcf;transform:scale(1.18)}}
}
@media(max-width:1050px){
 .nav .links{display:flex;visibility:hidden;opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s}
 .nav .links.open{display:flex;visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto;transition-delay:0s}
 .nav-left a,.nav-right a{min-height:44px;display:flex;align-items:center}
 .nav .nav-cta{justify-content:center}
}
@media(max-width:800px){
 .back-to-top{right:18px;bottom:max(18px,env(safe-area-inset-bottom))}
 .card a,.research-area a{min-height:44px;display:inline-flex;align-items:center}
 .lab-secret summary{display:grid;place-items:center;min-width:44px;min-height:44px;margin:-13px}
}
@media (prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* Stable independent columns and bounded content on all viewport sizes. */
.story > *,.card,.research-area,.form-panel{min-width:0}
.card,.research-area,.lab-note-content,.mascot-secret{overflow-wrap:break-word}
.form-panel{width:100%}
.field input{min-width:0}
.hero-discovery p{max-width:calc(100vw - 32px);overflow-wrap:break-word}
.lab-secret p{max-width:calc(100vw - 32px);overflow-wrap:break-word}
@media(min-width:801px){
 .story{align-items:start}
 .story > img{align-self:start}
 .mascot-cards{align-items:start}
 .mascot-cards .portrait{min-height:320px}
 .mascot-cards .portrait > p{min-height:5.4em}
}

/* Keep scroll geometry stable while replacing content. */
html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}
#main-content:focus {
  outline: none;
}
/* The disclosure occupies a separate row after the illustration. */
.lab-story {
  row-gap: 0;
}
.lab-story .lab-note {
  grid-column: 1;
  width: 100%;
  margin-top: 4px;
}
@media (max-width: 800px) {
  .lab-story {
    row-gap: 24px;
  }
  .lab-story .lab-note {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lab-note[open] .lab-note-content {
    animation: note-appear 160ms ease-out;
  }
  @keyframes note-appear {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Leave a clear lane for the floating control through the footer. */
.footer-inner {
  padding-inline-end: calc(78px + env(safe-area-inset-right));
  flex-wrap: wrap;
}
.footer-end {
  position: relative;
  min-width: 0;
}
.bottom-links {
  flex-wrap: wrap;
}
.lab-secret {
  position: static;
}
.lab-secret p {
  left: auto;
  right: 0;
  bottom: 100%;
  max-width: calc(88vw - 78px);
}

/* Anchor each opening to the same top edge and crop the shared art alike. */
.page-hero {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 760px;
  padding: 296px 0 32px;
  overflow: hidden;
}
.page-hero > .shell {
  display: grid;
  margin: 0 auto;
}
.hero::before, .intro::before {
  background-position: center, center 48%;
}
.hero-content {
  display: flex;
  flex-direction: column;
}
/* Size the intro text rows against the Home copy at the current width and font. */
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy > .eyebrow {
  grid-area: 1 / 1;
  align-self: start;
}
.hero-copy > .hero-heading {
  grid-area: 2 / 1;
  align-self: start;
}
.hero-copy-reference {
  visibility: hidden;
}
.page-hero .hero-heading {
  max-width: 800px;
  font-size: clamp(50px, 6vw, 78px);
}
.hero-copy > .lead {
  grid-area: 3 / 1;
  max-width: 600px;
  margin: 0;
}
.hero-bottom {
  margin-top: 24px;
}
.split, .story {
  align-items: start;
}
.split .body {
  margin: 0;
}
.card > p, .research-area > p {
  margin: 0;
}
@media (min-width: 801px) {
  .hero-copy > .hero-heading {
    min-block-size: 2lh;
  }
  .intro h1.hero-heading em {
    display: block;
  }
  .cards, .research-grid {
    row-gap: 0;
  }
  .cards > .card, .research-grid > .research-area {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-items: start;
  }
  .cards > .card > *, .research-grid > .research-area > * {
    justify-self: start;
  }
  .cards > .portrait > .mascot-secret {
    justify-self: stretch;
  }
  .mascot-cards .portrait > p {
    min-height: 0;
  }
}
@media (max-width: 800px) {
  .page-hero {
    min-height: 790px;
    padding: 256px 0 24px;
  }
  .page-hero .hero-heading {
    font-size: clamp(40px, 10.5vw, 54px);
  }
  .split .body {
    margin-top: 16px;
  }
}

/* Keep the controls near the bottom, with discovery at the right edge. */
.hero .actions {
  align-items: center;
  margin-top: auto;
  padding-top: 32px;
}
.hero .hero-discovery {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin-inline-start: auto;
}
.hero .hero-discovery summary {
  min-height: 46px;
}
.hero .hero-discovery p {
  right: 0;
  bottom: calc(100% + 8px);
  margin: 0;
}

@media (max-width: 420px) {
  .page-hero .eyebrow {
    min-block-size: 2.8em;
    align-items: flex-start;
    line-height: 1.4;
  }
  .page-hero .eyebrow::before {
    flex-shrink: 0;
    margin-top: 0.65em;
  }
}

@media (max-width: 800px) {
  .hero .actions {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, max-content) minmax(44px, 1fr);
    gap: 8px;
  }
  .hero .actions > .btn {
    align-self: stretch;
    min-height: 44px;
    gap: 6px;
    padding: 8px clamp(8px, 2.5vw, 16px);
    text-align: center;
  }
  .hero .hero-discovery summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .hero .hero-discovery summary span:last-child {
    display: none;
  }
}
@media (max-width: 360px) {
  .hero .actions > .btn span {
    display: none;
  }
}
