:root {
  --cream: #f7efe2;
  --construction-paper: #f2e3cc;
  --paper: #efe0c6;
  --honey: #d99a2b;
  --sun: #f2c94c;
  --amber: #bb7523;
  --ink: #3f301e;
  --bark: #684a29;
  --sage: #8d9870;
  --terra: #c97f60;
  --plum: #8b6577;
  --blue: #879caf;
  --line: rgba(63, 48, 30, .28);
  --shadow: 0 18px 55px rgba(67, 44, 18, .17);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--construction-paper);
  font-family: "Alegreya", Georgia, serif;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: .75rem;
  left: 1rem;
  padding: .55rem .9rem;
  color: var(--ink);
  background: var(--sun);
  transform: translateY(-180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.construction-view {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  padding: 1.35rem clamp(1.1rem, 4vw, 4.5rem) 1.25rem;
  background: var(--construction-paper);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity .34s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
}

.construction-view::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(63, 48, 30, .05) 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(63, 48, 30, .035) 39px);
}

.paper-grain {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.construction-header,
.construction-footer {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.construction-header {
  min-height: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-family: "Shantell Sans", cursive;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  font-weight: 500;
  text-decoration: none;
}

.brand-wing {
  width: 1.15rem;
  aspect-ratio: 1;
  border: 1.5px solid currentColor;
  border-radius: 70% 20% 65% 30%;
  background: rgba(242, 201, 76, .55);
  transform: rotate(24deg);
}

.status-stamp {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  color: var(--bark);
  background: rgba(255, 255, 255, .27);
  font-family: "Shantell Sans", cursive;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(1deg);
}

.status-stamp span {
  width: .6rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  animation: status-pulse 1.8s ease-in-out infinite alternate;
}

.construction-stage {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  min-height: calc(100dvh - 9rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 5.5rem) 0;
}

.editorial-copy {
  position: relative;
  z-index: 4;
  max-width: 660px;
}

.eyebrow,
.attribution,
.comb-note,
.construction-footer {
  font-family: "Shantell Sans", cursive;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--amber);
  font-size: .8rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: reveal-up .42s .08s ease forwards;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--bark);
  font-family: "Caprasimo", Georgia, serif;
  font-size: clamp(4rem, 8vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .85;
  text-wrap: balance;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: reveal-up .5s .14s cubic-bezier(.16, 1, .3, 1) forwards;
}

h1 em {
  display: block;
  color: var(--amber);
  font-family: "Shantell Sans", cursive;
  font-size: .48em;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.2;
  transform: rotate(-2deg);
}

.lede {
  max-width: 38rem;
  margin: 1.8rem 0 .85rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.38;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: reveal-up .45s .22s ease forwards;
}

.work-note {
  max-width: 35rem;
  margin: 0 0 1.8rem;
  color: rgba(63, 48, 30, .78);
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: reveal-up .45s .28s ease forwards;
}

.peek-button,
.preview-banner button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  font-family: "Shantell Sans", cursive;
  font-weight: 500;
}

.peek-button {
  min-height: 3.7rem;
  padding: .85rem 1.15rem .85rem 1.45rem;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--sun);
  clip-path: polygon(2% 3%, 98% 0, 100% 91%, 4% 100%, 0 14%);
  opacity: 0;
  transform: translate3d(0, 12px, 0) rotate(-.5deg);
  transition: transform .2s ease, opacity .2s ease;
  animation: reveal-button .42s .34s ease forwards;
}

.peek-button svg {
  width: 2.25rem;
  transition: transform .2s ease;
}

.peek-button:hover {
  transform: translate3d(3px, -3px, 0) rotate(.5deg);
}

.peek-button:hover svg {
  transform: translate3d(4px, 0, 0);
}

.peek-button:active {
  transform: translate3d(5px, 3px, 0);
}

.attribution {
  margin: 1.2rem 0 0;
  color: rgba(63, 48, 30, .72);
  font-size: .84rem;
}

.attribution strong {
  color: var(--ink);
}

.hive-workbench {
  position: relative;
  min-height: min(690px, 72vh);
  opacity: 0;
  transform: translate3d(24px, 0, 0) rotate(1deg);
  animation: reveal-workbench .55s .18s cubic-bezier(.16, 1, .3, 1) forwards;
}

.art-scrap {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -7%;
  width: min(350px, 43vw);
  padding: .7rem .7rem 2.3rem;
  background: #fff8e9;
  box-shadow: var(--shadow);
  transform: rotate(6deg);
}

.art-scrap::after {
  content: "the world behind the walls";
  position: absolute;
  right: 1rem;
  bottom: .65rem;
  font-family: "Shantell Sans", cursive;
  font-size: .7rem;
}

.art-scrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: .38;
  filter: sepia(.12);
}

.honeycomb {
  position: absolute;
  --cell-width: clamp(122px, 12vw, 178px);
  top: 10%;
  left: 50%;
  width: calc(var(--cell-width) * 4);
  height: calc((var(--cell-width) / .866) * 1.75);
  transform: translate3d(-50%, 0, 0);
}

.comb-cell {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--cell-width);
  aspect-ratio: .866;
  padding: 1.6rem;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 244, 192, .58), transparent 28%),
    linear-gradient(145deg, var(--cell-light), var(--cell) 52%, var(--cell-deep));
  box-shadow:
    inset 0 0 0 1px rgba(86, 55, 17, .26),
    inset 8px 10px 18px rgba(255, 239, 172, .22),
    inset -9px -12px 20px rgba(116, 67, 13, .13);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0;
  transform: translate3d(0, 15px, 0) scale(.92) rotate(var(--cell-tilt, 0deg));
  animation: cell-arrive .42s cubic-bezier(.16, 1, .3, 1) forwards;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}

.comb-cell::before {
  content: "";
  position: absolute;
  inset: 7px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow:
    inset 0 0 0 1px rgba(77, 48, 16, .2),
    inset 0 0 18px rgba(255, 230, 128, .18);
}

.comb-cell::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 27%;
  width: 34%;
  height: 12%;
  border-radius: 50%;
  background: rgba(255, 247, 205, .34);
  opacity: .72;
  transform: rotate(-12deg);
}

.comb-cell:hover,
.comb-cell:focus-visible,
.comb-cell.is-active {
  z-index: 12;
  transform: translate3d(0, -7px, 0) scale(1.035) rotate(calc(var(--cell-tilt, 0deg) - .8deg));
  opacity: 1;
}

.comb-cell:active {
  transform: translate3d(0, -2px, 0) scale(.98) rotate(var(--cell-tilt, 0deg));
}

.comb-cell:focus-visible,
.peek-button:focus-visible,
.preview-banner button:focus-visible,
.brand-mark:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.cell-number {
  position: relative;
  margin-bottom: .25rem;
  font-family: "Shantell Sans", cursive;
  font-size: .7rem;
  opacity: .65;
}

.cell-label {
  position: relative;
  font-family: "Caprasimo", Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.cell-story {
  --cell-light: rgba(244, 210, 132, .92); --cell: rgba(220, 164, 58, .9); --cell-deep: rgba(183, 116, 28, .92);
  --cell-tilt: -.18deg; top: 0; left: 12.5%; animation-delay: .08s;
}
.cell-art {
  --cell-light: rgba(248, 218, 146, .94); --cell: rgba(226, 172, 67, .9); --cell-deep: rgba(188, 121, 31, .92);
  --cell-tilt: .14deg; top: 0; left: 37.5%; animation-delay: .135s;
}
.cell-book {
  --cell-light: rgba(239, 203, 120, .92); --cell: rgba(211, 150, 46, .91); --cell-deep: rgba(169, 102, 22, .93);
  --cell-tilt: -.1deg; top: 0; left: 62.5%; animation-delay: .19s;
}
.cell-deck {
  --cell-light: rgba(250, 222, 148, .94); --cell: rgba(230, 180, 73, .9); --cell-deep: rgba(190, 127, 35, .92);
  --cell-tilt: .12deg; top: 42.86%; left: 0; animation-delay: .245s;
}
.cell-voice {
  --cell-light: rgba(242, 207, 129, .92); --cell: rgba(216, 158, 53, .9); --cell-deep: rgba(177, 108, 25, .93);
  --cell-tilt: -.16deg; top: 42.86%; left: 25%; animation-delay: .3s;
}
.cell-market {
  --cell-light: rgba(247, 215, 137, .93); --cell: rgba(223, 169, 63, .9); --cell-deep: rgba(184, 118, 29, .92);
  --cell-tilt: .08deg; top: 42.86%; left: 50%; animation-delay: .355s;
}
.cell-center {
  --cell-light: rgba(255, 229, 143, .96); --cell: rgba(239, 184, 55, .94); --cell-deep: rgba(198, 126, 22, .94);
  --cell-tilt: -.06deg; top: 42.86%; left: 75%; animation-delay: .41s;
}

.worker-bee {
  position: absolute;
  z-index: 15;
  width: 62px;
  pointer-events: none;
}

.worker-bee svg {
  display: block;
  overflow: visible;
  fill: var(--honey);
  stroke: var(--ink);
  stroke-width: 2;
}

.worker-bee .worker-wing {
  fill: rgba(255, 248, 225, .72);
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: worker-flutter .2s ease-in-out infinite alternate;
}

.worker-bee ellipse {
  stroke-width: 2.4;
}

.worker-bee path:last-child {
  fill: none;
  stroke-width: 3.4;
}

.bee-one {
  top: 8%;
  left: 7%;
  animation: worker-drift-one 4.6s ease-in-out infinite alternate;
}

.bee-two {
  right: 1%;
  bottom: 22%;
  width: 48px;
  animation: worker-drift-two 5.2s ease-in-out infinite alternate;
}

.comb-note {
  position: absolute;
  right: 5%;
  bottom: 1%;
  max-width: 20rem;
  margin: 0;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--ink);
  font-size: .78rem;
  text-align: right;
  transform: rotate(-1deg);
}

.construction-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(63, 48, 30, .66);
  font-size: .68rem;
  letter-spacing: .06em;
}

.preview-shell {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 24px, 0);
  transition: opacity .34s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
}

.preview-banner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.3rem;
  padding: .55rem clamp(.75rem, 3vw, 2rem);
  border-bottom: 1px solid var(--ink);
  background: var(--sun);
  box-shadow: 0 5px 18px rgba(63, 48, 30, .16);
}

.preview-banner p {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 0;
}

.preview-banner strong {
  font-family: "Shantell Sans", cursive;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-banner span {
  font-size: .9rem;
}

.preview-banner button {
  min-height: 2.35rem;
  padding: .35rem .7rem;
  border: 1px solid var(--ink);
  background: rgba(255, 248, 225, .55);
  font-size: .72rem;
  transition: transform .18s ease, opacity .18s ease;
}

.preview-banner button:hover {
  transform: translate3d(-3px, 0, 0);
}

.preview-banner button svg {
  width: 1.5rem;
}

#approved-site {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cream);
}

body.is-previewing {
  overflow: hidden;
}

body.is-previewing .construction-view {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-24px, 0, 0);
}

body.is-previewing .preview-shell {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes reveal-button {
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(-.5deg); }
}

@keyframes reveal-workbench {
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(1deg); }
}

@keyframes cell-arrive {
  to { opacity: .92; transform: translate3d(0, 0, 0) scale(1) rotate(var(--cell-tilt, 0deg)); }
}

@keyframes status-pulse {
  to { opacity: .5; transform: scale(.8); }
}

@keyframes worker-flutter {
  to { transform: scaleY(.62) rotate(9deg); }
}

@keyframes worker-drift-one {
  to { transform: translate3d(26px, -15px, 0) rotate(7deg); }
}

@keyframes worker-drift-two {
  to { transform: translate3d(-28px, 18px, 0) rotate(-10deg); }
}

@media (max-width: 1050px) {
  .construction-stage {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 3.25rem;
  }

  .editorial-copy {
    max-width: 760px;
  }

  h1 {
    font-size: clamp(4rem, 12vw, 7.6rem);
  }

  .hive-workbench {
    width: min(760px, 100%);
    min-height: 590px;
    margin: 0 auto;
  }

  .honeycomb { --cell-width: clamp(118px, 19vw, 170px); }
}

@media (max-width: 650px) {
  .construction-view {
    padding: 1rem;
    overflow-y: auto;
  }

  .construction-header {
    align-items: flex-start;
  }

  .status-stamp {
    max-width: 9rem;
    padding: .45rem .55rem;
    font-size: .6rem;
  }

  .construction-stage {
    display: block;
    min-height: auto;
    padding: 3rem 0 2rem;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }

  .lede {
    font-size: 1.22rem;
  }

  .work-note {
    font-size: .98rem;
  }

  .hive-workbench {
    min-height: 500px;
    margin-top: 2.5rem;
  }

  .honeycomb {
    --cell-width: min(22.5vw, 90px);
    top: 12%;
  }

  .comb-cell { padding: .65rem; }

  .cell-label {
    font-size: clamp(.84rem, 3.7vw, 1.1rem);
  }

  .art-scrap {
    top: 0;
    right: -15%;
    width: 55vw;
  }

  .comb-note {
    right: 0;
    max-width: 16rem;
    font-size: .68rem;
  }

  .construction-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-banner {
    align-items: stretch;
    flex-direction: column;
    gap: .4rem;
    padding: .55rem .75rem;
  }

  .preview-banner p {
    display: block;
  }

  .preview-banner span {
    display: block;
    margin-top: .1rem;
    font-size: .76rem;
  }

  .preview-banner button {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
