/* =========================================================
   APEX SOLUTION — styles.css
   Hand-written stylesheet for the portable static version.
   ========================================================= */

:root {
  --maroon: #79374C;
  --maroon-dark: #5f2b3b;
  --ink: #333333;
  --ink-soft: #5a5a5a;
  --cream: #FBF8E5;
  --paper: #ffffff;
  --alt: #faf6f3;
  --line: #e7ddd6;
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

section { scroll-margin-top: 92px; }

.section { padding: 84px 20px; }
.section-alt { background: var(--alt); }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  margin: 0 0 6px;
  color: var(--maroon);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.section-lead {
  margin: 0 0 40px;
  color: var(--ink-soft);
  max-width: 760px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--maroon);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  background: transparent;
}
.btn-solid { background: var(--maroon); color: #fff; }
.btn-solid:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); }
.btn-outline { color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-outline-light { color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--maroon); }
.btn-wide { width: 100%; text-align: center; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-chip {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 5px 10px;
  line-height: 0;
}
.logo-chip img { height: 40px; width: auto; }
.brand { text-decoration: none; flex-shrink: 0; }

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.92;
}
.main-nav a:hover { opacity: 1; text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }

.lang-switch { display: flex; border: 1px solid rgba(255,255,255,0.65); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  padding: 6px 12px;
  cursor: pointer;
}
.lang-switch button.active { background: #fff; color: var(--maroon); font-weight: 700; }
.site-header .btn { padding: 8px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { background: var(--paper); padding: 64px 20px 84px; }
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--maroon);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 22px; }
.hero-sub { color: var(--ink-soft); margin: 0 0 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(60, 30, 40, 0.18);
}

/* ---------- Services ---------- */
.banner-photo { margin-bottom: 44px; }
.banner-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  background: #fff;
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.icon-chip svg { width: 26px; height: 26px; }
.icon-chip-sm { width: 36px; height: 36px; margin-bottom: 0; }
.icon-chip-sm svg { width: 19px; height: 19px; }
.service-card h3 { margin: 0 0 10px; font-size: 1.12rem; }
.service-card p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: center;
}
.step-num {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--maroon);
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(60, 30, 40, 0.16);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 46px;
}
/* Connector line joining the step badges (4-column layout only) */
@media (min-width: 981px) {
  .step-card::before {
    content: "";
    position: absolute;
    top: 51px;
    left: -11px;
    right: -11px;
    height: 2px;
    background: rgba(121, 55, 76, 0.35);
  }
  .step-card:first-child::before { left: 50%; }
  .step-card:last-child::before { right: 50%; }
}
.step-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.step-card p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Ecosystem infographic ---------- */
.eco-diagram {
  position: relative;
  max-width: 980px;
  height: 660px;
  margin: 10px auto 30px;
}
.eco-diagram::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(121, 55, 76, 0.35);
  border-radius: 50%;
}
.eco-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}
.eco-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--maroon);
  box-shadow: 0 12px 30px rgba(60, 30, 40, 0.22);
}
.eco-center-label {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  background: var(--maroon);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.eco-node {
  position: absolute;
  width: 216px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(60, 30, 40, 0.08);
}
.eco-icon { width: 34px; height: 34px; color: var(--maroon); margin: 0 auto 6px; }
.eco-node h3 { margin: 0 0 4px; font-size: 0.98rem; }
.eco-node p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.55; }
.eco-n1 { left: 0; top: 6px; }
.eco-n2 { right: 0; top: 6px; }
.eco-n3 { right: 0; top: 50%; transform: translateY(-50%); }
.eco-n4 { right: 0; bottom: 6px; }
.eco-n5 { left: 0; bottom: 6px; }
.eco-n6 { left: 0; top: 50%; transform: translateY(-50%); }

.eco-beer { max-width: 560px; margin: 26px auto 0; text-align: center; }
.eco-beer img { width: 100%; border-radius: 16px; }
.eco-beer figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 0.92rem; }
.eco-closing {
  margin: 40px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--maroon);
}

/* ---------- Split blocks (kitchen / owners) ---------- */
.kitchen, .owners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kitchen-photo img, .owners-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(60, 30, 40, 0.15);
}
.kitchen-text h2, .owners-text h2 { margin-top: 0; }
.kitchen-text p:not(.section-eyebrow), .owners-text p:not(.section-eyebrow) { color: var(--ink-soft); }
.kitchen-text .btn { margin-top: 10px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}
.gallery-item figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Pricing ---------- */
.pricing-band { background: var(--cream); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
}
.price-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.plan-lead { margin: 0; color: var(--ink-soft); font-size: 0.92rem; text-align: left; }
.plan-points { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; }
.plan-points li { display: flex; align-items: center; gap: 11px; padding: 9px 2px; }
.plan-points li + li { border-top: 1px solid var(--line); }
.plan-point-text { font-weight: 600; font-size: 0.92rem; color: var(--ink); line-height: 1.5; }
.price { margin: 0 0 14px; }
.price-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--maroon);
}
.price-per { color: var(--ink-soft); font-size: 0.95rem; }
.price-popular { border: 2px solid var(--maroon); }
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--maroon);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 16px;
  border-radius: 999px;
}
.pricing-note { margin: 26px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Inquiry form ---------- */
.contact-inner { max-width: 720px; }
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 30px;
  background: #fff;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; font-size: 0.94rem; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid #cfc4bc;
  border-radius: 9px;
  background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--maroon);
  outline-offset: 1px;
  border-color: var(--maroon);
}
.form-note { margin: 16px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.form-sent {
  margin: 14px 0 0;
  background: var(--cream);
  border: 1px solid var(--maroon);
  color: var(--maroon);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Legal ---------- */
.legal-inner { max-width: 860px; }
.legal-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 30px 12px;
  margin-bottom: 26px;
  scroll-margin-top: 92px;
}
.legal-block h3 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--maroon);
  font-size: 1.25rem;
}
.legal-block h4 { margin: 20px 0 6px; font-size: 1rem; }
.legal-block p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }
.legal-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  font-size: 0.94rem;
  vertical-align: top;
}
.legal-table th { width: 30%; background: var(--alt); font-weight: 700; }
.legal-table td { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon); color: #fff; padding: 54px 20px 40px; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 34px 56px;
  align-items: flex-start;
}
.footer-brand .logo-chip img { height: 46px; }
.footer-brand p { margin: 14px 0 0; font-size: 0.92rem; opacity: 0.9; }
.footer-contact p { margin: 0 0 8px; font-size: 0.95rem; }
.footer-legal { display: flex; flex-direction: column; gap: 8px; }
.footer-legal a { color: #fff; text-decoration: none; font-size: 0.94rem; opacity: 0.92; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.footer-note { width: 100%; margin: 6px 0 0; font-size: 0.8rem; opacity: 0.75; }
.footer-copy { width: 100%; margin: 0; font-size: 0.85rem; opacity: 0.85; }

/* ---------- Mobile tab bar ---------- */
.mobile-tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-diagram { height: 600px; }
  .eco-diagram::before { width: 470px; height: 470px; }
  .eco-center { width: 250px; height: 250px; }
  .eco-node { width: 190px; }
}

@media (max-width: 860px) {
  .hero-inner, .kitchen, .owners { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 2.1rem; }
  .main-nav { display: none; }
  .eco-diagram { height: auto; }
  .eco-diagram::before { display: none; }
  .eco-center { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 34px; width: 250px; height: 250px; }
  .eco-node { position: static; transform: none; width: auto; margin-bottom: 14px; }
}

@media (max-width: 560px) {
  body { padding-bottom: 56px; }
  .section { padding: 60px 16px; }
  .service-grid, .step-list, .price-grid, .gallery-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; padding: 8px 14px; }
  .logo-chip img { height: 32px; }
  .site-header .btn { display: none; }
  .lang-switch button { padding: 5px 9px; font-size: 0.78rem; }
  .inquiry-form { padding: 26px 20px; }
  .legal-table th { width: 38%; }
  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--maroon);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  }
  .mobile-tabbar a {
    flex: 1;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 14px 4px;
  }
}

/* =========================================================
   Motion & lightbox
   All animation is transform/opacity only. Hidden start
   states are gated behind the `js` class (set by an inline
   script in <head>), so content can never get stuck
   invisible when JavaScript is off.
   ========================================================= */

/* ---------- Hover lifts ---------- */
.btn:hover { transform: translateY(-2px); }
.service-card, .price-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(60, 30, 40, 0.12); }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(60, 30, 40, 0.13); }

/* ---------- Hero: slow Ken Burns zoom ---------- */
.hero-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(60, 30, 40, 0.18);
}
.hero-photo img {
  border-radius: 0;
  box-shadow: none;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- Clickable photos ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.gallery-item { border-radius: 14px; overflow: hidden; }
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.eco-beer { border-radius: 16px; overflow: hidden; }
.eco-beer img { transition: transform 0.5s ease; }
.eco-beer:hover img { transform: scale(1.04); }

.owners-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(60, 30, 40, 0.15);
}
.owners-photo img { border-radius: 0; box-shadow: none; transition: transform 0.5s ease; }
.owners-photo:hover img { transform: scale(1.04); }

.eco-center { cursor: zoom-in; transition: transform 0.35s ease; }
.eco-center:hover { transform: translate(-50%, -50%) scale(1.03); }

/* ---------- Ecosystem: staggered node pop-in + chart growth ---------- */
.js .eco-diagram::before { opacity: 0; transition: opacity 1.1s ease 0.15s; }
.js .eco-diagram.eco-in::before { opacity: 1; }

.js .eco-node { opacity: 0; }
.js .eco-n1, .js .eco-n2, .js .eco-n4, .js .eco-n5 { transform: translateY(18px) scale(0.92); }
.js .eco-n3, .js .eco-n6 { transform: translateY(calc(-50% + 18px)) scale(0.92); }
.js .eco-diagram.eco-in .eco-node {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.js .eco-diagram.eco-in .eco-n1 { transform: translateY(0) scale(1); transition-delay: 0.05s; }
.js .eco-diagram.eco-in .eco-n2 { transform: translateY(0) scale(1); transition-delay: 0.17s; }
.js .eco-diagram.eco-in .eco-n3 { transform: translateY(-50%) scale(1); transition-delay: 0.29s; }
.js .eco-diagram.eco-in .eco-n4 { transform: translateY(0) scale(1); transition-delay: 0.41s; }
.js .eco-diagram.eco-in .eco-n5 { transform: translateY(0) scale(1); transition-delay: 0.53s; }
.js .eco-diagram.eco-in .eco-n6 { transform: translateY(-50%) scale(1); transition-delay: 0.65s; }

/* Bar chart bars grow from the baseline */
.js .eco-n5 .eco-chart rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}
.js .eco-diagram.eco-in .eco-n5 .eco-chart rect { transform: scaleY(1); transition: transform 0.65s ease 0.58s; }
.js .eco-diagram.eco-in .eco-n5 .eco-chart rect:nth-of-type(2) { transition-delay: 0.70s; }
.js .eco-diagram.eco-in .eco-n5 .eco-chart rect:nth-of-type(3) { transition-delay: 0.82s; }

/* Line chart draws itself (dash lengths exceed the path lengths) */
.js .eco-n6 .eco-chart path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.js .eco-diagram.eco-in .eco-n6 .eco-chart path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease 0.78s;
}

/* ---------- Steps: connector line draws in ---------- */
@media (min-width: 981px) {
  .js .step-card::before { transform: scaleX(0); transform-origin: left center; }
  .js .step-list.steps-in .step-card::before { transform: scaleX(1); transition: transform 0.8s ease; }
  .js .step-list.steps-in .step-card:nth-child(2)::before { transition-delay: 0.2s; }
  .js .step-list.steps-in .step-card:nth-child(3)::before { transition-delay: 0.4s; }
  .js .step-list.steps-in .step-card:nth-child(4)::before { transition-delay: 0.6s; }
}

/* ---------- Lightbox ---------- */
body.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 10, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-figure { margin: 0; max-width: min(92vw, 1000px); text-align: center; }
.lb-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox.open .lb-figure img { transform: scale(1); }
.lb-figure figcaption { margin-top: 14px; color: #fff; font-size: 1rem; }
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: var(--maroon); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---------- Mobile adjustments for the animated pieces ---------- */
@media (max-width: 860px) {
  .js .eco-n3, .js .eco-n6 { transform: translateY(18px) scale(0.92); }
  .js .eco-diagram.eco-in .eco-n3, .js .eco-diagram.eco-in .eco-n6 { transform: none; }
  .eco-center:hover { transform: scale(1.03); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* =========================================================
   Photo motion: hero crossfade, soft photo fade-in,
   warm golden glow and shine sweeps. Opacity / transform /
   filter only, no layout shift. Extra slides and hidden
   start states are gated behind the `js` class, so with
   JavaScript off only the first hero photo shows and every
   photo is simply visible.
   ========================================================= */

/* ---------- Hero crossfade ---------- */
.hero-photo { position: relative; }
.hero-photo .hero-slide + .hero-slide { display: none; }
.js .hero-photo .hero-slide + .hero-slide {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.js .hero-photo .hero-slide.is-active { opacity: 1; }

/* ---------- Warm golden glow (slow breathing) ---------- */
.hero-photo { animation: glow-hero 7s ease-in-out infinite; }
@keyframes glow-hero {
  0%, 100% { box-shadow: 0 14px 34px rgba(60, 30, 40, 0.18), 0 0 28px rgba(238, 170, 60, 0.13); }
  50%      { box-shadow: 0 14px 34px rgba(60, 30, 40, 0.18), 0 0 54px rgba(238, 170, 60, 0.27); }
}
.eco-center img { animation: glow-eco 7s ease-in-out -1.6s infinite; }
@keyframes glow-eco {
  0%, 100% { box-shadow: 0 12px 30px rgba(60, 30, 40, 0.22), 0 0 26px rgba(238, 170, 60, 0.13); }
  50%      { box-shadow: 0 12px 30px rgba(60, 30, 40, 0.22), 0 0 52px rgba(238, 170, 60, 0.27); }
}
.owners-photo { animation: glow-owners 7s ease-in-out -3.4s infinite; }
@keyframes glow-owners {
  0%, 100% { box-shadow: 0 12px 28px rgba(60, 30, 40, 0.15), 0 0 26px rgba(238, 170, 60, 0.12); }
  50%      { box-shadow: 0 12px 28px rgba(60, 30, 40, 0.15), 0 0 50px rgba(238, 170, 60, 0.25); }
}

/* ---------- Photo fade-in on scroll ---------- */
.js img.photo-fade {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1.1s ease, filter 1s ease;
}
.js img.photo-fade.photo-in {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* ---------- Shine sweep ---------- */
.shine-host { position: relative; }
.shine-host::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.34) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-150%) skewX(-16deg);
  transition: transform 1s ease;
  pointer-events: none;
  z-index: 3;
}
.shine-host:hover::after { transform: translateX(270%) skewX(-16deg); }
.shine-host.shine-play::after { animation: shine-sweep 1.15s ease; }
@keyframes shine-sweep {
  from { transform: translateX(-150%) skewX(-16deg); }
  to   { transform: translateX(270%) skewX(-16deg); }
}

/* ---------- Reduced motion: rest, don't remove content ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-photo img { animation: none; }
  .hero-photo, .eco-center img, .owners-photo { animation: none; }
  .js .hero-photo .hero-slide + .hero-slide { display: none; }
  .js img.photo-fade { opacity: 1; transform: none; filter: none; }
  .shine-host::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .eco-node { opacity: 1; }
  .js .eco-n1, .js .eco-n2, .js .eco-n4, .js .eco-n5 { transform: none; }
  .js .eco-n3, .js .eco-n6 { transform: translateY(-50%); }
  .js .eco-diagram::before { opacity: 1; }
  .js .eco-n5 .eco-chart rect { transform: scaleY(1); }
  .js .eco-n6 .eco-chart path { stroke-dashoffset: 0; }
  .btn:hover, .service-card:hover, .price-card:hover,
  .gallery-item:hover img, .eco-beer:hover img, .owners-photo:hover img { transform: none; }
  .eco-center:hover { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .js .eco-n3, .js .eco-n6 { transform: none; }
  .eco-center:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 981px) {
  .js .step-card::before { transform: scaleX(1); }
}

/* =========================================================
   Motion upgrade: Wix-style entrances.
   - Hero: strip wipe on the photo, headline lines stagger up,
     sub-text and buttons fade in after.
   - Scroll entrances are typed: headings fade-up and settle,
     text fades in from pale, photos slide in from the side with
     a soft clip reveal, large photos get a vertical-strip
     blinds reveal, card grids stagger in one by one.
   - Large split photos drift with a gentle parallax.
   Entrances last ~0.9-1.2s on a shared ease-out curve and run
   once. Start states live only under .js / JS-added classes,
   so a no-JS page is fully static and fully visible.
   ========================================================= */

/* Never let entrance transforms widen the page */
html, body { overflow-x: clip; }

/* Frames for the blinds veils and parallax clipping */
.banner-photo { position: relative; border-radius: 16px; overflow: hidden; }
.kitchen-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(60, 30, 40, 0.15);
}
.kitchen-photo img { border-radius: 0; box-shadow: none; }
.eco-center-label { z-index: 3; }

/* ---------- Hero entrance ---------- */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.hero-veil i {
  flex: 1 1 0;
  background: var(--paper);
  transform-origin: top center;
}
.js .hero-in .hero-veil i {
  animation: strip-away 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--i, 0) * 0.07s);
}
@keyframes strip-away {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0); }
}

.js .h1-line { display: block; overflow: hidden; }
.js .h1-line-in { display: block; }
.js .hero-in .h1-line-in {
  animation: hero-line-up 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.5s + var(--i, 0) * 0.16s);
}
@keyframes hero-line-up {
  from { opacity: 0; transform: translateY(62%); }
  to   { opacity: 1; transform: translateY(0); }
}
.js .hero-settled .h1-line-in { animation: none; }

.js .hero-in .eyebrow   { animation: hero-fade-up 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.js .hero-in .hero-sub  { animation: hero-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both; }
.js .hero-in .hero-buttons { animation: hero-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 1.25s both; }
.js .hero-in .hero-note { animation: hero-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 1.45s both; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Typed scroll entrances ---------- */
.js .rv-head {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .rv-head.in { opacity: 1; transform: translateY(0); }

.js .rv-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.95s ease-out,
              transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .rv-text.in { opacity: 1; transform: translateY(0); }

.js .rv-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease-out,
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .rv-card.in { opacity: 1; transform: translateY(0); }

.js .rv-slide-l, .js .rv-slide-r {
  transition: opacity 1.05s ease-out,
              transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
              clip-path 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .rv-slide-l { opacity: 0; transform: translateX(-46px); clip-path: inset(0 16% 0 0); }
.js .rv-slide-r { opacity: 0; transform: translateX(46px); clip-path: inset(0 0 0 16%); }
.js .rv-slide-l.in, .js .rv-slide-r.in {
  opacity: 1;
  transform: translateX(0);
  clip-path: inset(0 0 0 0);
}

/* ---------- Blinds reveal for the large photos ---------- */
.blinds { position: relative; }
.blinds-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.blinds-veil i {
  flex: 1 1 0;
  background: var(--paper);
  transform-origin: top center;
}
.section-alt .blinds-veil i { background: var(--alt); }
.eco-center .blinds-veil { border-radius: 50%; }
.blinds-in .blinds-veil i {
  animation: strip-away 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

/* ---------- Gentle parallax ---------- */
.px-img { will-change: transform; }
.owners-photo img.px-img { transition: none; }

/* ---------- Reduced motion: a static, fully visible page ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rv-head, .js .rv-text, .js .rv-card,
  .js .rv-slide-l, .js .rv-slide-r {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .hero-veil, .blinds-veil { display: none; }
  .js .hero-in .eyebrow, .js .hero-in .hero-sub,
  .js .hero-in .hero-buttons, .js .hero-in .hero-note,
  .js .hero-in .h1-line-in { animation: none; }
  .px-img { will-change: auto; }
}
