/* ============================================================
   Ilse Tanis — concept studio for eco-stays
   Lightweight, dependency-free styles
   ============================================================ */

:root {
  --cream: #f7f2e8;
  --cream-2: #efe7d7;
  --sand: #e4d8c0;
  --forest: #2f4a3c;
  --forest-deep: #223a2e;
  --clay: #c0744f;
  --clay-soft: #d08a66;
  --ink: #23281f;
  --ink-soft: #55594c;
  --line: rgba(47, 74, 60, 0.14);
  --radius: 18px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 1rem;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 3rem);
}

.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}

.section__intro {
  margin-top: 1.2rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1.02rem; }
.btn--primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 10px 28px -14px rgba(47, 74, 60, 0.8);
}
.btn--primary:hover { background: var(--forest-deep); transform: translateY(-2px); }
.btn--ghost { color: var(--forest-deep); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--forest); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  background: rgba(247, 242, 232, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--forest-deep);
}
.nav__tag {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.25s; }
.nav__links a:hover { color: var(--forest-deep); }
.nav__cta {
  color: var(--forest-deep) !important;
  border: 1.5px solid var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.25s, background 0.25s;
}
.nav__cta:hover { border-color: var(--forest); background: rgba(47,74,60,0.04); }
@media (max-width: 720px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 6rem clamp(1.5rem, 6vw, 5rem) clamp(5rem, 10vh, 8rem);
  overflow: hidden;
  color: #fff;
}
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/resort-1.jpg') center/cover no-repeat;
  transform: scale(1.06);
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.17) translate(-1.5%, -1.5%); }
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,15,11,0.48) 0%, transparent 30%, transparent 44%, rgba(9,15,11,0.82) 100%),
    linear-gradient(90deg, rgba(9,15,11,0.55) 0%, transparent 58%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 44px rgba(0,0,0,0.4);
}
.hero__lead {
  margin: 1.5rem 0 0;
  max-width: 540px;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: rgba(255,255,255,0.9);
}
.hero__actions { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--clay);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* light variants for text over imagery */
.eyebrow--light { color: rgba(255,255,255,0.85); }
.btn--light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ---------- Experience band (cinematic) ---------- */
.expband {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  color: #fff;
}
.expband__media {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/resort-2.jpg') center/cover no-repeat;
  transform: scale(1.04);
  animation: kenburns 28s ease-in-out infinite alternate;
}
.expband__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(9,15,11,0.82) 0%, rgba(9,15,11,0.45) 48%, rgba(9,15,11,0.1) 100%);
}
.expband__inner { position: relative; z-index: 2; max-width: 540px; }
.expband__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  color: #fff;
}
.expband__text { margin: 1.1rem 0 1.9rem; color: rgba(255,255,255,0.88); max-width: 46ch; }

/* ---------- What we do ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.pillar {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -30px rgba(47,74,60,0.5); }
.pillar__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--clay);
  font-weight: 600;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0.8rem 0 0.7rem;
  color: var(--forest-deep);
}
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Concept (photographic showcase) ---------- */
/* ---------- Cases ---------- */
.case-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  isolation: isolate;
  box-shadow: 0 28px 64px -36px rgba(47, 74, 60, 0.65);
}
.case-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease);
}
.case-card:hover .case-card__img { transform: scale(1.07); }
.case-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,19,22,0.82) 0%, rgba(14,19,22,0.42) 46%, rgba(14,19,22,0) 74%);
}
.case-card__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  max-width: 580px;
  color: var(--cream);
}
.case-card__index {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay-soft);
  font-weight: 600;
}
.case-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.case-card__meta {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.72);
  margin-top: 0.15rem;
}
.case-card__text {
  margin-top: 0.7rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  color: rgba(247, 242, 232, 0.9);
  max-width: 44ch;
}
.case-card__cue {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: transform 0.3s var(--ease);
}
.case-card:hover .case-card__cue { transform: translateX(5px); }
@media (max-width: 680px) {
  .case-card { aspect-ratio: 4 / 5; }
  .case-card__scrim { background: linear-gradient(0deg, rgba(14,19,22,0.9) 8%, rgba(14,19,22,0.4) 48%, rgba(14,19,22,0.05) 100%); }
}

.concept { background: linear-gradient(180deg, transparent, rgba(228,216,192,0.35) 30%, transparent); }
.showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.showcase__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -40px rgba(47,74,60,0.75);
}
.showcase__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.03);
  transition: opacity 0.8s var(--ease), transform 7s ease;
}
.showcase__img.is-active { opacity: 1; transform: scale(1.09); }
.showcase__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(9,15,11,0.5) 100%);
}
.showcase__tag {
  position: absolute; left: 1rem; bottom: 0.85rem; z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.concept__stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 50% 40%, #fbf8f0, #ece1cb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.scene__svg { width: 100%; height: 100%; animation: sway 12s ease-in-out infinite; }
@keyframes sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hotspots */
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}
.hotspot__dot {
  position: absolute;
  inset: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  background: var(--clay);
  border: 2px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(192,116,79,0.6);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.hotspot__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--clay);
  opacity: 0.6;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.1); opacity: 0; }
}
.hotspot:hover .hotspot__dot,
.hotspot:focus-visible .hotspot__dot { transform: translate(-50%, -50%) scale(1.25); background: var(--forest); }
.hotspot.is-active .hotspot__dot { background: var(--forest); transform: translate(-50%, -50%) scale(1.3); }
.hotspot:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 50%; }

/* Detail panel */
.detail__card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  min-height: 260px;
  box-shadow: 0 24px 60px -40px rgba(47,74,60,0.6);
}
.detail__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
}
.detail__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--forest-deep);
  margin: 0.6rem 0 0.8rem;
  line-height: 1.12;
}
.detail__body { color: var(--ink-soft); }
.detail__card.is-swapping { opacity: 0; transform: translateY(8px); }
.detail__card { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.detail__dots {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.detail__dots li {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s, transform 0.25s;
}
.detail__dots li.on { background: var(--clay); transform: scale(1.3); }

@media (max-width: 860px) {
  .concept__stage { grid-template-columns: 1fr; }
}

/* ---------- How we work ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.4rem;
  border-top: 2px solid var(--line);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.22rem;
  color: var(--forest-deep);
  margin-bottom: 0.5rem;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.about__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(150deg, var(--forest), var(--clay));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -40px rgba(47,74,60,0.7);
}
.about__initials {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.05em;
}
.about__text p { color: var(--ink-soft); margin-top: 1rem; max-width: 56ch; }
.about__values {
  font-family: var(--serif);
  font-style: italic;
  color: var(--forest-deep) !important;
  font-size: 1.15rem;
  margin-top: 1.5rem !important;
}
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } .about__portrait { max-width: 320px; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--forest);
  color: var(--cream);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.contact__inner .eyebrow { color: var(--clay-soft); }
.contact__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  line-height: 1.1;
  color: var(--cream);
}
.contact__lead { margin: 1.2rem auto 2rem; max-width: 520px; color: rgba(247,242,232,0.82); }
.contact .btn--primary { background: var(--clay); color: #fff; box-shadow: 0 14px 34px -16px rgba(192,116,79,0.9); }
.contact .btn--primary:hover { background: var(--clay-soft); }
.contact__note { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(247,242,232,0.7); }
.contact__note a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.2rem clamp(1.25rem, 5vw, 3rem) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* ============================================================
   Rotating 3D concept model (pure CSS 3D)
   ============================================================ */
.model {
  position: relative;
  width: 100%;
  height: clamp(360px, 40vw, 470px);
  perspective: 1150px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.model.is-grabbing { cursor: grabbing; }
.model__tilt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: translateY(38px) rotateX(-22deg);
}
.model__world {
  position: relative;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.m-group { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.box { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.f {
  position: absolute; left: 0; top: 0;
  backface-visibility: hidden;
  background: #cbb189;
}

/* ground shadow */
.m-shadow {
  position: absolute; left: 0; top: 0;
  width: 280px; height: 220px;
  transform: translate(-50%, -50%) rotateX(90deg);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.20), transparent 66%);
}

/* ----- plinth (the plot) : 250 x 210 x 20 ----- */
.plinth { transform: translateY(-10px); }
.box--plinth > .f--top    { width:250px; height:210px; transform:translate(-50%,-50%) rotateX(90deg)  translateZ(10px); background:#8aa268; }
.box--plinth > .f--bottom { width:250px; height:210px; transform:translate(-50%,-50%) rotateX(-90deg) translateZ(10px); background:#5f4f33; }
.box--plinth > .f--front  { width:250px; height:20px;  transform:translate(-50%,-50%) translateZ(105px);                 background:#b19460; }
.box--plinth > .f--back   { width:250px; height:20px;  transform:translate(-50%,-50%) rotateY(180deg) translateZ(105px); background:#977c4f; }
.box--plinth > .f--left   { width:210px; height:20px;  transform:translate(-50%,-50%) rotateY(-90deg) translateZ(125px); background:#9c8052; }
.box--plinth > .f--right  { width:210px; height:20px;  transform:translate(-50%,-50%) rotateY(90deg)  translateZ(125px); background:#a98c5a; }

/* ----- house : 150 x 116 x 86 ----- */
.house { transform: translateY(-63px); }
.box--house > .f--top   { width:150px; height:116px; transform:translate(-50%,-50%) rotateX(90deg) translateZ(43px); background:#26382e; }
.box--house > .f--front { width:150px; height:86px;  transform:translate(-50%,-50%) translateZ(58px); }
.box--house > .f--back  { width:150px; height:86px;  transform:translate(-50%,-50%) rotateY(180deg) translateZ(58px); }
.box--house > .f--left  { width:116px; height:86px;  transform:translate(-50%,-50%) rotateY(-90deg) translateZ(75px); }
.box--house > .f--right { width:116px; height:86px;  transform:translate(-50%,-50%) rotateY(90deg) translateZ(75px); }

.glass  { background: linear-gradient(158deg, #c7e6e4 0%, #8fbab6 55%, #6fa49f 100%); box-shadow: inset 0 0 0 3px rgba(239,230,212,0.85); }
.timber { background: repeating-linear-gradient(90deg, #cbb189 0 11px, #bd9f74 11px 13px); }
.box--house > .f--right.timber { filter: brightness(0.9); }
.box--house > .f--back.glass { filter: brightness(0.92); }

/* ----- roof slab : 176 x 142 x 12, lifted above house ----- */
.box--roof { transform: translateY(-49px); }
.box--roof > .f--top    { width:176px; height:142px; transform:translate(-50%,-50%) rotateX(90deg)  translateZ(6px); background:#34503f; }
.box--roof > .f--bottom { width:176px; height:142px; transform:translate(-50%,-50%) rotateX(-90deg) translateZ(6px); background:#1b2e24; }
.box--roof > .f--front  { width:176px; height:12px;  transform:translate(-50%,-50%) translateZ(71px);                 background:#294031; }
.box--roof > .f--back   { width:176px; height:12px;  transform:translate(-50%,-50%) rotateY(180deg) translateZ(71px); background:#223a2e; }
.box--roof > .f--left   { width:142px; height:12px;  transform:translate(-50%,-50%) rotateY(-90deg) translateZ(88px); background:#223a2e; }
.box--roof > .f--right  { width:142px; height:12px;  transform:translate(-50%,-50%) rotateY(90deg)  translateZ(88px); background:#294031; }

.solar {
  position: absolute; left: 50%; top: 50%;
  width: 92px; height: 54px;
  transform: translate(-50%, -50%) translateY(-18px);
  background: repeating-linear-gradient(90deg, #2a3b52 0 10px, #35486a 10px 12px),
              repeating-linear-gradient(0deg, #2a3b52 0 12px, #35486a 12px 14px);
  border: 2px solid #1d2a3d;
  border-radius: 2px;
}

/* ----- deck : 120 x 80 x 10, front extension ----- */
.box--deck { transform: translate3d(0, 38px, 93px); }
.box--deck > .f--top   { width:120px; height:80px; transform:translate(-50%,-50%) rotateX(90deg) translateZ(5px); background: repeating-linear-gradient(0deg, #c9b48c 0 9px, #bda578 9px 11px); }
.box--deck > .f--front { width:120px; height:10px; transform:translate(-50%,-50%) translateZ(40px); background:#a8905f; }
.box--deck > .f--left  { width:80px;  height:10px; transform:translate(-50%,-50%) rotateY(-90deg) translateZ(60px); background:#98814f; }
.box--deck > .f--right { width:80px;  height:10px; transform:translate(-50%,-50%) rotateY(90deg)  translateZ(60px); background:#a8905f; }

/* entry path marker anchor (flat on plinth, front) */
.path { transform: translate3d(0, 43px, 122px) rotateX(90deg); width: 1px; height: 1px; }

/* ----- markers on the model ----- */
.marker {
  position: absolute; left: 50%; top: 50%;
  width: 15px; height: 15px;
  transform: translate(-50%, -50%) scale(0.4);
  background: var(--clay);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(192,116,79,0.7);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.marker.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.marker.is-active::before {
  content: ""; position: absolute; inset: -8px;
  border: 2px solid var(--clay); border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

/* ----- trees (crossed billboards) ----- */
.tree--a { transform: translate3d(-98px, -52px, -72px); }
.tree--b { transform: translate3d(106px, -52px, -54px); }
.tree--c { transform: translate3d(72px, -52px, 92px); }
.tree__p {
  position: absolute; left: 50%; top: 50%;
  width: 74px; height: 94px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 42%, #517857 0%, #37573f 62%, transparent 72%);
}
.tree__p--2 { transform: translate(-50%, -50%) rotateY(90deg); }
.tree__trunk {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 40px;
  transform: translate(-50%, 24px);
  background: #6b5436;
}

.model__hint {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  pointer-events: none;
}

/* ----- legend ----- */
.legend { list-style: none; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legend button {
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6rem 0.9rem 0.6rem 2.1rem;
  position: relative;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.legend button::before {
  content: ""; position: absolute; left: 0.85rem; top: 50%;
  width: 9px; height: 9px; border-radius: 50%;
  transform: translateY(-50%);
  background: var(--line);
  transition: background 0.25s, box-shadow 0.25s;
}
.legend button:hover { color: var(--forest-deep); background: rgba(47,74,60,0.04); }
.legend button.is-active {
  color: var(--forest-deep);
  background: rgba(192,116,79,0.08);
  border-color: rgba(192,116,79,0.3);
}
.legend button.is-active::before { background: var(--clay); box-shadow: 0 0 0 4px rgba(192,116,79,0.18); }

/* ============================================================
   How we work — visual 4-step journey
   ============================================================ */
.journey {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  top: 42px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  z-index: 0;
}
.jstep {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.jstep__badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 400; font-size: 2rem;
  box-shadow: 0 16px 34px -22px rgba(47,74,60,0.7);
  transition: transform 0.4s var(--ease);
}
.jstep:hover .jstep__badge { transform: translateY(-5px); }
.jstep h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--forest-deep); margin-top: 1.1rem; }
.jstep p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.5rem; max-width: 25ch; }
.jstep__roles { margin-top: 0.9rem; }
.chip {
  display: inline-block;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.42rem 0.75rem; border-radius: 999px;
  background: rgba(47,74,60,0.08); color: var(--forest-deep);
}
.chip--out { background: rgba(192,116,79,0.16); color: #9a4f2c; }

/* journey SVG animations */
.draw { stroke-dasharray: 260; stroke-dashoffset: 260; }
.jstep.is-visible .draw { animation: draw 1.6s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scan { transform-box: fill-box; }
.jstep.is-visible .scan { animation: scan 2.8s ease-in-out infinite; }
@keyframes scan {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 0.55; }
  55% { transform: translateX(66px); opacity: 0.55; }
  70%, 100% { transform: translateX(66px); opacity: 0; }
}
.rise { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.001); }
.jstep.is-visible .rise { animation: rise 0.6s var(--ease) 0.4s forwards; }
.jstep.is-visible .rise--2 { animation-delay: 0.6s; }
.jstep.is-visible .rise--3 { animation-delay: 0.75s; }
@keyframes rise { to { transform: scaleY(1); } }

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; }
  .journey::before { display: none; }
}
@media (max-width: 520px) {
  .journey { grid-template-columns: 1fr; }
}

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