:root {
  --bg: #f4f2ec;
  --bg-soft: #eef2f6;
  --paper: #fbfaf7;
  --paper-blue: #f5f8ff;
  --text: #11171d;
  --muted: #596574;
  --line: rgba(17, 23, 29, 0.14);
  --line-strong: rgba(17, 23, 29, 0.28);
  --blue: #315edb;
  --blue-soft: rgba(49, 94, 219, 0.1);
  --ink: #111922;
  --ink-2: #18232e;
  --white: #f7f9fc;
  --shell: 1180px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --shadow: 0 24px 60px rgba(17, 23, 29, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08)),
    var(--bg);
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 23, 29, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 29, 0.028) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 92%);
  z-index: -1;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.shell {
  width: min(var(--shell), calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 236, 0.88);
  backdrop-filter: blur(16px);
}

.topbar {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.mobile-nav-only,
.nav-toggle {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.site-nav a,
.header-cta,
.note-row {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
}

.hero {
  padding: 72px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 790px;
  font-size: clamp(3.5rem, 6.4vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  color: var(--blue);
  font-weight: 800;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.button-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.36);
}

.research-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(238,243,248,0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.research-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 23, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 29, 0.045) 1px, transparent 1px);
  background-size: 20px 20px;
}

.research-card > * {
  position: relative;
  z-index: 1;
}

.research-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-plot {
  position: relative;
  height: 132px;
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(rgba(49,94,219,0.025), rgba(49,94,219,0.01)),
    rgba(255,255,255,0.62);
  overflow: hidden;
}

.axis {
  position: absolute;
  background: rgba(17, 23, 29, 0.16);
}

.axis-x {
  left: 12%;
  right: 8%;
  bottom: 25%;
  height: 1px;
}

.axis-y {
  left: 18%;
  top: 12%;
  bottom: 18%;
  width: 1px;
}

.plot-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(49,94,219,0.08);
}

.dot-a { left: 24%; bottom: 32%; }
.dot-b { left: 52%; bottom: 52%; }
.dot-c { right: 16%; top: 18%; }

.plot-line {
  position: absolute;
  height: 1px;
  background: rgba(49,94,219,0.58);
  transform-origin: left center;
}

.line-a {
  left: 26%;
  bottom: 35%;
  width: 31%;
  transform: rotate(-19deg);
}

.line-b {
  left: 54%;
  bottom: 56%;
  width: 30%;
  transform: rotate(-25deg);
}

.research-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.research-meta > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.66);
}

.research-meta .meta-wide {
  grid-column: 1 / -1;
}

.research-meta dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.research-meta dd {
  margin: 5px 0 0;
  font-weight: 700;
  line-height: 1.4;
}

.research-code {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}

.code-index {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(255,255,255,0.06);
  color: #bdd0ff;
  font-size: 0.72rem;
}

.research-code code {
  margin-left: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}

.section {
  padding: 110px 0;
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.about-copy {
  max-width: 650px;
  padding-top: 22px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-copy .about-intro {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  font-weight: 650;
}

.lab-cycle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lab-cycle span {
  padding: 5px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lab-cycle i {
  color: var(--blue);
  font-style: normal;
}

.work-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.section-heading-split > p {
  max-width: 380px;
  margin: 0 0 7px;
  color: var(--muted);
  text-align: right;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-item {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.work-visual {
  margin: 0;
  aspect-ratio: 1.55 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
}

.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.work-copy {
  padding: 18px 4px 6px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-copy h3 {
  margin: 12px 0 7px;
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.work-copy p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.project-section {
  background: var(--ink);
  color: var(--white);
}

.project-heading .section-kicker {
  color: #9fbcff;
}

.project-record {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    var(--ink-2);
  overflow: hidden;
}

.project-record-top,
.project-record-bottom {
  min-height: 54px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  color: #aebbd0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-record-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce6ff;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fa7ff;
  box-shadow: 0 0 0 5px rgba(127,167,255,0.08);
}

.project-record-main {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 42px 28px;
}

.project-number {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  color: #8cacf5;
  letter-spacing: -0.08em;
}

.project-title > p:first-child {
  margin: 0 0 8px;
  color: #8fa8d7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.project-title h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-description {
  max-width: 650px;
  margin: 20px 0 0;
  color: #aeb9c9;
}

.project-detail-link-wrap {
  margin-top: 18px;
}

.project-detail-link {
  min-height: 38px;
  padding: 0 16px;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
  color: #edf3ff;
}

.project-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.project-facts div {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}

.project-facts dt {
  color: #8799b4;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-facts dd {
  margin: 4px 0 0;
  color: #edf3ff;
  font-weight: 650;
}

.notes-section {
  background: var(--paper);
}

.notes-list {
  border-top: 1px solid var(--line-strong);
}

.note-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 44px;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-row:hover {
  background: linear-gradient(90deg, transparent, rgba(49,94,219,0.035), transparent);
}

.note-index {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.note-type {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-main h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.note-main > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.note-arrow {
  justify-self: end;
  color: var(--muted);
  font-size: 1.25rem;
}

.note-muted {
  opacity: 0.72;
}

.contact-section {
  padding: 92px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.contact-copy {
  max-width: 500px;
  justify-self: end;
  width: 100%;
}

.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-links > span {
  min-width: 140px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-links small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  padding: 32px 0 18px;
  background: #ecebe6;
  border-top: 1px solid var(--line);
}

.footer-main,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-main p {
  margin: 0;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    border-radius: 0 0 18px 18px;
    background: rgba(251, 250, 247, 0.98);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav-only {
    display: flex;
  }

  .nav-toggle {
    grid-column: 3;
    grid-row: 1;
    display: inline-grid;
    place-content: center;
    gap: 5px;
    justify-self: end;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    max-width: 720px;
  }

  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding-top: 0;
  }

  .contact-copy {
    justify-self: start;
  }

  .project-record-main {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .project-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  .site-header {
    position: static;
  }

  .topbar {
    min-height: 64px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .header-cta {
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 50px 0 46px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
  }

  .hero-lead br {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading-split {
    display: block;
  }

  .section-heading-split > p {
    margin-top: 16px;
    text-align: left;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-visual {
    aspect-ratio: 1.45 / 1;
  }

  .project-record-main {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

  .project-number {
    font-size: 3.2rem;
  }

  .project-facts {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .project-record-top,
  .project-record-bottom {
    align-items: flex-start;
    min-height: auto;
    padding: 14px 16px;
    flex-direction: column;
    gap: 7px;
  }

  .note-row {
    grid-template-columns: 1fr 30px;
    gap: 12px;
    padding: 22px 0;
  }

  .note-index {
    grid-column: 1 / -1;
  }

  .note-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .contact-links {
    flex-direction: column;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-cta {
    min-height: 36px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14.5vw, 4rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .research-meta {
    grid-template-columns: 1fr;
  }

  .research-meta .meta-wide {
    grid-column: auto;
  }

  .research-code {
    align-items: flex-start;
  }

  .lab-cycle {
    gap: 7px;
  }

  .work-visual {
    aspect-ratio: 1.25 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
