:root {
  --black: #151611;
  --graphite: #2a2d27;
  --graphite-2: #484a42;
  --paper: #f2eadc;
  --paper-2: #fffaf0;
  --paper-3: #e1d8c7;
  --line: #c8bea9;
  --line-dark: #5b594f;
  --forest: #18392e;
  --forest-2: #315849;
  --vermilion: #9e3f2f;
  --metal: #9b9a90;
  --shadow: rgba(21, 22, 17, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background:
    linear-gradient(90deg, rgba(21, 22, 17, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 22, 17, .035) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(49, 88, 73, .14), transparent 34rem),
    var(--paper);
  background-size: 78px 78px, 78px 78px, auto, auto;
  font-family: "Yu Gothic", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: radial-gradient(rgba(21, 22, 17, .18) .5px, transparent .5px);
  background-size: 4px 4px;
  opacity: .16;
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(158, 63, 47, .46);
  text-underline-offset: .22em;
}

a:hover {
  color: var(--vermilion);
}

::selection {
  color: var(--paper-2);
  background: var(--forest);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(21, 22, 17, .17);
  background: rgba(242, 234, 220, .9);
  backdrop-filter: blur(16px);
}

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: block;
  overflow: hidden;
  color: var(--black);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 1rem;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-note {
  display: block;
  margin-top: 1px;
  color: var(--graphite-2);
  font-size: .69rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-end;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--graphite);
  text-decoration: none;
}

.nav-links a::before {
  content: "/";
  margin-right: 6px;
  color: var(--metal);
}

.nav-links a[aria-current="page"] {
  color: var(--vermilion);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  min-height: calc(100svh - 73px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .66fr);
  gap: clamp(34px, 7vw, 104px);
  align-items: stretch;
  padding: clamp(56px, 9vw, 118px) 0 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70svh;
}

.kicker {
  margin: 0 0 22px;
  color: var(--vermilion);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(3.4rem, 9.6vw, 8.6rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--graphite);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(1.08rem, 2vw, 1.56rem);
  line-height: 1.9;
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 8vw, 92px);
  border: 1px solid var(--black);
  background: var(--black);
}

.hero-ledger div {
  min-height: 122px;
  padding: 18px;
  background: rgba(255, 250, 240, .78);
}

.hero-ledger dt,
.spec dt,
.artifact-meta {
  color: var(--graphite-2);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero-ledger dd,
.spec dd {
  margin: 10px 0 0;
  color: var(--black);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.48;
}

.hero-visual {
  display: grid;
  align-content: end;
  gap: 18px;
}

.field-frame {
  position: relative;
  border: 1px solid var(--black);
  background: var(--paper-2);
  box-shadow: 18px 18px 0 rgba(24, 57, 46, .12);
  overflow: hidden;
}

.field-frame::before {
  content: "FIELD PLATE / 001";
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 4px 7px;
  color: var(--paper-2);
  background: var(--black);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.field-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(21, 22, 17, .18);
  pointer-events: none;
}

.field-frame img {
  width: 100%;
  aspect-ratio: .92;
  object-fit: cover;
  filter: saturate(.84) contrast(1.04);
}

.caption {
  margin: 0;
  color: var(--graphite-2);
  font-size: .8rem;
  line-height: 1.7;
}

.stamp {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(21, 22, 17, .22);
  padding: 8px 12px 8px 8px;
  background: rgba(255, 250, 240, .72);
  color: var(--graphite);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stamp img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.section {
  padding: clamp(72px, 11vw, 148px) 0;
  border-top: 1px solid rgba(21, 22, 17, .18);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(150px, .28fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  margin-bottom: clamp(34px, 6vw, 78px);
}

.section-index {
  color: var(--vermilion);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  max-width: 860px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(2rem, 5vw, 5.25rem);
  font-weight: 500;
  line-height: 1.04;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 94px);
}

.lede {
  margin: 0;
  color: var(--graphite);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(1.22rem, 2.5vw, 1.92rem);
  line-height: 1.7;
}

.body-copy {
  color: var(--graphite);
  font-size: .98rem;
}

.body-copy p:first-child {
  margin-top: 0;
}

.experiment-list {
  border-top: 1px solid var(--black);
}

.experiment {
  display: grid;
  grid-template-columns: 90px minmax(0, .9fr) minmax(0, 1.1fr) 140px;
  gap: 26px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(21, 22, 17, .2);
}

.experiment code {
  color: var(--vermilion);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
}

.experiment h3 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.25;
}

.experiment p {
  margin: 0;
  color: var(--graphite);
  font-size: .92rem;
}

.status {
  display: inline-flex;
  justify-content: center;
  border: 1px solid rgba(21, 22, 17, .28);
  padding: 5px 8px;
  color: var(--graphite);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 1px;
  border: 1px solid var(--black);
  background: var(--black);
}

.capability {
  min-height: 292px;
  padding: 28px;
  background: rgba(255, 250, 240, .82);
}

.capability:nth-child(2),
.capability:nth-child(5) {
  background: var(--paper-3);
}

.capability:nth-child(3) {
  background: var(--forest);
  color: var(--paper-2);
}

.capability:nth-child(3) p,
.capability:nth-child(3) .artifact-meta {
  color: rgba(255, 250, 240, .72);
}

.capability h3,
.artifact h3,
.note h3,
.philosophy h3 {
  margin: 24px 0 14px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.28;
}

.capability p,
.artifact p,
.note p,
.philosophy p {
  margin: 0;
  color: var(--graphite);
  font-size: .92rem;
}

.notes-layout {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: clamp(28px, 6vw, 76px);
}

.note-column {
  display: grid;
  gap: 16px;
}

.note {
  border-top: 1px solid var(--black);
  padding-top: 22px;
}

.terminal {
  align-self: start;
  border: 1px solid var(--black);
  background: #171815;
  color: #e8e0d0;
  box-shadow: 16px 16px 0 rgba(158, 63, 47, .12);
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 250, 240, .2);
  padding: 12px 14px;
  color: rgba(255, 250, 240, .62);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
  line-height: 1.8;
}

.terminal .hot {
  color: #d98572;
}

.terminal .cool {
  color: #9ac2a9;
}

.artifact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .62fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.artifact-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--black);
  background: var(--black);
}

.artifact {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  background: rgba(255, 250, 240, .84);
}

.spec {
  border-top: 1px solid var(--black);
}

.spec div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(21, 22, 17, .18);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--black);
  background: var(--black);
}

.philosophy {
  min-height: 260px;
  padding: 28px;
  background: var(--paper-2);
}

.philosophy:nth-child(2) {
  background: var(--paper-3);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-top: 22px;
  padding: clamp(36px, 7vw, 74px);
  color: var(--paper-2);
  background:
    linear-gradient(110deg, rgba(158, 63, 47, .18), transparent 42%),
    var(--forest);
}

.cta-band h2 {
  margin: 0;
  max-width: 770px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.cta-band p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, .76);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  color: inherit;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.text-link::after {
  content: "->";
  font-family: Georgia, serif;
}

.page-hero {
  padding: clamp(60px, 10vw, 128px) 0 clamp(44px, 8vw, 88px);
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.page-hero p {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--graphite);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(1.08rem, 2.2vw, 1.68rem);
}

.info-table {
  border-top: 1px solid var(--black);
}

.info-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(21, 22, 17, .18);
}

.info-row dt {
  color: var(--graphite-2);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.info-row dd {
  margin: 0;
  color: var(--graphite);
}

.legal-content {
  max-width: 960px;
  padding-bottom: 100px;
}

.legal-content > section:not(.page-hero) {
  padding: 42px 0;
  border-top: 1px solid rgba(21, 22, 17, .18);
}

.legal-content h2 {
  margin: 0 0 22px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 28px 0 8px;
  color: var(--forest);
  font-size: .9rem;
  letter-spacing: .08em;
}

.legal-content p,
.legal-content li {
  color: var(--graphite);
}

.legal-content ul {
  padding-left: 1.2rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--black);
  background: var(--black);
  margin-bottom: 82px;
}

.contact-panel > div {
  background: rgba(255, 250, 240, .82);
  padding: clamp(24px, 4vw, 44px);
}

.contact-panel iframe {
  width: 100%;
  height: 920px;
  border: 0;
  background: var(--paper-2);
}

.site-footer {
  margin-top: 110px;
  border-top: 1px solid rgba(21, 22, 17, .18);
  padding: 36px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  color: var(--graphite-2);
  font-size: .82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
}

.fade-in {
  animation: rise .72s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .fade-in {
    animation: none;
  }
}

@media (max-width: 980px) {
  .nav,
  .hero,
  .section-head,
  .split,
  .notes-layout,
  .artifact-layout,
  .cta-band,
  .contact-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-visual {
    align-content: start;
  }

  .field-frame img {
    aspect-ratio: 1.4;
  }

  .experiment {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .experiment p,
  .experiment .status {
    grid-column: 2;
  }

  .capability-grid,
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav,
  .page-shell,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-note {
    display: none;
  }

  .brand-name {
    max-width: 58vw;
  }

  .nav-links {
    gap: 8px 12px;
    font-size: .72rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.75rem, 16vw, 4.8rem);
  }

  .hero-ledger,
  .capability-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .experiment {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .experiment p,
  .experiment .status {
    grid-column: auto;
  }

  .artifact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spec div,
  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-frame img {
    aspect-ratio: 1;
  }

  .cta-band {
    padding: 28px;
  }

  .contact-panel iframe {
    height: 760px;
  }
}

/* Top page visual system based on the May 2026 PC design comp. */
body.home-page {
  min-width: 1180px;
  color: #050505;
  background: #f7f7f4;
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body.home-page::before {
  z-index: 5;
  background-image: radial-gradient(rgba(0, 0, 0, .28) .45px, transparent .45px);
  background-size: 24px 24px;
  opacity: .12;
  mix-blend-mode: multiply;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

.sp-break {
  display: none;
}

.home-layout {
  min-height: 100svh;
}

.home-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 240px;
  border-right: 1px solid #d8d8d5;
  background: rgba(247, 247, 244, .94);
}

.home-sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 37px 0 48px 45px;
}

.home-logo {
  display: grid;
  width: 76px;
  height: 72px;
  margin-left: 37px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #06102c 0%, #0a1532 52%, #081024 100%);
  color: #ffffff;
  font-size: 37px;
  font-weight: 850;
  line-height: 1;
}

.home-page .home-logo {
  color: #fff;
}

.home-brand {
  width: 150px;
  margin: 28px 0 49px 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.home-nav {
  display: grid;
  gap: 19px;
  margin-left: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.home-menu-button {
  display: none;
}

.home-nav a {
  width: fit-content;
}

.home-nav a:hover,
.home-footer a:hover {
  color: #555;
}

.home-main {
  min-height: 100svh;
  margin-left: 240px;
}

.home-hero {
  height: 60svh;
  min-height: 602px;
  max-height: 640px;
  border-bottom: 1px solid #d8d8d5;
}

.home-hero-grid {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(360px, 1.05fr) minmax(300px, .86fr) minmax(240px, .75fr);
  gap: 48px;
  padding: 0 58px 0 67px;
}

.home-hero-copy {
  padding-top: 134px;
}

.home-hero-copy h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Times New Roman", serif;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-hero-copy p {
  margin: 46px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0;
}

.home-diagram {
  width: min(100%, 410px);
  margin: 143px 0 0;
  justify-self: center;
}

.home-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.diagram-lines {
  fill: none;
  stroke: #161616;
  stroke-width: .9;
  marker-end: url("#arrowhead");
}

.diagram-boxes rect,
.diagram-database {
  fill: rgba(247, 247, 244, .32);
  stroke: #161616;
  stroke-width: .8;
}

.diagram-boxes .diagram-layer {
  fill: transparent;
  stroke-dasharray: 5 5;
}

.home-diagram marker path {
  fill: #161616;
}

.home-diagram text {
  fill: #050505;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
}

.home-code {
  margin-top: 98px;
  min-width: 0;
  color: #0b0b0b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  line-height: 2.45;
  letter-spacing: 0;
}

.home-code ol {
  list-style: decimal-leading-zero;
  margin: 0;
  padding-left: 28px;
}

.home-code li {
  padding-left: 17px;
}

.home-code li::marker {
  color: #aaa;
}

.home-code code {
  font: inherit;
}

.terminal-list {
  margin-top: 34px !important;
}

.terminal-list .cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #090909;
  vertical-align: -2px;
}

.home-scroll-cue,
.home-mobile-code,
.home-stance,
.home-mobile-nav {
  display: none;
}

.home-themes {
  min-height: 320px;
  padding: 42px 80px 43px 41px;
  border-bottom: 1px solid #d8d8d5;
}

.theme-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  margin-bottom: 42px;
}

.theme-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.theme-heading span {
  display: block;
  height: 1px;
  background: #d8d8d5;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.theme-card {
  min-height: 154px;
  padding: 0 26px 0 27px;
  border-left: 1px solid #d8d8d5;
}

.theme-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.theme-card span {
  display: block;
  margin: 0 0 12px;
  color: #333;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1;
}

.theme-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

.theme-card p {
  margin: 0;
  max-width: 220px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.9;
}

.theme-card .theme-tags {
  margin-top: 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.2;
}

.home-footer {
  display: grid;
  min-height: 90px;
  grid-template-columns: 104px minmax(230px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 80px 0 41px;
}

.home-footer strong {
  font-size: 14px;
  letter-spacing: 0;
}

.home-footer p {
  margin: 0;
  color: #686866;
  font-size: 12px;
  line-height: 1;
}

.home-footer nav {
  display: flex;
  gap: 46px;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1180px) {
  body.home-page {
    min-width: 0;
  }

  .home-sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #d8d8d5;
  }

  .home-sidebar-inner {
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    padding: 18px 22px;
  }

  .home-logo {
    width: 54px;
    height: 52px;
    margin-left: 0;
    font-size: 26px;
  }

  .home-brand {
    width: auto;
    margin: 0 auto 0 0;
    text-align: left;
  }

  .home-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    order: 3;
    width: 100%;
  }

  .home-main {
    margin-left: 0;
  }

  .home-hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 68px 28px;
  }

  .home-hero-copy,
  .home-code,
  .home-diagram {
    margin-top: 0;
    padding-top: 0;
  }

  .home-diagram {
    width: min(100%, 410px);
    justify-self: start;
  }

  .home-themes {
    padding: 40px 28px;
  }

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

  .theme-card:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .home-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px;
  }

  .home-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 24px;
  }
}

@media (max-width: 640px) {
  body.home-page {
    overflow-x: hidden;
    background: #f8f8f6;
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  }

  body.home-page::before {
    background-size: 20px 20px;
    opacity: .1;
  }

  .home-layout {
    min-height: 100svh;
  }

  .home-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 0;
    background: rgba(248, 248, 246, .92);
    backdrop-filter: blur(14px);
  }

  .home-sidebar-inner {
    height: 84px;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 22px 24px;
  }

  .home-logo {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    font-size: 21px;
    font-weight: 850;
  }

  .home-brand {
    margin: 0 auto 0 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .12em;
  }

  .home-menu-button {
    display: grid;
    width: 25px;
    height: 25px;
    align-content: center;
    gap: 5px;
  }

  .home-menu-button span {
    display: block;
    width: 25px;
    height: 1.5px;
    background: #050505;
  }

  .home-menu-close {
    display: grid;
    width: 25px;
    height: 25px;
    align-content: center;
    gap: 5px;
  }

  .home-menu-close span {
    display: block;
    width: 25px;
    height: 1.5px;
    background: #050505;
  }

  .home-nav {
    display: none;
  }

  .home-main {
    margin-left: 0;
  }

  .home-hero {
    border-bottom: 1px solid #d8d8d5;
  }

  .home-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 79px 24px 42px;
  }

  .home-hero-copy {
    padding-left: 7px;
  }

  .home-hero-copy h1 {
    font-size: 43px;
    line-height: 1.34;
  }

  .home-hero-copy p {
    max-width: 270px;
    margin-top: 43px;
    font-size: 13px;
    font-weight: 500;
    line-height: 2.02;
  }

  .sp-break {
    display: block;
  }

  .pc-break {
    display: none;
  }

  #themes,
  #architecture,
  #lab,
  #notes-mobile,
  #mobile-nav {
    scroll-margin-top: 96px;
  }

  .home-diagram {
    width: min(100%, 320px);
    margin: 38px auto 0;
    justify-self: center;
  }

  .home-code-desktop {
    display: none;
  }

  .home-scroll-cue {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin: 54px 0 1px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .08em;
  }

  .home-scroll-cue i {
    display: block;
    width: 1px;
    height: 44px;
    background: #111;
  }

  .home-themes {
    min-height: 0;
    padding: 51px 24px 0;
    border-bottom: 0;
  }

  .theme-heading {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 39px;
  }

  .theme-heading h2 {
    font-size: 13px;
    line-height: 1;
  }

  .theme-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .theme-card,
  .theme-card:first-child,
  .theme-card:nth-child(odd) {
    min-height: 0;
    padding: 0 0 32px;
    border-left: 0;
  }

  .theme-card + .theme-card {
    border-top: 1px solid #d8d8d5;
    padding-top: 32px;
  }

  .theme-card span {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .theme-card h3 {
    margin-bottom: 9px;
    font-size: 16px;
    line-height: 1.55;
  }

  .theme-card p {
    max-width: 290px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.9;
  }

  .theme-card .theme-tags {
    margin-top: 21px;
    font-size: 12px;
  }

  .home-mobile-code {
    display: block;
    padding: 39px 24px 0;
    border-top: 1px solid #d8d8d5;
  }

  .home-mobile-code .home-code {
    margin-top: 0;
    font-size: 8px;
    line-height: 2.45;
  }

  .home-mobile-code .home-code ol {
    padding-left: 27px;
  }

  .home-mobile-code .home-code li {
    padding-left: 15px;
  }

  .home-mobile-code .terminal-list {
    margin-top: 42px !important;
    border-top: 1px solid #d8d8d5;
    padding-top: 31px;
    padding-bottom: 44px;
  }

  .home-stance {
    display: block;
    padding: 74px 24px 88px;
    border-top: 1px solid #d8d8d5;
  }

  .home-stance h2 {
    margin: 0 0 54px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .stance-list {
    display: grid;
    gap: 62px;
  }

  .stance-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .stance-icon {
    width: 39px;
    height: 39px;
    overflow: visible;
    fill: none;
    stroke: #0c0c0c;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .stance-icon circle {
    fill: none;
  }

  .stance-item h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
  }

  .stance-item p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.95;
  }

  .home-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    overflow-y: auto;
    padding: 22px 24px 58px;
    background:
      radial-gradient(circle at 72% 7%, rgba(0, 0, 0, .035), transparent 11rem),
      #f8f8f6;
  }

  .home-mobile-nav:target {
    display: block;
  }

  .home-mobile-menu-head {
    display: flex;
    height: 38px;
    align-items: center;
    gap: 14px;
  }

  .home-mobile-menu-head .home-brand {
    margin: 0 auto 0 0;
  }

  .home-mobile-nav nav {
    display: grid;
    gap: 24px;
    margin-top: 67px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
  }

  .home-footer {
    display: block;
    min-height: 0;
    margin-top: 62px;
    padding: 56px 24px 68px;
    border-top: 1px solid #d8d8d5;
    background: rgba(248, 248, 246, .82);
  }

  .home-footer strong {
    display: block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: .02em;
  }

  .home-footer p {
    margin: 18px 0 54px;
    color: #6f6f6d;
    font-size: 12px;
    line-height: 1;
  }

  .home-footer nav {
    display: grid;
    gap: 29px;
    justify-content: stretch;
    justify-items: stretch;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  .home-footer nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .home-footer nav a::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
  }
}

/* Shared lower-page layout. */
body.sub-page {
  min-width: 1180px;
  color: #050505;
  background: #f8f8f6;
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}

body.sub-page::before {
  z-index: 5;
  background-image: radial-gradient(rgba(0, 0, 0, .24) .45px, transparent .45px);
  background-size: 24px 24px;
  opacity: .1;
  mix-blend-mode: multiply;
}

.sub-page a {
  color: inherit;
  text-decoration: none;
}

.sub-page .home-logo {
  color: #fff;
}

.home-nav a[aria-current="page"] {
  font-weight: 900;
}

.sub-layout {
  min-height: 100svh;
}

.sub-main {
  max-width: 1140px;
  margin-left: 240px;
  padding: 122px 80px 118px 67px;
}

.sub-hero {
  max-width: 720px;
  margin-bottom: 70px;
}

.sub-eyebrow {
  margin: 0 0 18px;
  color: #8f8f8b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sub-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Times New Roman", serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

.sub-hero p {
  margin: 48px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 2.05;
}

.sub-section {
  margin-top: 76px;
}

.sub-section:first-of-type {
  margin-top: 0;
}

.sub-info-table {
  margin: 0;
}

.sub-info-table > div {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding: 27px 0;
  border-bottom: 1px solid #d8d8d5;
}

.sub-info-table > div:first-child {
  border-top: 0;
}

.sub-info-table dt {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.8;
}

.sub-info-table dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
}

.sub-info-table a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.sub-section-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 56px;
}

.sub-section-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.sub-section-heading span {
  display: block;
  height: 1px;
  background: #d8d8d5;
}

.sub-principles,
.sub-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sub-principles article,
.sub-process article {
  min-height: 190px;
  padding: 0 28px;
  border-left: 1px solid #d8d8d5;
}

.sub-principles article:first-child,
.sub-process article:first-child {
  border-left: 0;
  padding-left: 0;
}

.sub-principles svg {
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
  overflow: visible;
  fill: none;
  stroke: #050505;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sub-principles h3,
.sub-process h3,
.sub-legal-text h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.sub-principles p,
.sub-process p,
.sub-legal-text p,
.sub-legal-text li {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 2.05;
}

.sub-process span {
  display: block;
  margin-bottom: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1;
}

.sub-form-frame {
  border-top: 1px solid #d8d8d5;
  border-bottom: 1px solid #d8d8d5;
  background: rgba(255, 255, 255, .38);
}

.sub-form-frame iframe {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
  background: #fff;
}

.sub-legal-text h3 {
  margin-top: 34px;
}

.sub-legal-text h3:first-child {
  margin-top: 0;
}

.sub-legal-text ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.sub-footer {
  display: grid;
  min-height: 112px;
  grid-template-columns: 118px minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-left: 240px;
  border-top: 1px solid #d8d8d5;
  padding: 0 80px 0 67px;
}

.sub-footer strong {
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
}

.sub-footer p {
  margin: 0;
  color: #686866;
  font-size: 12px;
  line-height: 1;
}

.sub-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 46px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1180px) {
  body.sub-page {
    min-width: 0;
  }

  .sub-main,
  .sub-footer {
    margin-left: 0;
  }

  .sub-main {
    padding: 72px 28px 88px;
  }

  .sub-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px;
  }

  .sub-footer nav {
    justify-content: flex-start;
  }

  .sub-principles,
  .sub-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .sub-principles article:nth-child(odd),
  .sub-process article:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body.sub-page {
    overflow-x: hidden;
  }

  body.sub-page::before {
    background-size: 20px 20px;
    opacity: .1;
  }

  .sub-page .home-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 0;
    background: rgba(248, 248, 246, .92);
    backdrop-filter: blur(14px);
  }

  .sub-main {
    padding: 78px 24px 82px;
  }

  .sub-hero {
    margin-bottom: 58px;
  }

  .sub-eyebrow {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .sub-hero h1 {
    font-size: 39px;
    line-height: 1.24;
  }

  .sub-hero p {
    margin-top: 38px;
    font-size: 13px;
    line-height: 2.02;
  }

  .sub-section {
    margin-top: 62px;
  }

  .sub-info-table > div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 23px 0;
  }

  .sub-info-table dt,
  .sub-info-table dd {
    font-size: 13px;
  }

  .sub-section-heading {
    grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 38px;
  }

  .sub-section-heading h2 {
    font-size: 15px;
  }

  .sub-principles,
  .sub-process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sub-principles article,
  .sub-process article,
  .sub-principles article:nth-child(odd),
  .sub-process article:nth-child(odd) {
    min-height: 0;
    padding: 28px 0;
    border-left: 0;
    border-top: 1px solid #d8d8d5;
  }

  .sub-principles article:first-child,
  .sub-process article:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .sub-principles svg {
    margin-bottom: 24px;
  }

  .sub-form-frame iframe {
    min-height: 760px;
  }

  .sub-footer {
    display: block;
    min-height: 0;
    padding: 56px 24px 68px;
  }

  .sub-footer strong {
    display: block;
    font-size: 18px;
    line-height: 1;
  }

  .sub-footer p {
    margin: 18px 0 54px;
  }

  .sub-footer nav {
    display: grid;
    gap: 29px;
    justify-content: stretch;
    justify-items: stretch;
    font-size: 14px;
  }

  .sub-footer nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .sub-footer nav a::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
  }
}
