@font-face {
  font-family: "Demo Sans";
  src: url("demo-sans.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f8f5ef;
  --ink: #201e1c;
  --accent: #ce3826;
  --line: #bfbab1;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --jp: "Demo Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(22px, 5.2vw, 94px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 92px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.8 var(--jp);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-underline-offset: 0.24em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #7552ae;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button:focus:not(:focus-visible),
main:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
.frame {
  width: min(calc(100% - 2 * var(--gutter)), 1440px);
  margin-inline: auto;
}
.skip,
.sr-only,
.honey {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 10px 18px;
  clip-path: none;
  color: #fff;
  background: #171715;
}
.global-head {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--ink);
  background: var(--paper);
}
.global-bar {
  min-height: 76px;
  width: min(calc(100% - 2 * var(--gutter)), 1440px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #c9c4bb;
}
.logo,
.global-nav,
.contact-pill,
.mobile-trigger {
  display: inline-flex;
  align-items: center;
}
.logo {
  color: inherit;
  text-decoration: none;
  gap: 6px;
  flex: none;
}
.logo-symbol img {
  width: 40px;
  height: auto;
}
.logo-word {
  font: 850 35px/0.9 var(--sans);
  letter-spacing: -0.087em;
}
.logo-jp {
  font: 650 11px/1.45 var(--jp);
  margin-left: 8px;
}
.global-nav {
  gap: clamp(17px, 2.15vw, 36px);
  font-size: 13px;
  font-weight: 620;
}
.global-nav > a {
  text-decoration: none;
  padding-block: 8px;
  white-space: nowrap;
}
.global-nav > a:hover,
.global-nav > a.is-section {
  color: var(--accent);
}
.global-nav .contact-pill {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 8px 17px 9px;
  border-radius: 30px;
}
.global-nav .contact-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.mobile-trigger {
  display: none;
}
.crumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: #58544d;
  padding-block: 13px;
}
.crumb i {
  color: #857d73;
  font-style: normal;
}
.crumb a:hover {
  color: var(--accent);
}
.kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    650 10px/1.5 var(--mono),
    var(--jp);
  letter-spacing: 0.11em;
}
.kicker > i {
  background: var(--accent);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  display: inline-block;
  flex: none;
}
.kicker > span {
  color: #82776e;
}
.vermilion {
  color: var(--accent);
}
.site-foot {
  background: #211f1e;
  color: #f6f1e8;
  padding: 0 0 20px;
}
.foot-lead,
.foot-info,
.foot-fine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.foot-lead {
  padding: clamp(38px, 4vw, 70px) 0;
  border-bottom: 1px solid #5a5550;
}
.foot-lead small,
.foot-fine {
  font:
    10px/1.5 var(--mono),
    var(--jp);
  letter-spacing: 0.04em;
}
.foot-lead p {
  font: 600 clamp(54px, 6.3vw, 110px) / 0.98 var(--sans);
  letter-spacing: -0.075em;
  margin: 10px 0 0;
}
.foot-lead p i {
  font-style: normal;
  color: #ff684c;
}
.foot-lead a {
  font-size: 14px;
  font-weight: 650;
  padding: 7px 0;
  width: min(300px, 34%);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #aaa297;
  text-decoration: none;
}
.foot-lead a:hover,
.foot-info nav a:hover,
.foot-fine a:hover {
  color: #ff927b;
}
.foot-info {
  align-items: start;
  padding: 38px 0;
}
.foot-info p {
  font-size: 12px;
  line-height: 1.9;
  color: #d0cbc4;
}
.foot-info nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 26px;
}
.foot-info nav a {
  font-size: 12px;
  text-decoration: none;
}
.foot-info nav a[href^="https://"]
{
  text-decoration: underline;
}
.foot-fine {
  padding-top: 16px;
  border-top: 1px solid #5a5550;
  color: #cdc6bd;
  gap: 10px;
  flex-wrap: wrap;
}
.foot-fine a {
  text-decoration: none;
}
@media (max-width: 880px) {
  .global-bar {
    min-height: 62px;
    gap: 12px;
  }
  .mobile-trigger {
    display: inline-flex;
    border: none;
    background: none;
    color: var(--ink);
    gap: 8px;
    padding: 10px 0 10px 8px;
    font-size: 11px;
    font-weight: 650;
    min-height: 44px;
  }
  .mobile-trigger i {
    width: 23px;
    height: 10px;
    border-block: 1.5px solid;
  }
  .mobile-trigger[aria-expanded="true"] i {
    transform: rotate(-15deg);
  }
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 12px #332d2311;
  }
  .global-nav.menu-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .global-nav > a:not(.contact-pill) {
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }
  .global-nav .contact-pill {
    justify-self: start;
    margin-top: 12px;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  body {
    font-size: 15px;
  }
  .logo-word {
    font-size: 30px;
  }
  .logo-symbol img {
    width: 33px;
  }
  .logo-jp {
    font-size: 9px;
    margin-left: 4px;
  }
  .foot-lead,
  .foot-info {
    flex-direction: column;
    align-items: start;
  }
  .foot-lead a {
    width: 100%;
  }
  .foot-info nav {
    grid-template-columns: repeat(2, auto);
    gap: 10px 22px;
  }
  .foot-fine {
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .logo-jp {
    max-width: 95px;
    font-size: 8px;
  }
  .mobile-trigger {
    font-size: 0;
    gap: 0;
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Only JS-armed blocks wait. Motion never controls document layout or accessibility. */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-reveal].reveal-pending:not(:focus-within) {
    opacity: 0;
    pointer-events: none;
  }

  [data-reveal].is-revealed {
    animation: demo-rise 920ms cubic-bezier(0.22, 0.61, 0.28, 1) backwards;
  }

  [data-reveal="image"].is-revealed {
    animation: demo-unveil 1050ms cubic-bezier(0.25, 0.62, 0.29, 1) backwards;
  }

  .case-copy.is-revealed,
  .profile-text.is-revealed {
    animation-delay: 80ms;
  }

  [data-reveal].is-revealed:focus-within {
    animation: none;
  }

  @keyframes demo-rise {
    from {
      opacity: 0;
      translate: 0 48px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  @keyframes demo-unveil {
    from {
      opacity: 0;
      translate: 0 28px;
      clip-path: inset(0 0 92% 0);
    }
    to {
      opacity: 1;
      translate: 0 0;
      clip-path: inset(0 0 0 0);
    }
  }
}

.ed-section-head[data-reveal],
.rc-toc-in > div:first-child[data-reveal],
.contact-guide[data-reveal] {
  align-self: start;
}

/* Without script, the same link is available in the footer in its usual place. */
.back-icon,
.back-tag {
  display: none;
}
@media screen {
  .has-page-tools .back-to-top {
    position: fixed;
    z-index: 30;
    right: max(clamp(14px, 2vw, 32px), env(safe-area-inset-right));
    bottom: max(clamp(14px, 2vw, 32px), env(safe-area-inset-bottom));
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #aaa397;
    background: #faf7f1;
    color: #24211e;
    text-decoration: none;
    box-shadow: 0 3px 13px #221b1524;
  }
  .has-page-tools .back-to-top:is(:hover, :focus-visible) {
    color: var(--accent);
    border-color: currentColor;
  }
  .has-page-tools .back-icon,
  .has-page-tools .back-tag {
    display: block;
  }
  .has-page-tools .back-tag {
    font: 600 8px/1 var(--mono);
    letter-spacing: 0.07em;
  }
  .has-page-tools .back-caption {
    display: none;
  }
  .has-page-tools .site-foot {
    padding-bottom: max(76px, calc(64px + env(safe-area-inset-bottom)));
  }
}
