.sec,
.foot,
.lightbox {
  --bg: var(--mist);
  --fg: var(--roof);
  --fg-soft: rgba(35, 26, 22, 0.72);
  --line: rgba(35, 26, 22, 0.18);
  --leaf: #3f7a35;
  --pool: #17469a;
  --card: #ffffff;
}

/* Each section is a band of colour taken from the place: paper, pool blue, leaf green, teak, honey */

.sec {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vh, 124px) 0;
  background: var(--bg);
  color: var(--fg);
}

.sec--paper {
  --bg: #fbfcf8;
}

.sec--leaf {
  --bg: #dfead0;
}

.sec--honey {
  --bg: #f7e3bd;
}

.sec--blue {
  --bg: var(--pool);
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.28);
}

.sec--teak {
  --bg: #7a3f17;
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, 0.84);
  --line: rgba(255, 255, 255, 0.3);
}

.wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--inset);
}

.h2 {
  max-width: 15em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 2.1vw + 16px, 54px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.06;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--fg-soft);
  font-size: clamp(18px, 0.45vw + 14px, 22px);
  line-height: 1.45;
}

.note {
  margin: 16px 0 0;
  color: var(--fg-soft);
  font-family: var(--display);
  font-size: 15px;
}

.sec a:not(.btn) {
  color: inherit;
  text-underline-offset: 4px;
}

.btn--sun {
  background: var(--honey);
  color: var(--roof);
}

.btn--sun:hover {
  background: #f4c98d;
}

.btn--wa {
  background: #1f7a4a;
  color: #fff;
}

.btn--wa:hover {
  background: #27935a;
}

/* Reveal */

.fx .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.fx .rv.is-in {
  opacity: 1;
  transform: none;
}

.fx .tri > img {
  clip-path: polygon(50% 8%, 50% 8%, 50% 8%, 50% 8%);
}

.fx .tri.is-in > img {
  animation: tri-open 1.5s cubic-bezier(0.3, 0.1, 0.2, 1) forwards;
}

@keyframes tri-open {
  0% {
    clip-path: polygon(50% 8%, 50% 8%, 50% 8%, 50% 8%);
  }
  42% {
    clip-path: polygon(50% 8%, 50% 8%, 90% 100%, 10% 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}

.about__text p:not(.lead) {
  max-width: 36em;
  margin: 14px 0 0;
  font-size: clamp(17px, 0.3vw + 14px, 19.5px);
  line-height: 1.5;
}

.about__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(128px, 17vh, 176px);
  padding: 16px;
  border-radius: 6px;
  background: var(--pool);
  color: #fff;
}

.fact svg {
  width: 30px;
  height: 30px;
  margin-bottom: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact b {
  font-family: var(--display);
  font-size: clamp(17px, 0.4vw + 13px, 21px);
  font-weight: 500;
  line-height: 1.15;
}

.fact span {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.3;
  opacity: 0.86;
}

.fact--leaf {
  background: var(--leaf);
}

.fact--teak {
  background: #9a5220;
}

.fact--honey {
  background: var(--honey);
  color: var(--roof);
}

.fact--slate {
  background: var(--slate);
}

.fact--roof {
  background: var(--roof);
}

/* The cabana */

.cab {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.cab__text {
  padding-top: clamp(0px, 3vh, 36px);
}

.levels {
  margin-top: clamp(24px, 3.5vh, 40px);
}

.level {
  border-top: 1px solid var(--line);
}

.level:last-child {
  border-bottom: 1px solid var(--line);
}

.level__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--roof);
  text-align: left;
  cursor: pointer;
}

.level__name {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: clamp(23px, 1vw + 13px, 32px);
  line-height: 1.1;
}

.level__name::before {
  content: "";
  width: 14px;
  height: 13px;
  background: rgba(35, 26, 22, 0.28);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: background-color 0.25s;
}

.level[data-level="loft"].is-on .level__name::before {
  background: var(--leaf);
}

.level[data-level="room"].is-on .level__name::before {
  background: var(--teak);
}

.level[data-level="deck"].is-on .level__name::before {
  background: var(--mosaic);
}

.level__sum {
  color: var(--fg-soft);
  font-family: var(--display);
  font-size: 16px;
  text-align: right;
}

/* The list that closes and the list that opens move in step, so nothing below them jumps */
.level__fold {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.3, 0.1, 0.2, 1);
}

.level.is-on .level__fold {
  grid-template-rows: 1fr;
}

.level__in {
  min-height: 0;
  overflow: hidden;
}

.level__list {
  margin: 0;
  padding: 0 0 18px 28px;
  list-style: none;
}

.level__list li {
  padding: 4px 0;
  font-size: clamp(17px, 0.3vw + 14px, 19px);
  line-height: 1.4;
}

.cab__fig {
  margin: 0;
  padding: clamp(16px, 2.4vw, 36px);
  border-radius: 8px;
  background: #fbfcf8;
}

.elev {
  width: 100%;
  height: auto;
  max-height: min(62vh, 640px);
  margin: 0 auto;
  overflow: visible;
}

.elev .ink {
  pointer-events: none;
}

.elev .ink path {
  fill: none;
  stroke: var(--roof);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.elev .ink .roof {
  fill: var(--roof);
}

.fx .elev .ink path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.7s ease 0.15s, fill-opacity 0.9s ease 1.1s;
}

.fx .elev .ink .roof {
  fill-opacity: 0;
}

.fx .cab__fig.is-in .ink path {
  stroke-dashoffset: 0;
}

.fx .cab__fig.is-in .ink .roof {
  fill-opacity: 1;
}

.elev .zone {
  fill: var(--teak);
  fill-opacity: 0.1;
  cursor: pointer;
  transition: fill-opacity 0.3s;
}

.elev .zone[data-level="loft"] {
  fill: var(--leaf);
}

.elev .zone[data-level="deck"] {
  fill: var(--slate);
}

.elev .zone:hover {
  fill-opacity: 0.22;
}

.elev .zone.is-on {
  fill-opacity: 0.5;
}

.elev .water rect {
  fill: var(--mosaic);
  pointer-events: none;
}

.elev .tags text {
  fill: var(--fg-soft);
  font-family: var(--display);
  font-size: 20px;
  cursor: pointer;
  transition: fill 0.25s;
}

.elev .tags text.is-on {
  fill: var(--roof);
  font-weight: 500;
}

.cab__fig figcaption {
  margin-top: 12px;
  color: var(--fg-soft);
  font-family: var(--display);
  font-size: 14px;
  text-align: center;
}

/* Photos */

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 34vh, 360px);
  gap: clamp(10px, 1.2vw, 18px);
  margin-top: clamp(36px, 6vh, 72px);
}

.shot--wide {
  grid-column: span 2;
}

.shot {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.shot:hover img {
  transform: scale(1.035);
}

.shot--low img {
  object-position: 50% 100%;
}

/* Amenities */

.amen__top,
.loc__top,
.todo__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  color: var(--fg);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--fg);
}

.chip.is-on {
  border-color: var(--honey);
  background: var(--honey);
  color: var(--roof);
}

.amen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  margin: clamp(26px, 4vh, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.amen li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  line-height: 1.3;
  transition: opacity 0.35s;
}

.amen li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 13px;
  height: 12px;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.amen li[data-g="bath"]::before {
  background: #8fc1ff;
}

.amen li[data-g="grounds"]::before {
  background: #a5dc7c;
}

.amen li.is-off {
  opacity: 0.28;
}

/* Things to do */

.todo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
  margin: clamp(26px, 4vh, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.do {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(35, 26, 22, 0.12);
  border-radius: 8px;
  background: var(--card);
}

.do img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dfe4d6;
}

.do__in {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.do h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(19px, 0.4vw + 15px, 23px);
  font-weight: 500;
  line-height: 1.15;
}

.do p {
  margin: 8px 0 14px;
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.4;
}

.do__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 3px;
  background: #e4edfc;
  color: var(--mosaic);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.do__go:hover {
  background: var(--mosaic);
  color: #fff;
}

.do__go b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Location */

.map {
  position: relative;
  margin-top: clamp(26px, 4vh, 46px);
  overflow: hidden;
  border-radius: 8px;
  background: #f4f9ec;
}

.map__scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.map__svg {
  width: 100%;
  min-width: 700px;
  height: auto;
}

.map__read {
  position: absolute;
  left: 18px;
  top: 14px;
  max-width: min(440px, 78%);
  margin: 0;
  font-family: var(--display);
  font-size: clamp(16px, 0.4vw + 13px, 20px);
  line-height: 1.3;
  pointer-events: none;
}

.map__svg .ring {
  fill: var(--leaf);
  fill-opacity: 0.06;
  stroke: var(--leaf);
  stroke-opacity: 0.4;
  stroke-width: 2;
}

.map__svg .ring__t,
.map__svg .north text,
.map__svg .home__t {
  fill: var(--fg-soft);
  font-family: var(--display);
  font-size: 28px;
}

.map__svg .north path {
  fill: none;
  stroke: var(--fg-soft);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__svg .home {
  fill: var(--teak);
}

.map__svg .home__t {
  fill: var(--roof);
  font-weight: 500;
}

.map__svg .ray {
  stroke: var(--mosaic);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
}

.map__svg .pin {
  fill: var(--leaf);
  transition: fill 0.2s, stroke-width 0.2s;
  stroke: var(--mosaic);
  stroke-width: 0;
  pointer-events: none;
}

.map__svg .pin.is-on {
  fill: var(--mosaic);
  stroke-width: 14;
  stroke-opacity: 0.25;
}

.map__svg .hit {
  fill: transparent;
  cursor: pointer;
}

.places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.place {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--roof);
  font-size: 18px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.place b {
  color: var(--fg-soft);
  font-family: var(--display);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.place:hover,
.place.is-on,
.place.is-on b {
  color: var(--mosaic);
}

/* Reviews */

.rev__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.scores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 8px;
  background: var(--card);
  color: var(--roof);
  font-family: var(--display);
  line-height: 1.2;
  text-decoration: none;
}

.score b {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 8px;
  border-radius: 6px 6px 6px 0;
  background: var(--pool);
  color: #fff;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.score span {
  font-size: 16px;
  font-weight: 500;
}

.score small {
  display: block;
  color: rgba(35, 26, 22, 0.66);
  font-size: 14px;
  font-weight: 400;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
  margin: clamp(26px, 4vh, 46px) 0 0;
  padding: 0;
  list-style: none;
}

.quotes li {
  display: flex;
}

.quotes li:nth-child(2) i {
  background: var(--leaf);
}

.quotes li:nth-child(3) i {
  background: #9a5220;
}

.quotes li:nth-child(4) i {
  background: var(--slate);
}

.quote {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 22px 22px 18px;
  border-radius: 8px;
  background: var(--card);
}

.quote blockquote {
  margin: 0 0 18px;
  font-size: 18.5px;
  line-height: 1.45;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.25;
}

.quote figcaption i {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pool);
  color: #fff;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
}

.quote figcaption b {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.quote figcaption span {
  color: var(--fg-soft);
}

/* Packages: each stay drawn on one clock, from 10 AM on day one to 3:30 PM the next day */

.pk__top {
  margin-bottom: clamp(24px, 4vh, 40px);
}

.book {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

.pk {
  --fg: var(--roof);
  --bg: #ffffff;
  --line: rgba(35, 26, 22, 0.14);
  --lab: 236px;
  --pad: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 1.8vw, 24px) var(--pad) clamp(18px, 1.8vw, 26px);
  border-radius: 8px;
  background: #fff;
  color: var(--roof);
}

.pk__head {
  display: grid;
  grid-template-columns: var(--lab) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}

.pk__key {
  display: flex;
  gap: 16px;
  margin: 0;
  padding-bottom: 8px;
  color: rgba(35, 26, 22, 0.72);
  font-family: var(--display);
  font-size: 14px;
}

.pk__key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pk__key i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--honey);
}

.pk__key i.n,
.pk__bar i.n {
  background: var(--pool);
}

.pk__axis {
  position: relative;
  height: 54px;
  color: rgba(35, 26, 22, 0.72);
  font-family: var(--display);
  font-size: 14px;
}

.pk__axis b,
.pk__axis span {
  position: absolute;
  white-space: nowrap;
}

.pk__axis b {
  top: 0;
  color: var(--roof);
  font-weight: 500;
}

.pk__axis .pk__next {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.pk__axis span {
  bottom: 8px;
  transform: translateX(-50%);
}

.pk__axis span.is-first {
  transform: none;
}

.pk__axis span.is-last {
  right: 0;
  transform: none;
}

.pk__span {
  display: none;
  margin: 0;
  padding-bottom: 8px;
  color: rgba(35, 26, 22, 0.72);
  font-family: var(--display);
  font-size: 13.5px;
}

.pk__rows {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.pk__row {
  display: grid;
  grid-template-columns: var(--lab) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 64px;
  margin: 0 calc(var(--pad) * -1);
  padding: 8px var(--pad);
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--roof);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pk__row:hover {
  background: #fdf8ec;
}

.pk__row.is-on {
  background: #fbf1dc;
}

.pk__label {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: padding-left 0.25s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.pk__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 13px;
  height: 12px;
  background: var(--teak);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity 0.2s;
}

.pk__row.is-on .pk__label {
  padding-left: 25px;
}

.pk__row.is-on .pk__label::before {
  opacity: 1;
}

.pk__label b {
  font-family: var(--display);
  font-size: clamp(18px, 0.3vw + 15px, 20px);
  font-weight: 500;
  line-height: 1.15;
}

.pk__label span {
  color: rgba(35, 26, 22, 0.72);
  font-size: 16px;
  line-height: 1.3;
}

.pk__bar {
  position: relative;
  height: 16px;
  border-radius: 3px;
  background: #f1f1ea;
}

.pk__row.is-on .pk__bar {
  background: #efe4c9;
}

.pk__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--honey);
}

.pk__bar i:first-child {
  border-radius: 3px 0 0 3px;
}

.pk__bar i:last-child {
  border-radius: 0 3px 3px 0;
}

.pk__bar i:only-child {
  border-radius: 3px;
}

.fx .pk .pk__bar {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.3, 0.1, 0.2, 1);
}

.fx .pk.is-in .pk__bar {
  clip-path: inset(0);
}

.fx .pk .pk__row:nth-child(2) .pk__bar {
  transition-delay: 0.08s;
}

.fx .pk .pk__row:nth-child(3) .pk__bar {
  transition-delay: 0.16s;
}

.fx .pk .pk__row:nth-child(4) .pk__bar {
  transition-delay: 0.24s;
}

.fx .pk .pk__row:nth-child(5) .pk__bar {
  transition-delay: 0.32s;
}

.pk__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding-top: 20px;
}

.pk__pick {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.pk__pick b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
}

.pk__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn--big {
  height: 50px;
  padding: 0 24px;
  font-size: 17px;
}

.know {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.know div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.know dt {
  flex: none;
  color: var(--fg-soft);
  font-family: var(--display);
  font-size: 16px;
}

.know dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  text-align: right;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.contact__addr {
  margin: 22px 0 0;
  font-size: clamp(17px, 0.3vw + 14px, 19.5px);
  line-height: 1.5;
}

.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.way {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--pool);
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.way:hover {
  transform: translateY(-3px);
}

.way span {
  font-family: var(--display);
  font-size: 15px;
  opacity: 0.86;
}

.way b {
  margin-top: auto;
  font-family: var(--display);
  font-size: clamp(18px, 0.5vw + 14px, 23px);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.way .way__sm {
  font-size: clamp(15px, 0.3vw + 12px, 18px);
}

.way--leaf {
  background: #1f7a4a;
}

.way--teak {
  background: #9a5220;
}

.way--honey {
  background: var(--honey);
  color: var(--roof) !important;
}

.way--slate {
  background: var(--slate);
}

.way--roof {
  background: var(--roof);
}

/* Footer */

.foot {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vh, 80px) 0 20px;
  background: var(--roof);
  color: #eef1e8;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
  gap: 36px clamp(24px, 4vw, 64px);
  align-items: start;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.foot__id {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #eef1e8;
  font-family: var(--display);
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.foot__id img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 6px;
}

.foot__brand p {
  max-width: 24em;
  margin: 18px 0 0;
  color: rgba(238, 241, 232, 0.74);
  font-size: 18px;
  line-height: 1.45;
}

.foot__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.foot__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--display);
  font-size: 16.5px;
  line-height: 1.35;
}

.foot__col p {
  margin: 0;
  color: rgba(238, 241, 232, 0.74);
}

.foot__col .foot__h {
  margin-bottom: 6px;
  color: rgba(238, 241, 232, 0.62);
  font-size: 14.5px;
}

.foot__col a {
  color: #eef1e8;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot__col a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.foot__col .foot__social {
  display: flex;
  gap: 18px;
}

.foot__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: clamp(32px, 5vh, 52px);
  padding-top: 14px;
  border-top: 1px solid rgba(238, 241, 232, 0.18);
}

.foot__copy {
  margin: 0;
  color: rgba(238, 241, 232, 0.74);
  font-family: var(--display);
  font-size: 15px;
}

/* The maker's credit: the Tress Labs logo beside "Powered by" and a bold name */

.credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: rgba(238, 241, 232, 0.74);
  text-decoration: none;
  white-space: nowrap;
}

.credit img {
  flex: none;
  width: 30px;
  height: 30px;
}

.credit__text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  line-height: 1.1;
}

.credit__by {
  font-size: 12px;
}

.credit strong {
  color: #eef1e8;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.credit:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Photo viewer */

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 24px;
  background: rgba(20, 14, 11, 0.95);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  width: auto;
  max-width: min(92vw, 1100px);
  height: auto;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox__x,
.lightbox__nav {
  position: absolute;
  border: 1px solid rgba(238, 241, 232, 0.4);
  border-radius: 3px;
  background: rgba(20, 14, 11, 0.5);
  color: #eef1e8;
  cursor: pointer;
}

.lightbox__x {
  top: 12px;
  right: 16px;
  padding: 10px 14px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
}

.lightbox__nav--p {
  left: 16px;
}

.lightbox__nav--n {
  right: 16px;
}

.lightbox__nav i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translate(-30%, -50%) rotate(45deg);
}

.lightbox__nav--n i {
  transform: translate(-70%, -50%) rotate(-135deg);
}

/* Narrower screens */

@media (max-width: 1180px) {
  .todo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav__links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .about,
  .cab,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .elev {
    max-height: 56vh;
  }

  .foot__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot__brand,
  .foot__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .shots,
  .todo {
    display: flex;
    gap: 12px;
    margin-right: calc(var(--inset) * -1);
    padding-right: var(--inset);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .shots::-webkit-scrollbar,
  .todo::-webkit-scrollbar {
    display: none;
  }

  .shot {
    flex: 0 0 64vw;
    height: 84vw;
    scroll-snap-align: start;
  }

  .shot--wide {
    flex-basis: 86vw;
  }

  .do {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    min-height: 112px;
  }

  .level__sum {
    display: none;
  }

  .know dd {
    font-size: 17px;
  }

  .pk__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .pk__axis {
    display: none;
  }

  .pk__span {
    display: block;
  }

  .pk__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding-top: 13px;
    padding-bottom: 15px;
  }

  .pk__bar {
    height: 14px;
  }

  .pk__acts {
    width: 100%;
  }

  .pk__acts .btn {
    flex: 1 1 100%;
  }

  .foot__acts {
    width: 100%;
  }

  .foot__acts .btn {
    flex: 1;
  }

  .lightbox__nav {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }

  .lightbox img {
    max-height: 74vh;
  }
}

@media (max-width: 480px) {
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }

  .way {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot img,
  .level__fold,
  .way,
  .pk__label,
  .fx .pk .pk__bar {
    transition: none;
  }
}
