/* Landing page (/about/), part 2: the sections below the hero. */
.band { max-width: var(--wrap); margin: 0 auto; padding: 88px var(--gutter) 0; }
.head { max-width: 740px; margin-bottom: 32px; }
.head + .head { margin-top: 40px; }
.head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 12px; }
.head p { color: var(--soft); font-size: 16px; }
.sec-no { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 4px; background: var(--vermilion); color: #fff; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: 20px; font-weight: 700; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); }

figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--paper-2); box-shadow: 0 10px 30px rgba(42, 33, 27, 0.16); }
figure img { height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
figure:hover img { transform: scale(1.035); }
figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 14px; border-radius: 999px; background: rgba(248, 242, 226, 0.94); font-family: var(--serif); font-size: 14px; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); }

/* 1. The visit: five phone screens along a path. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.phone { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: 26px; padding: 7px; background: linear-gradient(160deg, #3a2f27, #15110e); box-shadow: 0 18px 40px rgba(42, 33, 27, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08); margin-bottom: 18px; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.phone::before { content: ""; position: absolute; z-index: 1; top: 13px; left: 50%; width: 30%; height: 12px; transform: translateX(-50%); border-radius: 999px; background: #15110e; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.steps li:hover .phone { transform: translateY(-6px) rotate(-0.6deg); }
.steps .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--vermilion); color: #fff; font-family: var(--serif); margin-bottom: 8px; position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--paper); }
.steps li { container-type: inline-size; }
.steps li:not(:last-child) .num::after { content: ""; position: absolute; left: calc(100% + 8px); top: 50%; width: calc(100cqw + 22px - 34px - 16px); border-top: 2px dashed rgba(200, 64, 43, 0.4); }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--soft); line-height: 1.6; }

/* 2. The grounds: a mosaic of places. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, clamp(150px, 15vw, 190px)); gap: 14px; }
.bento figure img { aspect-ratio: auto; }
.b-approach { grid-column: 1 / 3; grid-row: 1 / 3; }
.b-island { grid-column: 3; grid-row: 1; }
.b-gate { grid-column: 4; grid-row: 1; }
.b-court { grid-column: 3 / 5; grid-row: 2; }
.b-inari { grid-column: 1; grid-row: 3 / 5; }
.b-tenjin { grid-column: 2 / 4; grid-row: 3; }
.b-tea { grid-column: 4; grid-row: 3; }
.b-hall { grid-column: 2 / 5; grid-row: 4; }

/* 3. The day: one view from dawn to night, and the hour in Japan now. */
.band.dark { max-width: none; margin-top: 96px; padding-bottom: 88px; padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); background: radial-gradient(90% 60% at 50% 0%, #2a3150 0%, var(--night) 70%); color: #f3ecda; }
.band.dark .head p { color: #c5c4cf; }
.clock { margin-top: 16px; display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 16px; border: 1px solid rgba(243, 236, 218, 0.22); border-radius: 999px; color: #f3ecda !important; font-size: 14px !important; }
.clock time { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; color: var(--gold); }

/* 4. The shrine's year: twelve months tinted by their season. */
.year { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.year > li { --tint: var(--spring); position: relative; padding: 14px 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--tint); min-height: 132px; }
.year > li[data-month="6"], .year > li[data-month="7"], .year > li[data-month="8"] { --tint: var(--summer); }
.year > li[data-month="9"], .year > li[data-month="10"], .year > li[data-month="11"] { --tint: var(--autumn); }
.year > li[data-month="12"], .year > li[data-month="1"], .year > li[data-month="2"] { --tint: var(--winter); }
.year h3 { font-size: 17px; margin-bottom: 8px; }
.year ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.year ul li { font-size: 13px; line-height: 1.45; }
.year ul time { display: block; font-size: 11px; color: var(--soft); font-variant-numeric: tabular-nums; }
.year ul li.motif { color: var(--soft); font-family: var(--serif); }
.year > li.this-month { border-color: var(--vermilion); box-shadow: 0 8px 24px rgba(200, 64, 43, 0.16); }
.year ul li[data-badge]::before { content: attr(data-badge); display: inline-block; margin-bottom: 3px; padding: 1px 8px; border-radius: 999px; background: var(--vermilion); color: #fff; font-size: 11px; font-weight: 700; }
.year-note { margin-top: 14px; color: var(--soft); font-size: 14px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }

/* 5. Small things. */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mosaic figure { grid-column: span 2; }
.mosaic figure.wide { grid-column: span 3; }

/* 6. Together. */
.band.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; }
.band.split .head { margin-bottom: 0; }

/* 7. Languages. */
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chips a { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 16px; font-size: 16px; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.lang-chips a:hover { border-color: var(--vermilion); transform: translateY(-1px); }

.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--vermilion); color: var(--vermilion-dark); font-family: var(--serif); font-weight: 700; }
.privacy { max-width: 780px; margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 10px; font-size: 15px; line-height: 1.75; }

.closing { position: relative; overflow: hidden; margin-top: 104px; padding: 88px 20px 96px; text-align: center; background: radial-gradient(80% 90% at 50% 100%, #d9563d 0%, var(--vermilion) 60%, var(--vermilion-dark) 100%); color: #fff; }
.closing-torii { position: absolute; left: 50%; bottom: -70px; width: min(420px, 90vw); transform: translateX(-50%); fill: rgba(255, 255, 255, 0.07); }
.closing h2 { position: relative; font-size: clamp(26px, 3.8vw, 44px); margin-bottom: 30px; }
.closing .go { position: relative; background: var(--paper); color: var(--vermilion-dark); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
footer { padding: 28px 20px 44px; text-align: center; font-size: 13px; color: var(--soft); }
footer p + p { margin-top: 6px; }

/* Things rise into place as they are scrolled to (only when scripts run). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .year { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .band { padding-top: 64px; }
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { flex: 0 0 min(58vw, 230px); scroll-snap-align: start; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 30vw; gap: 10px; }
  .bento figure { grid-column: auto; grid-row: auto; }
  .bento .b-approach { grid-column: 1 / -1; grid-row: span 2; }
  .bento .b-hall { grid-column: 1 / -1; }
  .steps li:not(:last-child) .num::after { width: calc(100cqw + 16px - 34px - 16px); }
  .year { grid-template-columns: repeat(3, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic figure, .mosaic figure.wide { grid-column: span 1; }
  .mosaic figure:first-child { grid-column: 1 / -1; }
  .band.split { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 520px) {
  .year { grid-template-columns: 1fr 1fr; }
  .bento { grid-auto-rows: 36vw; }
  figcaption { font-size: 13px; left: 8px; bottom: 8px; padding: 3px 11px; }
  .mosaic figure.wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  figure img, .phone { transition: none; }
}
