/* Home: coin hero, manifesto, the two halves of the house (order follows the coin), evenings, location. */

.home { display: flex; flex-direction: column; }
.home > * { order: 6; }
.home > .hero { order: 0; }
.home > .manifest { order: 1; }
.home > .seam-wrap { order: 2; }
.home > .half-stol { order: 3; }
.home > .half-soba { order: 4; }
:root[data-side="soba"] .home > .half-soba { order: 3; }
:root[data-side="soba"] .home > .half-stol { order: 4; }

/* ---------- hero: the coin on the table of the house ---------- */
.hero {
  position: relative; display: grid; place-items: center; align-content: center; gap: clamp(.9rem, 2.4vh, 1.8rem);
  min-height: 100svh; padding: 110px var(--gutter) 120px; text-align: center; overflow: hidden; isolation: isolate;
  color: var(--ink);
}

/* two photographs, one per side; the hotel opens out of the coin like an iris */
.hero__bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 28s var(--ease-io) infinite alternate; }
.hero__bg--soba { clip-path: circle(0% at 50% 44%); transition: clip-path 1.25s var(--ease-io); }
:root[data-side="soba"] .hero__bg--soba { clip-path: circle(150% at 50% 44%); }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }

/* light over the photographs: a dark room lit by the coin, or linen morning light */
.hero__veil { position: absolute; inset: 0; z-index: -2; pointer-events: none; transition: opacity var(--theme-t) var(--ease-io); }
.hero__veil--stol {
  background:
    radial-gradient(circle at 50% 44%, rgba(14, 11, 8, .35) 0, rgba(14, 11, 8, .78) 38%, rgba(14, 11, 8, .94) 75%),
    linear-gradient(0deg, rgba(14, 11, 8, .95), transparent 40%),
    linear-gradient(180deg, rgba(14, 11, 8, .85), transparent 22%);
}
.hero__veil--stol::after { content: ''; position: absolute; inset: 0; background: radial-gradient(55% 40% at 50% 112%, rgba(224, 112, 58, .34), transparent 70%); }
.hero__veil--soba {
  opacity: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(236, 229, 212, .15) 0, rgba(236, 229, 212, .7) 40%, rgba(236, 229, 212, .9) 80%),
    linear-gradient(0deg, rgba(236, 229, 212, 1) 4%, transparent 45%),
    linear-gradient(180deg, rgba(236, 229, 212, .95) 6%, transparent 26%);
}
:root[data-side="soba"] .hero__veil--stol { opacity: 0; }
:root[data-side="soba"] .hero__veil--soba { opacity: 1; }

/* faint embers drifting up on the restaurant side */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity var(--theme-t); }
:root[data-side="soba"] .embers { opacity: 0; }
.embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #ff9b52;
  box-shadow: 0 0 6px 1px rgba(255, 140, 60, .8); opacity: 0; animation: ember var(--dur, 9s) linear infinite; animation-delay: var(--del, 0s);
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translate(var(--dx, 20px), -80vh); opacity: 0; }
}

/* museum-case frame with gilt corners */
.hero__frame { position: absolute; inset: clamp(76px, 11vh, 92px) clamp(10px, 2vw, 28px) clamp(10px, 2vw, 28px); z-index: -1; pointer-events: none; border: 1px solid var(--line); }
.hero__frame i { position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; border-width: 0; }
.hero__frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.hero__frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.hero__frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.hero__frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.hero__side {
  display: inline-flex; align-items: center; gap: .9rem; font: 600 .7rem/1 var(--f-body); letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.hero__side::before, .hero__side::after { content: ''; width: 2.4rem; height: 1px; background: currentColor; opacity: .6; }
.hero__line { font: 500 clamp(2.1rem, 1.2rem + 3.6vw, 4.6rem)/1.02 var(--f-display); letter-spacing: .05em; min-height: 1.05em; text-wrap: balance; }
.hero__line span, .hero__side span, .hero__go span { display: inline-block; animation: lineIn .9s var(--ease) both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(14px); } }
.hero__go { margin-top: .2rem; }

.hero__bar {
  position: absolute; left: clamp(10px, 2vw, 28px); right: clamp(10px, 2vw, 28px); bottom: clamp(10px, 2vw, 28px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem;
  font: 500 .7rem/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.hero__bar > :first-child { text-align: left; }
.hero__bar > :last-child { text-align: right; }
.hero__bar b { color: var(--gold); font-weight: 600; }
.hero__bar .coin-hint { margin: 0; }
@media (max-width: 760px) {
  .hero { padding-bottom: 150px; }
  .hero__bar { grid-template-columns: 1fr 1fr; padding: 1rem; font-size: .62rem; letter-spacing: .16em; }
  .hero__bar .coin-hint { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}

/* ---------- manifesto ---------- */
.manifest { text-align: center; }
.manifest .numeral { font-size: .9rem; }
.manifest h2 { font-size: var(--step-4); line-height: 1.02; margin: 1.4rem auto 2rem; max-width: 15ch; }
.manifest p.lead { margin-inline: auto; max-width: 46ch; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); list-style: none; padding: 0; }
.pillars li { display: grid; gap: .5rem; justify-items: center; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.pillars .numeral { font-size: var(--step-2); }

/* ---------- restaurant half ---------- */
.stol-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.stol-grid .reel { position: sticky; top: 110px; max-width: 420px; }
.stol-grid .sec-head h2 { max-width: 13ch; }
.stol-grid .link-arrow { margin-top: 2.4rem; }
@media (max-width: 860px) {
  .stol-grid { grid-template-columns: 1fr; }
  .stol-grid .reel { position: relative; top: 0; max-width: 340px; }
}

/* ---------- hotel half ---------- */
.rooms-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); }
.room-card { display: grid; gap: .9rem; text-decoration: none; }
.room-card .frame { aspect-ratio: 3 / 4; }
.room-card img { transition: transform 1.2s var(--ease); }
.room-card:hover img { transform: scale(1.05); }
.room-card .numeral { font-size: .82rem; }
.room-card h3 { font-size: var(--step-1); letter-spacing: .05em; }
.room-card p { font-size: .9rem; color: var(--ink-2); }
.room-card:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.half-soba .sec-head { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 960px) { .rooms-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .half-soba .sec-head { grid-template-columns: 1fr; } }

/* ---------- seam: one house, two sides ---------- */
.seam { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.seam > div { position: relative; display: grid; align-content: end; gap: 1rem; padding: clamp(2rem, 5vw, 5rem); overflow: hidden; isolation: isolate; }
.seam img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.seam > div::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.seam .t-stol::before { background: linear-gradient(180deg, rgba(14, 11, 8, .1), rgba(14, 11, 8, .88)); }
.seam .t-soba::before { background: linear-gradient(180deg, rgba(236, 229, 212, 0), rgba(236, 229, 212, .94) 78%); }
.seam > div:hover img { transform: scale(1.04); }
.seam h3 { font-size: var(--step-3); max-width: 12ch; }
.seam p { max-width: 36ch; color: var(--ink-2); }
.seam__mid {
  position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 132px; height: 132px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbe7a6, #c9a24f 45%, #7d5a1f 100%);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 236, 170, .4);
  font: 600 .7rem/1.3 var(--f-display); letter-spacing: .16em; color: #4d3610; text-align: center;
}
.seam-wrap { position: relative; }
@media (max-width: 760px) { .seam { grid-template-columns: 1fr; } .seam > div { min-height: 64vh; } }

/* ---------- evenings ---------- */
.evening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.evening .frame { aspect-ratio: 8 / 5; }
.evening dl { display: grid; grid-template-columns: auto 1fr; gap: .8rem 2rem; margin: 2rem 0 0; }
.evening dt { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); padding-top: .25rem; }
.evening dd { margin: 0; }
@media (max-width: 860px) { .evening { grid-template-columns: 1fr; } }

/* ---------- location ---------- */
.where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.where address { font-style: normal; font-size: var(--step-1); line-height: 1.5; margin: 1.6rem 0; }
.dist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dist li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dist b { font-weight: 500; }
.dist span { color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }
