/* ==========================================================================
   JAPANESE MINIMALISM — the hero, rebuilt from the founder's artifact
   (2026-10-01). Loaded after x-japanese-minimalism.css on
   a/japanese-minimalism.html only. Scope: .jm-hh.

   One photograph: a shore in mist, a single figure, the reflection. The
   words sit high in the empty sky on one centred axis. Across the top, the
   mock nav: the wordmark at the left, this page's own sections at the
   right, on one row; with the rail showing it runs just below the site's
   fixed action cluster. The field is the subject; nothing moves.

   Faces are the page's own (Shippori JM, Zen Kaku JM, x-japanese-
   minimalism.css). Ink #1C1C1A on the photograph's paper-toned sky. Every
   action is a word, or a word with a hairline, never a filled block.
   Positions are in --jm-u, 1/1672 of the hero; the words are in normal flow.
   Tokens are scoped here, never on the shell.
   ========================================================================== */
.jm-hh {
  --jm-hh-ink: #1C1C1A;
  --jm-hh-grey: #57544E;
  --jm-hh-sans: "Zen Kaku JM", "Helvetica Neue", Arial, sans-serif;
  --jm-hh-serif: "Shippori JM", "Hiragino Mincho ProN", Georgia, serif;
  /* The nav's extra clearance under the action cluster, added to the
     photograph's height so the composition keeps its proportions. */
  --jm-hh-clear: 0px;
  /* Resolved where it is used, against this container. */
  --jm-u: calc(100cqi / 1672);
  container-type: inline-size;
  position: relative;
  display: block;
  isolation: isolate;
  aspect-ratio: 1672 / 941;
  background: #ECE6DE;
  color: var(--jm-hh-ink);
  font-synthesis: none;
  overflow: hidden;
  /* Full width of the page column, rising behind the empty top bar. */
  margin: calc(-3rem - var(--s2, 0.5rem)) calc(-1 * var(--s6, 2rem)) 0;
}
@media (max-width: 60rem) {
  .jm-hh { margin-inline: calc(-1 * var(--s4, 1rem)); }
}
@media (min-width: 60.0625rem) {
  .jm-hh {
    --jm-hh-clear: 56px;
    aspect-ratio: auto;
    /* The page column is the viewport less the rail (15.5rem). */
    min-height: calc((100vw - 15.5rem) * 941 / 1672 + var(--jm-hh-clear));
  }
}
.jm-hh * { box-sizing: border-box; }
.jm-hh > nav, .jm-hh > figure, .jm-hh > div { position: absolute; margin: 0; }
.jm-hh a { color: var(--jm-hh-ink); text-decoration: none; }
.jm-hh :focus-visible { outline: 1px solid var(--jm-hh-ink); outline-offset: 4px; }

.jm-hh__fig { inset: 0; z-index: 0; }
.jm-hh__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* ---- the mock nav: a few plain words, spaced, one full-width row -------- */
.jm-hh__nav {
  z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px calc(40 * var(--jm-u));
  padding: calc(20 * var(--jm-u)) calc(70 * var(--jm-u)) 0 calc(73 * var(--jm-u));
  font: 500 max(calc(17 * var(--jm-u)), 14px)/1 var(--jm-hh-sans);
}
@media (min-width: 60.0625rem) {
  .jm-hh__nav { /* nav on top, the action bar in the room under its row (founder, 2026-10-01) */ padding-top: 10px; padding-bottom: calc(3rem + var(--s2, 0.5rem)); }
}
.jm-hh__logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.jm-hh__logo img { display: block; width: max(calc(202 * var(--jm-u)), 120px); height: auto; }
.jm-hh__links {
  display: flex; align-items: center; gap: calc(52 * var(--jm-u));
  margin: 0; padding: 0; list-style: none;
}
.jm-hh__links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.jm-hh__links a:not(.jm-hh__line):hover {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}

/* one action per area: a word with a hairline */
.jm-hh__line {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--jm-hh-ink); border-radius: 0; background: none;
}
.jm-hh__links .jm-hh__line { min-height: max(calc(52 * var(--jm-u)), 44px); padding: 0 calc(40 * var(--jm-u)); }
.jm-hh__line:hover { background: rgba(28, 28, 26, 0.06); }

/* ---- the words, high in the empty sky ----------------------------------- */
.jm-hh__t {
  z-index: 1; top: calc(158 * var(--jm-u) + var(--jm-hh-clear)); left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px;
}
.jm-hh__kick {
  margin: 0;
  font: 500 max(calc(13 * var(--jm-u)), 11px)/1 var(--jm-hh-sans);
  letter-spacing: 0.36em; margin-right: -0.36em;
  text-transform: uppercase; color: var(--jm-hh-grey);
}
.jm-hh__h1 {
  margin: calc(34 * var(--jm-u)) 0 0;
  font: 400 max(calc(76 * var(--jm-u)), 40px)/1.14 var(--jm-hh-serif);
  letter-spacing: -0.012em; color: var(--jm-hh-ink);
}
.jm-hh__tag {
  margin: calc(22 * var(--jm-u)) 0 0;
  font: 500 max(calc(13 * var(--jm-u)), 11px)/1.9 var(--jm-hh-sans);
  letter-spacing: 0.33em; margin-right: -0.33em;
  text-transform: uppercase; color: var(--jm-hh-grey);
}
.jm-hh__cta { margin: calc(32 * var(--jm-u)) 0 0; }
.jm-hh__cta a {
  min-height: max(calc(52 * var(--jm-u)), 44px); padding: 0 calc(40 * var(--jm-u));
  font: 500 max(calc(17 * var(--jm-u)), 15px)/1 var(--jm-hh-sans);
}

/* ---- narrower windows: the action cluster still sits top-right --------- */
@media (min-width: 48.0625rem) and (max-width: 60rem) {
  .jm-hh__nav { padding-top: 22px; }
}
/* A tablet: a squarer crop of the same shore; the nav wraps if it must. */
@media (max-width: 52rem) {
  .jm-hh { aspect-ratio: 1672 / 1200; }
  .jm-hh__nav { flex-wrap: wrap; padding-inline: 16px; gap: 0 12px; }
  .jm-hh__links { flex-wrap: wrap; gap: 0 14px; font-size: 14px; }
  .jm-hh__links .jm-hh__line { padding: 0 14px; }
  .jm-hh__t { top: 112px; }
  .jm-hh__cta { margin-top: 22px; }
}
/* A phone: a portrait crop, the words still in its sky. */
@media (max-width: 40rem) {
  .jm-hh { aspect-ratio: 3 / 5; }
  .jm-hh__t { top: 124px; }
  .jm-hh__nav { padding-top: 10px; }
  .jm-hh__h1 { font-size: 11.5cqi; margin-top: 18px; }
  .jm-hh__tag { font-size: 10.5px; letter-spacing: 0.22em; margin-right: -0.22em; margin-top: 14px; }
  .jm-hh__tag br { display: none; }
}

/* The images were generated (founder, 2026-10-01); the hero says so. */
.jm-hh { position: relative; }
.jm-hh__gen { position: absolute; z-index: 5; right: 12px; bottom: 8px; margin: 0; padding: 2px 6px; background: rgba(246,244,240,.75); color: #4a4642; font: 500 11px/1.3 var(--ui, system-ui), sans-serif; letter-spacing: .01em; }
@media (max-width: 760px) { .jm-hh__gen { position: static; display: block; width: max-content; margin: 6px 12px 0 auto; } }
