:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --mute: #595959;
  --rule: #dedede;
  --green: #096747;
  --blue: #245aa9;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font:
    16px/1.75 "Hiragino Sans",
    "Noto Sans JP",
    "Yu Gothic UI",
    system-ui,
    sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
body {
  background: white;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1280px, 90%);
  margin-inline: auto;
}
.skip {
  position: absolute;
  top: 0;
  left: 10px;
  transform: translateY(-140%);
  background: white;
  padding: 0.6rem 1rem;
  z-index: 3;
}
.skip:focus {
  transform: none;
}
header {
  border-bottom: 1px solid var(--rule);
}
.mast,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mast {
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  font: 600 22px/1.1 var(--mono);
  letter-spacing: -0.085em;
  text-decoration: none;
}
.wordmark img {
  width: 1.55em;
  height: 1.55em;
}
nav,
.actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
nav a,
footer a {
  font-size: 0.875rem;
  text-decoration: none;
  padding-block: 0.5rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: clamp(28px, 4vw, 76px);
  padding-block: clamp(60px, 8vw, 116px);
}
.license,
.mono,
code,
.flow-label {
  font-family: var(--mono);
}
.license {
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.81rem;
  color: var(--mute);
  margin-bottom: 1.25rem;
}
.license i {
  border: 2px solid var(--green);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
}
.license span {
  color: #999;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.4;
}
h1 {
  font-size: clamp(36px, 3.55vw, 56px);
  line-height: 1.36;
  letter-spacing: -0.065em;
}
h2 {
  font-size: clamp(26px, 2.9vw, 44px);
  letter-spacing: -0.055em;
}
h3,
.problems b,
.process b {
  font-size: 1.13rem;
  font-weight: 550;
}
.lead {
  line-height: 1.95;
  max-width: 32em;
  margin: 1.65rem 0 2rem;
}
.button,
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-weight: 550;
  text-decoration: none;
}
.button {
  color: white;
  background: var(--ink);
  padding: 0.8rem 1.3rem;
  border-radius: 4px;
}
.button:hover {
  background: #333;
}
.link {
  border-bottom: 1px solid currentColor;
}
.link:hover {
  color: var(--green);
}
.mono {
  color: var(--mute);
}
.hero-media {
  min-width: 0;
}
.hero-rotation {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hero-rotation video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.hero-rotation:focus-visible::after {
  content: attr(aria-label);
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.2em 0.6em;
  color: white;
  background: var(--ink);
  font-size: 0.8rem;
}
.hero-touch-hint {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .hero:has(.hero-rotation:not([hidden])) .hero-touch-hint {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--mute);
  }
}
.sample-image,
.step-panel figure a {
  display: block;
  cursor: zoom-in;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
.problem {
  padding-bottom: clamp(55px, 7vw, 100px);
}
.problem h2 {
  font-size: clamp(24px, 2vw, 31px);
}
.problems {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  padding: 0;
  margin-top: 1.6rem;
}
.problems li {
  border-top: 1px solid #9b9b9b;
  padding: 1rem 0 0;
}
.problems img {
  height: clamp(74px, 7.8vw, 112px);
  object-fit: contain;
  margin: 0.15rem auto 1rem;
}
.problems p,
.pair p,
.process p,
.concept-flow p {
  color: var(--mute);
  margin-top: 0.55rem;
}
.band {
  border-block: 1px solid var(--rule);
  padding-block: clamp(48px, 6vw, 90px);
}
#experience {
  background: #fafbf9;
}
.description {
  max-width: 53em;
  margin-top: 1.15rem;
}
.experience-body {
  margin: 2rem 0 1.4rem;
}
.step-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: tabs;
}
.step-controls button {
  counter-increment: tabs;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 58px;
  color: var(--mute);
  background: transparent;
  border: 0;
  border-bottom: 2px solid #bdbdbd;
  font: inherit;
  cursor: pointer;
}
.step-controls button::before {
  content: counter(tabs, decimal-leading-zero);
  font: 0.76em var(--mono);
}
.step-controls [aria-selected="true"] {
  border-color: var(--green);
  color: var(--green);
  font-weight: 650;
  background: #edf5f0;
}
.step-controls button:hover {
  color: var(--ink);
  background: #eee;
}
.step-panel {
  background: white;
  border: 1px solid var(--rule);
  padding: clamp(14px, 2.5vw, 36px);
}
.step-panel + .step-panel {
  margin-top: 1rem;
}
.step-controls:not([hidden]) ~ .step-panel {
  margin-top: 0;
}
.step-panel img {
  max-height: 385px;
  object-fit: contain;
  margin: 1rem 0;
}
.step-description,
.source-body p {
  font-size: 0.95rem;
}
.step-description {
  max-width: 66em;
  margin-top: 0.6rem;
}
.crud-figure a {
  padding-block: clamp(20px, 3vw, 44px);
}
.crud-figure picture {
  display: block;
}
.crud-figure img {
  margin: 0;
}
.data-text {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.data-text summary {
  color: var(--green);
  width: fit-content;
  cursor: pointer;
  padding-block: 0.3rem;
}
.data-text table {
  border-collapse: collapse;
  margin-top: 0.55rem;
  width: 100%;
  max-width: 54em;
}
.data-text caption {
  text-align: left;
  color: var(--mute);
  margin-bottom: 0.6rem;
}
.data-text th,
.data-text td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0.4rem;
}
.data-text tbody {
  border-top: 1px solid #999;
}
.query-example {
  margin: 0.5rem 0;
}
.query-example dt {
  color: var(--mute);
}
.query-example dd {
  margin: 0 0 0.5rem;
}
.crud-scope {
  color: var(--mute);
  font-size: 0.86rem;
  margin-top: 0.5rem;
}
.narrow-crud {
  display: none;
}
.source-body {
  max-width: 54rem;
  margin: 2rem auto;
}
.code-lines {
  padding: 1rem 0 1rem 3.3rem;
  background: #f7f7f7;
  margin-bottom: 1.25rem;
  font: 0.91rem/1.85 var(--mono);
}
.code-lines code {
  white-space: pre-wrap;
}
.code-lines li::marker {
  color: var(--mute);
}
.highlight {
  border-left: 3px solid var(--green);
  background: #e1f0e7;
}
.source-body .link {
  margin-top: 1rem;
}
.block {
  padding-block: clamp(50px, 6vw, 85px);
}
.block + .block {
  border-top: 1px solid var(--rule);
}
#profiles > .description {
  max-width: none;
}
.profile-examples {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 5rem);
  margin-top: 2.5rem;
  align-items: start;
}
.profile-feature {
  border-top: 2px solid var(--green);
  padding-top: 1rem;
}
.profile-feature h3 {
  font-size: clamp(20px, 2.1vw, 29px);
}
.profile-feature p,
.profile-list p {
  color: var(--mute);
  margin: 0.5rem 0;
}
.profile-feature .sample-image {
  margin-block: 1rem;
}
.profile-list {
  list-style: none;
  padding: 0;
}
.profile-list li {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}
.profile-list li:first-child {
  border-color: var(--ink);
}
.profile-list h3 {
  line-height: 1.6;
}
.profile-list p {
  margin: 0 0 0.3rem;
}
.profile-list a {
  display: inline-block;
  text-underline-offset: 0.24em;
  font-size: 0.875rem;
  margin-right: 0.45em;
}
.profile-list a:hover {
  color: var(--green);
}
.all-profiles {
  margin-top: 1.5rem;
}
.concept-band {
  --ink: #f3f7f5;
  --mute: #bdccc7;
  --blue: #9bbfff;
  --green: #70deb1;
  background: #132420;
  color: var(--ink);
}
.concept-band h2 {
  font-size: clamp(29px, 3.7vw, 52px);
}
.concept-map {
  margin-top: 2rem;
  padding: 1.2rem 1rem;
  border-top: 1px solid #456057;
}
.concept-map svg {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: auto;
}
.flow-trace {
  display: none;
}
.concept-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  margin: 1.2rem 0 1.15rem;
}
.concept-flow > div {
  padding: 1rem 0;
  border-top: 3px solid var(--blue);
  position: relative;
}
.concept-flow .boundary {
  border-color: var(--ink);
}
.concept-flow .compute {
  border-color: var(--green);
}
.concept-flow > div + div::before {
  content: "→";
  position: absolute;
  left: -1.8rem;
  top: 2.75rem;
  color: var(--mute);
}
.flow-label {
  display: block;
  color: var(--blue);
  font-size: 0.83rem;
  margin-bottom: 0.5rem;
}
.boundary .flow-label {
  color: var(--ink);
}
.compute .flow-label {
  color: var(--green);
}
.limit {
  color: var(--mute);
  font-size: 0.89rem;
  border-left: 2px solid #999;
  padding-left: 1rem;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.pair > div + div {
  border-left: 1px solid var(--rule);
  padding-left: 3rem;
}
.evidence-figure {
  margin: 1rem 0;
  border: 1px solid var(--rule);
}
.evidence-figure a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12rem;
  padding: 0.8rem;
  cursor: zoom-in;
}
.evidence-figure img {
  height: 100%;
  object-fit: contain;
}
.shared-mart-figure a {
  padding-inline: 0.4rem;
}
.shared-mart-figure img {
  max-width: 21rem;
}
.pair .link {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  padding: 0;
  counter-reset: process;
  margin-top: 2.3rem;
}
.process li {
  position: relative;
  padding-right: 1.2rem;
  counter-increment: process;
}
.process li::before {
  content: counter(process);
  font: 0.85rem/1.8rem var(--mono);
  text-align: center;
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  margin-bottom: 0.8rem;
}
.process li:not(:last-child)::after {
  content: "";
  position: absolute;
  height: 1px;
  top: 0.9rem;
  left: calc(1.8rem + 2px);
  right: 0;
  background: var(--ink);
}
.process-icon {
  display: block;
  width: 56px;
  height: 44px;
  color: #383e3a;
  margin: 1rem 0 0.65rem;
}
.process p {
  font-size: 0.93rem;
}
.start {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.start-figure a {
  display: block;
  cursor: zoom-in;
}
.start p {
  margin-top: 1rem;
}
.start-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.6rem;
}
footer {
  min-height: 90px;
}
.narrow {
  display: none;
}
@media (max-width: 900px) {
  .crud-figure picture {
    width: min(100%, 354px);
    margin-inline: auto;
  }
  .narrow-crud {
    display: inline;
  }
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 1.45rem;
  }
  h1 {
    font-size: clamp(30px, 3.8vw, 36px);
  }
  .actions {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .problems,
  .concept-flow {
    gap: 1rem;
  }
  .concept-flow > div + div::before {
    display: none;
  }
  .pair {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pair > div + div {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 1.4rem;
  }
  .process b {
    font-size: 1rem;
  }
}
@media (max-width: 680px) {
  .mast {
    min-height: 60px;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding-block: 0.7rem;
  }
  .wordmark {
    font-size: 17px;
  }
  nav {
    gap: 0.85rem;
  }
  nav a {
    font-size: 0.77rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 44px;
    gap: 1.6rem;
  }
  h1 {
    font-size: clamp(31px, 8.3vw, 48px);
  }
  .lead {
    margin: 1.15rem 0 1.35rem;
  }
  .license {
    margin-bottom: 1rem;
  }
  .problems,
  .concept-flow,
  .process {
    grid-template-columns: 1fr;
  }
  .problems {
    gap: 1rem;
  }
  .problems li {
    display: grid;
    grid-template-columns: minmax(85px, 27%) 1fr;
    column-gap: 0.9rem;
    align-items: start;
  }
  .problems img {
    grid-row: span 2;
    width: 100%;
    align-self: center;
    height: auto;
    margin: 0;
  }
  .problems p {
    margin-top: 0.2rem;
  }
  .narrow {
    display: block;
  }
  .step-controls {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
  }
  .step-controls button {
    font-size: 0.86rem;
    min-height: 44px;
  }
  .profile-examples {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .profile-list li {
    grid-template-columns: 4.5em 1fr;
    gap: 0.7rem;
  }
  .concept-flow {
    gap: 0.5rem;
  }
  .concept-flow > div {
    padding-block: 0.9rem;
  }
  .process {
    gap: 0;
  }
  .process li {
    padding: 0 0 1.5rem 2.8rem;
  }
  .process li::before {
    position: absolute;
    inset: 0 auto auto 0;
  }
  .process li:not(:last-child)::after {
    width: 1px;
    height: auto;
    top: calc(1.8rem + 2px);
    bottom: 0;
    left: 0.9rem;
  }
  .start {
    grid-template-columns: 1fr;
  }
  .concept-map {
    padding: 0.6rem 0.15rem;
  }
  .process li {
    padding-left: 6.3rem;
    min-height: 4.5rem;
  }
  .process-icon {
    position: absolute;
    left: 2.45rem;
    top: 0.2rem;
    width: 42px;
    height: 34px;
    margin: 0;
  }
  .process p {
    margin: 0.2rem 0 0;
  }
}
@media (max-width: 680px) {
  #path img {
    max-height: none;
  }
}
@media (max-width: 460px) {
  .mast nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  [data-reveal].in-view {
    animation: text-in 760ms ease-in-out backwards;
  }
  [data-reveal="lead"].in-view {
    animation-delay: 120ms;
  }
  .problems .reveal-pending img,
  .process .reveal-pending .process-icon {
    opacity: 0;
    transform: translateY(7px);
  }
  .problems .in-view img,
  .process .in-view .process-icon {
    animation: illustration-in 680ms ease-out var(--entry-delay, 0ms) backwards;
  }
  .step-panel.reveal-pending[role="tabpanel"] > :is(h3, .step-description) {
    opacity: 0;
    transform: translateY(3px);
  }
  .step-panel.in-view[role="tabpanel"] > :is(h3, .step-description) {
    transition:
      opacity 480ms ease-in-out,
      transform 360ms ease-out;
  }
  .concept-map:is(.reveal-pending, .in-view) .flow-tracks {
    opacity: 0.45;
  }
  .concept-map.in-view .flow-trace {
    display: inline;
    animation: trace-routes 1500ms linear;
  }

  @keyframes text-in {
    from {
      opacity: 0.06;
      transform: translateY(0.65rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes illustration-in {
    from {
      opacity: 0.06;
      transform: translateY(7px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes trace-routes {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0);
    }
  }
}
@media (min-width: 681px) {
  :where(.problems, .process) > :nth-child(2) {
    --entry-delay: 70ms;
  }
  :where(.problems, .process) > :nth-child(3) {
    --entry-delay: 140ms;
  }
  .process > :nth-child(4) {
    --entry-delay: 210ms;
  }
  .process > :nth-child(5) {
    --entry-delay: 280ms;
  }
}

.mast nav {
  flex-wrap: wrap;
}
.language-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 680px) {
  .mast nav {
    gap: 0.35rem 0.75rem;
  }
}
