@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f8f6f2;
  --ink: #1c1e1c;
  --yellow: #ffdc29;
  --blue: #3964ff;
  --purple: #8050b0;
  --purple-line: #693d99;
  --gold: #d89700;
  --lilac: #e9dcf5;
  --ribbon-height: clamp(96px, 16svh, 162px);
  font-family: Gotham, Montserrat, "Avenir Next", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
svg { display: block; }

.landing {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background: radial-gradient(ellipse at 50% 42%, #fffdfa 0, transparent 70%), var(--paper);
}

.brand {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3.5svh, 38px) clamp(24px, 5vw, 82px) 0;
  pointer-events: none;
}
.brand img { display: block; width: clamp(96px, 10vw, 138px); height: auto; }

main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }

.construction {
  display: grid;
  grid-template-rows: minmax(200px, 1fr) var(--ribbon-height);
  margin: 0;
  min-width: 0;
  position: relative;
}
.field {
  display: grid;
  place-items: end center;
  container-type: size;
  position: relative;
  z-index: 1;
}
.scene {
  position: relative;
  width: min(96%, 1220px, calc(100cqh * 2.15686));
  aspect-ratio: 1100 / 510;
}
.piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.violet { stroke: var(--purple-line); }
.cloud { stroke: var(--purple); }
.gold { stroke: var(--gold); }
.blue { stroke: var(--blue); }
.cloud-left { animation: drift 10s -3s ease-in-out infinite; }
.cloud-top { animation: drift 13s -7s ease-in-out infinite; }
.cloud-right { animation: drift 11s -1s ease-in-out infinite reverse; }
.load {
  transform-origin: 549px 167px;
  animation: lift 5.6s ease-in-out infinite;
}
.worker-arm {
  transform-box: fill-box;
  transform-origin: 80% 80%;
  animation: work 3.1s ease-in-out infinite;
}
.worker-right .worker-arm { animation-delay: -1.2s; }
.cursor-doodles {
  transform: translate(var(--doodle-x, 0px), var(--doodle-y, 0px));
  transition: transform 280ms ease-out;
}

.ribbons {
  position: relative;
  margin-top: calc(var(--ribbon-height) * -.27);
  pointer-events: none;
}
.ribbon {
  width: max(104%, 840px);
  height: 100%;
  position: absolute;
  left: 50%;
  translate: -50% 0;
  overflow: visible;
  filter: drop-shadow(0 5px 4px #4a361e25);
  transform-origin: 50% 50%;
}
.ribbon-back { animation: sway 8s ease-in-out infinite; }
.ribbon-front { animation: sway 7s -2s ease-in-out infinite reverse; }
.ribbon-band { fill: none; stroke-width: 43; }
.ribbon text { fill: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: .035em; }

.intro {
  position: relative;
  z-index: 2;
  padding: clamp(12px, 2.1svh, 26px) 26px 0;
  text-align: center;
  margin-inline: auto;
  max-width: 100%;
}
.intro h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(2.4rem, min(5.5vw, 8svh), 5.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.074em;
  text-wrap: balance;
}
.emphasis {
  position: absolute;
  width: .57em;
  stroke: var(--purple);
  stroke-width: 4.8;
  stroke-linecap: round;
}
.emphasis-left { right: calc(100% + .29em); bottom: -.2em; }
.emphasis-right { left: calc(100% + .2em); top: -.16em; }
.intro p {
  max-width: 61ch;
  margin: clamp(10px, 1.55svh, 16px) auto 0;
  font-size: clamp(1rem, 1.42vw, 1.24rem);
  line-height: 1.52;
  font-weight: 450;
  text-wrap: pretty;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  margin-top: clamp(17px, 2.8svh, 31px);
  padding: 12px clamp(18px, 2.6vw, 35px);
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(.92rem, 1.28vw, 1.15rem);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.cta svg {
  flex: none;
  width: 1.2em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms ease;
}
.cta:hover { background: var(--ink); color: var(--yellow); box-shadow: 0 4px 16px #1c1e1c22; }
.cta:hover svg { transform: translateX(3px); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px clamp(18px, 3vw, 42px);
  padding: clamp(11px, 2.4svh, 24px) 18px clamp(10px, 1.8svh, 22px);
  font-size: .83rem;
  font-weight: 550;
}
.contact a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #47483f;
  text-decoration: none;
  text-underline-offset: 4px;
}
.contact a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); }
.contact svg {
  width: 15px;
  height: 15px;
  stroke: var(--purple-line);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal { animation: arrive .58s var(--enter, 0s) cubic-bezier(.2,.65,.25,1) both; }
.crane, .scaffold { --enter: .1s; }
.letters { --enter: .2s; }
.lifted { --enter: .27s; }
.crew { --enter: .36s; }
.ribbons { --enter: .42s; }
.intro { --enter: .48s; }

@keyframes arrive { from { opacity: 0; transform: translateY(7px); } }
@keyframes drift { 50% { transform: translateX(13px); } }
@keyframes lift { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.15deg); } }
@keyframes work { 45%, 75% { transform: rotate(4deg); } }
@keyframes sway { 50% { transform: scaleY(.94) rotate(-.28deg); } }

@media (max-width: 900px) {
  .scene { width: min(100%, calc(100cqh * 2.15686)); }
  .intro { padding-inline: clamp(31px, 7.5vw, 66px); }
}

@media (max-width: 600px) {
  :root { --ribbon-height: clamp(69px, 11svh, 94px); }
  .brand { padding: 24px 24px 0; }
  .construction { grid-template-rows: minmax(155px, 1fr) var(--ribbon-height); }
  .scene { width: min(108%, calc(100cqh * 2.15686)); }
  .ribbon { width: 760px; }
  .ribbon text { font-size: 23px; letter-spacing: .012em; }
  .ribbon-band { stroke-width: 50; }
  .intro { padding-top: 18px; }
  .intro h1 { font-size: clamp(2.17rem, 8.8vw, 3.4rem); letter-spacing: -.064em; }
  .emphasis { width: .46em; }
  .emphasis-left { right: calc(100% + .13em); bottom: .13em; }
  .emphasis-right { left: calc(100% + .1em); top: -.04em; }
  .intro p { margin-top: 13px; line-height: 1.52; }
  .contact { padding-block: 16px; }
  .contact a { min-height: 44px; }
}

@media (min-width: 601px) and (max-height: 680px) {
  :root { --ribbon-height: 83px; }
  .brand { padding-top: 16px; }
  .brand img { width: 98px; }
  .construction { grid-template-rows: minmax(125px, 1fr) var(--ribbon-height); }
  .intro { padding-top: 12px; }
  .cta { margin-top: 13px; }
  .contact { padding-block: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor-doodles, .cta:hover svg { transform: none; }
}

@media (min-width: 901px) {
  .landing { position: relative; grid-template-rows: 1fr auto; }
  .brand { position: absolute; inset: 0 auto auto 0; }
  .construction { padding-top: clamp(36px, 6svh, 66px); }
}

@media (max-width: 600px) {
  .scene { width: min(102%, calc(100cqh * 2.15686)); }
  .ribbon-back { top: -12px; }
  .contact { padding-top: clamp(16px, calc((100svh - 720px) * .23), 42px); }
}

@media (max-width: 365px) {
  .intro { padding-inline: 22px; }
  .intro p { font-size: .95rem; line-height: 1.45; }
  .cta { white-space: nowrap; padding-inline: 13px; gap: .45rem; }
  .contact { padding-inline: 9px; gap: 4px 12px; font-size: .73rem; }
}
