/* ============================================================
   Forest Retreat Casa Verde Yamanakako
   Direction A — Cinematic. Full-bleed panels, deep forest ground.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Zen+Old+Mincho:wght@400;500;600&display=swap');

:root {
  --ground: #1B1F17;
  --ground-2: #20241C;
  --ground-3: #262C20;
  --ivory: #EDE9E0;
  --ivory-70: rgba(237, 233, 224, 0.72);
  --ivory-50: rgba(237, 233, 224, 0.52);
  --ivory-30: rgba(237, 233, 224, 0.30);
  --ivory-15: rgba(237, 233, 224, 0.15);
  --sage: #97A788;
  --sage-deep: #6E7D60;

  --font-latin-display: 'Cormorant Garamond', Georgia, serif;
  --font-latin-body: 'EB Garamond', Georgia, serif;
  --font-jp: 'Zen Old Mincho', 'Yu Mincho', serif;

  --font-display: var(--font-latin-display);
  --font-body: var(--font-latin-body);

  --max: 1220px;
  --gutter: clamp(22px, 5.5vw, 88px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[lang="ja"] {
  --font-display: var(--font-jp);
  --font-body: var(--font-jp);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 2.05;
  -webkit-font-smoothing: antialiased;
}
html[lang="ja"] body { line-height: 2.15; letter-spacing: 0.045em; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 0.5em;
  line-height: 1.42;
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0.06em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ivory); color: var(--ground);
  padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- Labels / buttons ---------- */
.label {
  display: block;
  font-family: var(--font-latin-display);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-latin-display);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 34px;
  border: 1px solid var(--ivory-30);
  color: var(--ivory);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--ivory); color: var(--ground); border-color: var(--ivory); }
.btn-solid { background: var(--ivory); color: var(--ground); border-color: var(--ivory); }
.btn-solid:hover { background: transparent; color: var(--ivory); border-color: var(--ivory-30); }
.ctas { display: flex; gap: 13px; flex-wrap: wrap; }
.ctas.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background-color .45s var(--ease), padding .35s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(27, 31, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ivory-15);
  padding: 13px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: auto; }
.brand span {
  display: none;
  font-family: var(--font-latin-display);
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-70);
}

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-latin-display);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-70);
  padding-bottom: 3px; position: relative;
  transition: color .3s var(--ease);
}
.main-nav a:hover { color: var(--ivory); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--sage); transition: right .35s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-latin-display);
  font-size: 11.5px; letter-spacing: 0.14em;
}
.lang-switch a { color: var(--ivory-50); padding: 3px 5px; transition: color .3s var(--ease); }
.lang-switch a:hover { color: var(--ivory); }
.lang-switch a.is-current { color: var(--ivory); border-bottom: 1px solid var(--sage); }
.lang-switch span { color: var(--ivory-30); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; padding: 0; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; width: 100%; background: var(--ivory); transition: transform .32s var(--ease), opacity .32s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ground);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--gutter) 40px;
  transform: translateY(-101%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--ivory-15); }
.mobile-nav a {
  display: block; padding: 15px 2px;
  font-family: var(--font-display);
  font-size: 22px; color: var(--ivory);
}
.mobile-nav .lang-switch { margin-top: 30px; font-size: 14px; }

@media (min-width: 1040px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
  .brand span { display: inline; }
}

/* ---------- Panels ---------- */
.panel { position: relative; }

.panel-photo {
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.panel-photo.tall { min-height: 100svh; }
.panel-photo.short { min-height: 66svh; }

.ph {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 32% 22%, rgba(151, 167, 136, 0.28), transparent 62%),
    linear-gradient(158deg, #2E3826 0%, #46523A 46%, #21261C 100%);
}
.ph img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.ph::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,24,16,0.58) 0%, rgba(20,24,16,0.16) 36%, rgba(18,22,14,0.82) 100%);
}
/* Placeholder-only panels keep the film-grain texture */
.ph.is-placeholder::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.026) 0px, rgba(255,255,255,0.026) 1px, transparent 1px, transparent 3px);
}
.ph-tag {
  position: absolute; left: var(--gutter); bottom: 16px; z-index: 3;
  font-family: var(--font-latin-display);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-30);
}
/* Focal points for tightly cropped portraits */
.ph.focus-lower img { object-position: center 62%; }
.ph.focus-upper img { object-position: center 34%; }

.panel-photo .panel-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 150px var(--gutter) clamp(64px, 11vh, 118px);
}
.panel-caption { max-width: 620px; }
.panel-caption h2 {
  font-size: clamp(25px, 3.9vw, 44px);
  margin-bottom: 20px;
}
.panel-caption p { color: var(--ivory-70); font-size: 16px; margin-bottom: 0.85em; }
.panel-caption p:last-child { margin-bottom: 0; }

/* Hero */
.hero .panel-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  justify-content: center;
  min-height: 100svh;
  padding-top: 120px; padding-bottom: clamp(56px, 10vh, 110px);
}
.hero-logo { width: clamp(88px, 13vw, 120px); height: auto; margin-bottom: 20px; }

/* Wordmark — the name spelled out, since the mark itself is too small to read */
.hero-wordmark {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.hero-wordmark .wm-line {
  font-family: var(--font-latin-display);
  font-size: clamp(10px, 1.15vw, 12.5px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sage);
  text-indent: 0.42em;          /* balance the trailing letter-space */
  line-height: 1;
}
.hero-wordmark .wm-name {
  font-family: var(--font-latin-display);
  font-weight: 300;
  font-size: clamp(24px, 4.2vw, 46px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  text-indent: 0.2em;
  line-height: 1;
  white-space: nowrap;
}
/* Hairlines either side of the place name */
.hero-wordmark .wm-place {
  display: flex; align-items: center; gap: 14px;
  color: var(--ivory-70);
  text-indent: 0;
}
.hero-wordmark .wm-place::before,
.hero-wordmark .wm-place::after {
  content: ''; width: clamp(22px, 5vw, 52px); height: 1px;
  background: var(--ivory-30);
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 68px);
  margin-bottom: 22px;
  max-width: 18ch;
}
.hero .hero-sub {
  font-family: var(--font-latin-display);
  font-size: clamp(12px, 1.5vw, 15.5px);
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ivory-70);
  margin-bottom: 42px;
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  transform: translateX(-50%);
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--ivory-30));
}

/* Text panels */
.panel-text { padding: clamp(78px, 14vh, 152px) 0; background: var(--ground); }
.panel-text.alt { background: var(--ground-2); }

.panel-text .wrap { max-width: 780px; }
.panel-text.narrow .wrap { max-width: 660px; }
.panel-text.center { text-align: center; }
.panel-text h2 { font-size: clamp(25px, 3.9vw, 44px); margin-bottom: 24px; }
.panel-text p { color: var(--ivory-70); }
.panel-text p.lead {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: clamp(20px, 2.7vw, 29px);
  line-height: 1.6;
  margin-bottom: 0.9em;
}

/* Staccato lines — the "料理をする。同じ食卓を囲む。" rhythm */
.lines { text-align: center; }
.lines p {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: clamp(17px, 2.3vw, 26px);
  line-height: 2.45;
  margin: 0;
}
.lines p.dim {
  color: var(--ivory-50);
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 2.1;
  margin-top: 32px;
}

/* Pull quote */
.panel-quote {
  padding: clamp(70px, 13vh, 140px) 0;
  background: var(--ground-2);
  text-align: center;
}
/* Quote laid over a full-bleed photo */
.panel-quote.on-photo {
  position: relative;
  min-height: 72svh;
  display: flex; align-items: center;
  padding: clamp(80px, 14vh, 150px) 0;
  overflow: hidden;
}
.panel-quote.on-photo .ph::after {
  background: linear-gradient(180deg, rgba(18,22,14,0.72) 0%, rgba(18,22,14,0.52) 50%, rgba(18,22,14,0.78) 100%);
}
.panel-quote.on-photo .wrap { position: relative; z-index: 2; }

/* Food strip — two supporting frames */
.food-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  background: var(--ground);
}
.food-strip .food-cell { position: relative; aspect-ratio: 4/3; }
.food-strip .food-cell .ph::after {
  background: linear-gradient(180deg, rgba(20,24,16,0.10) 0%, rgba(20,24,16,0.40) 100%);
}
@media (min-width: 700px) {
  .food-strip { grid-template-columns: 1fr 1fr; }
  .food-strip .food-cell { aspect-ratio: 16/10; }
}

.panel-quote p {
  font-family: var(--font-display);
  font-size: clamp(21px, 3.4vw, 40px);
  line-height: 1.66;
  color: var(--ivory);
  max-width: 22ch;
  margin: 0 auto;
}

/* Tag list */
.tag-list {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
}
.tag-list li {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 1px solid var(--ivory-15);
  color: var(--ivory-70);
  border-radius: 999px;
}

/* Art strip — few and large, so it reads as a wall rather than a catalogue */
.art-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ground);
}
.art-strip .art-cell { position: relative; aspect-ratio: 1/1; }
.art-strip .art-cell .ph::after {
  background: linear-gradient(180deg, rgba(20,24,16,0.06) 0%, rgba(20,24,16,0.34) 100%);
}
.art-strip .art-cell .ph img { transition: transform 1.4s var(--ease); }
.art-strip .art-cell:hover .ph img { transform: scale(1.035); }
@media (min-width: 720px) {
  .art-strip .art-cell { aspect-ratio: 4/3; }
}

/* Two ways */
.two-ways {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--ivory-15);
}
.two-way {
  position: relative;
  background: var(--ground);
  padding: clamp(48px, 7vw, 80px) var(--gutter);
  border-bottom: 1px solid var(--ivory-15);
}
.two-way h3 { font-size: clamp(22px, 2.9vw, 32px); margin-bottom: 16px; }
.two-way p { color: var(--ivory-70); font-size: 15.5px; margin-bottom: 26px; }
@media (min-width: 860px) {
  .two-ways { grid-template-columns: 1fr 1fr; }
  .two-way + .two-way { border-left: 1px solid var(--ivory-15); }
  .two-way { padding-left: clamp(40px, 5vw, 70px); padding-right: clamp(40px, 5vw, 70px); }
}

/* Welcome */
.panel-welcome { padding: clamp(80px, 15vh, 160px) 0; background: var(--ground-2); text-align: center; }
.panel-welcome .wrap { max-width: 620px; }
.panel-welcome h2 {
  font-family: var(--font-latin-display);
  font-size: clamp(28px, 4.4vw, 50px);
  font-style: italic;
  margin-bottom: 32px;
}
.panel-welcome .signature {
  font-family: var(--font-latin-display);
  font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage);
  margin: 34px 0 34px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.05s var(--ease), transform 1.05s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #14170F;
  padding: clamp(64px, 10vh, 104px) 0 30px;
  border-top: 1px solid var(--ivory-15);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 46px;
  padding-bottom: 46px; border-bottom: 1px solid var(--ivory-15);
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr 0.8fr 1.4fr; gap: 5vw; } }
.footer-brand img { width: 74px; margin-bottom: 20px; }
.footer-brand p { color: var(--ivory-50); font-size: 14.5px; max-width: 30ch; }
.footer-brand .footer-email { margin-top: 14px; letter-spacing: .02em; }
.footer-brand .footer-email a { color: var(--ivory-70, var(--ivory-50)); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 2px; }
.footer-brand .footer-email a:hover { border-bottom-color: currentColor; }
.footer-col h4 {
  font-family: var(--font-latin-display);
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 20px; font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ivory-70); font-size: 14.5px; }
.footer-col a:hover { color: var(--ivory); }

.contact-form { display: grid; gap: 15px; }
.form-row { display: grid; gap: 15px; }
@media (min-width: 540px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.contact-form label {
  display: block;
  font-family: var(--font-latin-display);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-50); margin-bottom: 7px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  background: rgba(237,233,224,0.05);
  border: 1px solid var(--ivory-15);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 0;
}
.contact-form select option { background: var(--ground); color: var(--ivory); }
.contact-form textarea { resize: vertical; min-height: 88px; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: 12.5px; line-height: 1.8; color: var(--ivory-30); margin: 2px 0 0; }
.form-success { display: none; font-size: 14.5px; color: var(--sage); margin: 6px 0 0; }
.form-success.is-visible { display: block; }

.footer-bottom {
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between;
  font-family: var(--font-latin-display);
  font-size: 11.5px; letter-spacing: 0.12em;
  color: var(--ivory-30);
}

/* ---------- Gallery page ---------- */
.page-head {
  padding: calc(clamp(96px,16vh,150px) + 40px) 0 clamp(40px,7vh,70px);
  text-align: center;
}
.page-head .wrap { max-width: 640px; }
.page-head h1 {
  font-size: clamp(30px, 5vw, 54px);
  margin-bottom: 18px;
}
.page-head p { color: var(--ivory-70); margin: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 3px;
  background: var(--ground);
  padding-bottom: clamp(60px, 10vh, 110px);
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item { position: relative; }
.gallery-item .frame {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(151,167,136,0.10) 0px, rgba(151,167,136,0.10) 2px, transparent 2px, transparent 13px),
    linear-gradient(158deg, #2A3124 0%, #38412F 55%, #20251B 100%);
}
/* Vertical photographs keep their own proportions instead of being cropped to 4:3 */
.gallery-item.portrait .frame { aspect-ratio: 3/4; }
/* Slightly less tall than 3:4, for frames that would otherwise crop at the sides */
.gallery-item.portrait-wide .frame { aspect-ratio: 5/6; }
.gallery-item .frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}
.gallery-item:hover .frame img { transform: scale(1.04); }
.gallery-item figcaption {
  padding: 12px 4px 4px;
  font-size: 13.5px;
  color: var(--ivory-50);
  letter-spacing: 0.02em;
}
/* Where a thing has a story, a quieter second line under the caption */
.gallery-item figcaption .cap-note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--sage);
  letter-spacing: 0.03em;
}
.gallery-item.pending .frame {
  display: flex; align-items: center; justify-content: center;
}
.gallery-item.pending .frame span {
  font-family: var(--font-latin-display);
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-30);
  border: 1px solid var(--ivory-15);
  padding: 8px 16px;
}
.gallery-note {
  padding: 0 0 clamp(60px,10vh,110px);
  text-align: center;
}
.gallery-note .wrap { max-width: 560px; }
.gallery-note p { color: var(--ivory-50); font-size: 14.5px; margin: 0; }

/* ============================================================
   Legibility pass — white type over bright photography
   ============================================================ */

/* Break headlines between clauses, never mid-word */
.nb { display: inline-block; white-space: nowrap; }

/* The header sits over the photo before scroll — give it its own scrim */
.site-header::before {
  content: '';
  position: absolute; inset: 0; bottom: auto;
  height: 190px;
  background: linear-gradient(180deg, rgba(14,18,11,0.78) 0%, rgba(14,18,11,0.42) 45%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .45s var(--ease);
  z-index: -1;
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header .brand img,
.site-header .brand span,
.main-nav a,
.lang-switch a,
.lang-switch span,
.nav-toggle span {
  filter: drop-shadow(0 1px 3px rgba(10,14,8,0.55));
}
.site-header.is-scrolled .brand img,
.site-header.is-scrolled .brand span,
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .lang-switch a,
.site-header.is-scrolled .lang-switch span,
.site-header.is-scrolled .nav-toggle span { filter: none; }
.main-nav a { color: var(--ivory); }
.site-header.is-scrolled .main-nav a { color: var(--ivory-70); }

/* Hero: the garden shot is backlit, so it needs a real scrim */
.hero .ph::after {
  background:
    radial-gradient(ellipse 82% 62% at 50% 54%, rgba(12,16,10,0.62) 0%, rgba(12,16,10,0.34) 62%, rgba(12,16,10,0.10) 100%),
    linear-gradient(180deg, rgba(12,16,10,0.72) 0%, rgba(12,16,10,0.34) 26%, rgba(12,16,10,0.38) 58%, rgba(12,16,10,0.84) 100%);
}
.hero h1 { text-shadow: 0 2px 22px rgba(10,14,8,0.66), 0 1px 4px rgba(10,14,8,0.5); }
.hero .hero-sub { text-shadow: 0 1px 12px rgba(10,14,8,0.7); color: rgba(250,247,241,0.92); }
.hero-logo { filter: drop-shadow(0 3px 18px rgba(10,14,8,0.5)); }
.hero-wordmark .wm-name { text-shadow: 0 2px 20px rgba(10,14,8,0.62), 0 1px 4px rgba(10,14,8,0.45); }
.hero-wordmark .wm-line { text-shadow: 0 1px 12px rgba(10,14,8,0.7); }
.hero .btn { backdrop-filter: blur(2px); }
.hero .btn-solid { box-shadow: 0 2px 18px rgba(10,14,8,0.3); }

/* Captioned photo panels: darken the lower half so headings hold */
.panel-photo:not(.hero) .ph::after {
  background: linear-gradient(180deg, rgba(16,20,12,0.42) 0%, rgba(16,20,12,0.18) 30%, rgba(16,20,12,0.62) 66%, rgba(16,20,12,0.88) 100%);
}
.panel-caption h2 { text-shadow: 0 2px 18px rgba(10,14,8,0.6); }
.panel-caption p { text-shadow: 0 1px 10px rgba(10,14,8,0.6); color: rgba(250,247,241,0.82); }
.panel-caption .label { text-shadow: 0 1px 8px rgba(10,14,8,0.6); color: #B4C4A4; }

/* Quote over a photo */
.panel-quote.on-photo p { text-shadow: 0 2px 20px rgba(10,14,8,0.62); }

/* Slightly brighter body copy on the dark ground */
.panel-text p { color: rgba(237,233,224,0.80); }

/* ---------- Our Story: portrait shown whole, never cropped ---------- */
.story-intro { padding-bottom: clamp(48px, 8vh, 80px); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
  max-width: 1060px;
}
.story-intro .wrap { max-width: 1060px; }
@media (min-width: 860px) {
  .story-grid { grid-template-columns: 0.82fr 1.18fr; gap: 5.5vw; }
}
.story-portrait {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;      /* matches the source exactly — nothing is cut off */
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  justify-self: center;
  background: var(--ground-3);
}
.story-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.story-intro h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  margin-bottom: 0;
}

/* The deer gets a single line, set as a heading */
.panel-photo.short .panel-caption h2 {
  font-size: clamp(20px, 2.8vw, 32px);
  margin-bottom: 0;
  max-width: 22ch;
}

/* Crop the deer panel on the animal's face */
.ph.focus-deer img { object-position: center 46%; }
/* The two chairs sit left of centre — hold them in frame when a narrow screen crops the sides */
.ph.focus-garden img { object-position: 42% center; }
/* The alcove screen sits low in a tall frame — hold the crop on it, not the empty wall above */
.ph.focus-art-alcove img { object-position: center 78%; }
/* Portrait shot in a wide panel — hold the crop on the three faces, not the ceiling */
.ph.focus-dining img { object-position: center 44%; }
@media (max-width: 700px) { .ph.focus-dining img { object-position: center 50%; } }
@media (max-width: 700px) { .ph.focus-deer img { object-position: center 44%; } }

/* A caption-only panel: the paragraph carries the weight, so size it up */
.panel-caption p.lead-caption,
.panel-photo .panel-caption > p:only-of-type {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.85;
  color: var(--ivory);
  max-width: 26ch;
}

/* Typographic quote: hairlines instead of a photograph */
.panel-quote:not(.on-photo) {
  border-top: 1px solid var(--ivory-15);
  border-bottom: 1px solid var(--ivory-15);
}

/* ---------- Gallery: grouped sections ---------- */
.gallery-section-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px;
  padding: clamp(34px, 5.5vh, 58px) 0 20px;
  border-top: 1px solid var(--ivory-15);
}
.gallery-section-head:first-of-type { border-top: none; padding-top: 0; }
.gallery-section-head h2 {
  font-size: clamp(19px, 2.3vw, 26px);
  margin: 0;
}
.gallery-section-head .count {
  font-family: var(--font-latin-display);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-30);
}
.gallery-grid { padding-bottom: clamp(18px, 3vh, 30px); }
.gallery-item.pending .frame { background: var(--ground-3); }
.gallery-item.pending .frame::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(151,167,136,0.055) 0px, rgba(151,167,136,0.055) 2px, transparent 2px, transparent 12px);
}
.gallery-item.pending figcaption { color: var(--ivory-30); }

/* ---------- Gallery: sleeping arrangement and materials ---------- */
.gallery-details { padding: clamp(40px, 7vh, 76px) 0 0; }
.gallery-details .wrap { display: grid; gap: clamp(36px, 6vh, 60px); }
@media (min-width: 900px) {
  .gallery-details .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 6vw; }
}
.detail-block { border-top: 1px solid var(--ivory-15); padding-top: 26px; }
.detail-block h2 { font-size: clamp(19px, 2.3vw, 26px); margin-bottom: 22px; }
.detail-block p { color: var(--ivory-70); font-size: 15.5px; margin: 0 0 1em; }

.detail-list { margin: 0; display: grid; gap: 16px; }
.detail-list > div { display: grid; gap: 3px; }
@media (min-width: 560px) {
  .detail-list > div { grid-template-columns: 7.5em 1fr; gap: 4px 18px; align-items: baseline; }
}
.detail-list dt {
  font-family: var(--font-latin-display);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage);
}
html[lang="ja"] .detail-list dt {
  font-family: var(--font-jp);
  font-size: 13.5px; letter-spacing: 0.08em; text-transform: none;
}
.detail-list dd { margin: 0; color: var(--ivory-70); font-size: 15.5px; }
.detail-foot { color: var(--ivory-50) !important; font-size: 14px !important; }

/* Access block spans both columns of the details grid */
.detail-wide { grid-column: 1 / -1; }
.detail-wide .btn { margin-top: 6px; }
