/* KIBO Development. Only what belongs to this site: its pictures and the small drawings in its tiles.
   Everything else comes from ../css/styles.css (the main page) and ../company/company.css (the company sites). */

/* Hero picture: the sky takes its upper half, so the headline sits there; the houses are below the middle. */

.hero {
  --headline-y: 0.28;
  --band: 0.6;
}

/* On a screen narrower than the picture, the crane at its right edge stays in view. */
.hero .intro__film {
  object-position: 88% 60%;
}

/* The phone gets its own upright picture. */
@media (max-width: 700px) and (orientation: portrait) {
  .hero {
    --headline-y: 0.26;
    --band: 0.72;
  }

  .hero .intro__film {
    object-position: 50% 100%;
  }
}

/* Tile 1: the project, with its front drawn. */

.elevation {
  width: 100%;
  margin-bottom: 1em;
  border-radius: 0.55em;
  background: #f3f6f1;
}

.elevation path {
  stroke: var(--green);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.elevation__wall {
  fill: #fff;
}

.elevation__roof {
  fill: #cfe0d0;
}

.elevation .elevation__glass {
  fill: #dbe9df;
  stroke-width: 1;
}

.elevation__green {
  fill: #cfe0d0;
}

.elevation__line {
  fill: none;
}

/* Tile 2: a piece of a cadastral map with one parcel picked out. */

.parcels {
  width: min(100% - 2.6em, 17.5em);
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 1.2em 1.8em -1em rgba(11, 42, 32, 0.3), 0 0 0 1px rgba(11, 42, 32, 0.05);
}

.parcels__road {
  fill: #f1ece2;
}

.parcels__line {
  fill: none;
  stroke: rgba(11, 42, 32, 0.22);
  stroke-width: 1;
}

.parcels__own {
  fill: rgba(30, 138, 94, 0.14);
  stroke: var(--leaf);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.parcels__house {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}

.parcels text {
  fill: var(--ink-faint);
  font: 400 8px/1 var(--mono);
  letter-spacing: 0.04em;
}

.parcels .parcels__number {
  fill: var(--green);
  font-weight: 500;
}

/* Tile 3: the project documentation, with its permit. */

.docs {
  position: relative;
  width: min(100% - 4.4em, 13.5em);
}

.docs__sheet {
  position: relative;
  padding: 1.15em 1.2em 1.25em;
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1em 2em -1em rgba(11, 42, 32, 0.25), 0 0 0 1px rgba(11, 42, 32, 0.05);
  line-height: 1.35;
}

.docs__sheet--back {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(5deg) translate(0.9em, -0.2em);
}

.docs__plan {
  width: 100%;
  margin-top: 0.8em;
  border-radius: 0.4em;
  background: #f3f6f1;
}

.docs__plan path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.docs__lines {
  display: grid;
  gap: 0.5em;
  margin-block: 0.9em 1em;
}

.docs__lines i {
  height: 0.42em;
  border-radius: 999px;
  background: #e6ece4;
}

.docs__lines i:last-child {
  width: 62%;
}

/* Tile 4: preparation, construction and sale on one timeline. */

.plan {
  display: grid;
  gap: 0.75em;
  margin-top: 0.9em;
}

.plan p {
  display: grid;
  gap: 0.3em;
  font-size: 0.86em;
  font-weight: 500;
}

.plan i {
  display: block;
  height: 0.7em;
  margin-left: calc(var(--from) * 1%);
  width: calc((var(--to) - var(--from)) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #4fae7c);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.3s;
}

.plan p:nth-child(2) i {
  transition-delay: 0.5s;
}

.plan p:nth-child(3) i {
  transition-delay: 0.7s;
}

.js [data-reveal]:not(.is-in) .plan i {
  transform: scaleX(0);
}

.plan__axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.9em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.74em;
}

.plan__axis span + span {
  padding-left: 0.6em;
  border-left: 1px solid var(--line);
}

/* Footer picture: the street runs through the middle, the lit houses stand at both sides. */

.foot__image {
  object-position: 50% 62%;
}

@media (max-width: 620px) {
  .docs {
    width: min(100% - 4.4em, 12.5em);
  }

  .foot__image {
    object-position: 22% 62%;
  }
}
