.work-page {
  position: relative;
  padding: 20px 0 0;
}

.work-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.work-page__copy {
  position: relative;
  z-index: 2;
  padding-block: 40px;
  animation: work-arrive 650ms cubic-bezier(.2,.65,.3,1) both;
}

.cluster-light .work-page h1.title {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.7vw, 4.1rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.work-page .lead {
  max-width: 48ch;
  margin: 28px 0 0;
  color: var(--site-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.work-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.work-page__actions .brand-cta-primary,
.work-page__actions .brand-cta-secondary {
  gap: 9px;
  padding: 12px 18px;
  cursor: pointer;
}

.work-page__actions > a::after {
  content: "↗";
  font-size: 1.05em;
  transition: transform 180ms ease;
}

.work-page__actions > a:hover::after {
  transform: translate(2px, -2px);
}

.work-page__actions > :is(a, button):focus-visible {
  outline: 2px solid var(--site-ink);
  outline-offset: 4px;
}

.work-page__illustration {
  position: relative;
  min-width: 0;
  margin: 0;
  isolation: isolate;
  animation: work-arrive 900ms cubic-bezier(.2,.65,.3,1) 120ms both;
}

.work-page__lighthouse {
  position: relative;
  width: 100%;
}

.work-page__engraving {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  border-radius: 24% / 16%;
  --edge-fade: radial-gradient(ellipse at 50% 46%, #000 48%, #000 60%, transparent 75%);
  --edge-horizontal: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  --edge-vertical: linear-gradient(to bottom, transparent, #000 7%, #000 84%, transparent);
  mask-image: var(--edge-fade), var(--edge-horizontal), var(--edge-vertical);
  mask-composite: intersect;
}

.has-flying-birds .work-page__engraving {
  mask-image: var(--edge-fade), var(--edge-horizontal), var(--edge-vertical), var(--bird-cutout);
}

.work-page__beam {
  position: absolute;
  z-index: 0;
  top: 8%;
  left: 48%;
  width: 52%;
  height: 13%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--site-yellow) 24%, transparent), transparent);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform-origin: 0 50%;
  animation: work-beacon-sweep 4s ease-in-out infinite alternate;
}

.work-page__beacon {
  position: absolute;
  z-index: 2;
  top: 14.5%;
  left: 48%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--site-yellow);
  box-shadow: 0 0 14px color-mix(in srgb, var(--site-yellow) 40%, transparent);
  transform: translate(-50%, -50%);
}

.work-page__cloud {
  position: absolute;
  z-index: -1;
  top: -2%;
  left: -15%;
  width: 44%;
  height: auto;
  opacity: .65;
  border-radius: 50%;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 72%);
  animation: work-cloud-appear 1200ms ease-out both, work-cloud-drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.work-page__birds {
  display: none;
  position: absolute;
  top: -60vh;
  left: 0;
  height: calc(var(--artwork-height) + 60vh);
  overflow: clip;
  z-index: 3;
  pointer-events: none;
}

.has-flying-birds .work-page__birds { display: block; }

.work-page__bird {
  position: absolute;
  display: block;
  opacity: 0;
  animation: work-bird-flight var(--flight-duration) linear var(--flight-delay) infinite both;
}

.work-page__bird svg {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1);
  transform-origin: 50% 60%;
  animation: work-bird-bank 3.8s ease-in-out var(--flight-delay) infinite alternate;
}

.work-bird__wing { fill: #202020; stroke: #121212; stroke-width: .6; stroke-linejoin: round; }
.work-bird__wing--far { fill: #383838; }
.work-bird__body { fill: #171717; }
.work-bird__feathers { fill: none; stroke: #f7f7f7; stroke-width: .6; opacity: .42; }

.work-page__wind {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 74%);
}

.work-page__wind path {
  fill: none;
  stroke: var(--site-muted);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 48 240;
  animation: work-wind-stream var(--wind-speed) linear var(--wind-delay) infinite;
}

.work-page__illustration:not(.is-animating) .work-page__bird,
.work-page__illustration:not(.is-animating) .work-page__bird svg,
.work-page__illustration:not(.is-animating) .work-page__wind path,
.has-flying-birds:not(.is-animating) .work-page__cloud,
.has-flying-birds:not(.is-animating) .work-page__beam { animation-play-state: paused; }

@keyframes work-bird-flight {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  5% { opacity: .9; }
  25% { opacity: .9; transform: translate3d(18vw, -8vh, 0) rotate(-4deg); }
  50% { opacity: .8; transform: translate3d(50vw, -22vh, 0) rotate(-8deg) scale(.85); }
  72% { opacity: .6; transform: translate3d(85vw, -32vh, 0) rotate(-3deg) scale(.75); }
  85%, 100% { opacity: 0; transform: translate3d(110vw, -38vh, 0) rotate(0deg) scale(.7); }
}

@keyframes work-bird-bank {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-3px) rotate(2deg); }
}

@keyframes work-wind-stream {
  0% { stroke-dashoffset: 110; opacity: 0; }
  20% { opacity: .22; }
  65% { opacity: .22; }
  100% { stroke-dashoffset: -210; opacity: 0; }
}

@keyframes work-cloud-appear {
  from { opacity: 0; filter: blur(5px); }
  to { opacity: .65; filter: blur(0); }
}

@keyframes work-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes work-beacon-sweep {
  from { transform: rotate(-16deg); opacity: .45; }
  to { transform: rotate(12deg); opacity: .85; }
}

@keyframes work-cloud-drift {
  from { transform: translate3d(-16px, 2px, 0); }
  to { transform: translate3d(40px, -4px, 0); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .work-page__layout { gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .work-page__actions { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .work-page { padding-top: 4px; }
  .work-page__layout { grid-template-columns: 1fr; gap: 24px; }
  .work-page__copy { padding-block: 0; }
  .cluster-light .work-page h1.title { max-width: 15ch; font-size: clamp(2.5rem, 9.5vw, 3.5rem); }
  .work-page .lead { margin-top: 22px; font-size: .95rem; line-height: 1.8; }
  .work-page__actions { margin-top: 26px; gap: 10px; }
  .work-page__actions .brand-cta-primary,
  .work-page__actions .brand-cta-secondary { min-height: 44px; font-size: .82rem; padding-inline: 16px; }
  .work-page__illustration { width: min(100%, 340px); margin: 8px auto -24px; }
  .work-page__cloud { left: 0; top: -1%; width: 38%; }
}

@media (prefers-reduced-motion: reduce) {
  .work-page__copy,
  .work-page__illustration,
  .work-page__beam,
  .work-page__cloud,
  .work-page__bird,
  .work-page__bird svg { animation: none; }
  .work-page__wind { display: none; }
  .work-page__actions > a::after { transition: none; }
}
