/* ==========================================================================
   IdeaCatcher landing: a group show on the stencil wall. The Stencil mural is
   sprayed straight on the concrete, the Garden hangs framed from a nail and
   the Alley is pasted up with tape. Each work is the door into its site.
   ========================================================================== */

:root {
  /* the wall (Stencil) */
  --wall: #7a7367;
  --wall-dark: #5d584f;
  --ink: #1b1b1b;
  --cream: #f6efe0;
  --gold: #f2b705;
  --gold-deep: #c98f00;
  /* the Garden */
  --g-paper: #f5edda;
  --g-ink: #263354;
  --g-coral: #ef785e;
  --g-muted: #777664;
  /* the Alley */
  --a-card: #fffaf0;
  --a-red: #c8452b;
  --a-yellow: #ffd75e;

  --stencil: 'Stardos Stencil', Impact, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --comic: 'Bowlby One SC', Impact, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 15% 8%, rgba(0, 0, 0, .14), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(255, 255, 255, .06), transparent 40%),
    radial-gradient(ellipse at 50% 95%, rgba(0, 0, 0, .18), transparent 50%),
    linear-gradient(180deg, var(--wall) 0%, var(--wall-dark) 100%);
  background-color: var(--wall-dark);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

/* concrete grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: .35;
  mix-blend-mode: overlay;
}

.mast, main, .foot { position: relative; z-index: 1; }

a { color: inherit; }
:focus-visible { outline: 3px dashed var(--gold); outline-offset: 6px; }

/* ---------- masthead ---------- */

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem clamp(1rem, 5vw, 4rem);
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  text-decoration: none;
  font-size: 1.45rem;
}
.mark-idea {
  font: 700 1em/1 var(--stencil);
  letter-spacing: .08em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.mark-catcher {
  font: italic 600 1.05em/1 var(--serif);
  letter-spacing: -.03em;
  color: var(--a-yellow);
}
.mark i { font: 500 .4em var(--mono); font-style: normal; align-self: flex-start; }

.mast-note {
  margin: 0;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .5em;
  border-radius: 50%;
  background: #7fd09a;
  box-shadow: 0 0 0 3px rgba(127, 208, 154, .25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- hero: one sentence, three voices ---------- */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 5vw, 4rem) 1rem;
}

.from-tag {
  display: inline-block;
  margin: 0 0 1.4rem;
  font: 700 clamp(1rem, 2vw, 1.3rem)/1 var(--stencil);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  transform: rotate(-3deg);
  text-shadow: 0 0 10px rgba(242, 183, 5, .45), 2px 2px 0 rgba(0, 0, 0, .3);
}
.from-tag[hidden] { display: none; }
.from-tag b { color: var(--cream); }

.headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35em;
  margin: 0;
  font-weight: 400;
}

/* the Stencil voice: sprayed straight on the wall */
.h-stencil {
  font: 700 clamp(2.5rem, 7.4vw, 6rem)/.95 var(--stencil);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow:
    1px 0 0 rgba(0, 0, 0, .35),
    -1px 0 0 rgba(0, 0, 0, .35),
    0 0 18px rgba(246, 239, 224, .18),
    3px 4px 8px rgba(0, 0, 0, .35);
}

/* the Garden voice: a torn strip of field-guide paper */
.h-garden {
  margin-left: clamp(0rem, 6vw, 5rem);
  padding: .12em .45em .2em .4em;
  font: 600 clamp(2rem, 5.6vw, 4.6rem)/1.05 var(--serif);
  letter-spacing: -.045em;
  color: var(--g-ink);
  background: var(--g-paper);
  transform: rotate(.8deg);
  box-shadow: 0 14px 24px rgba(0, 0, 0, .28);
  clip-path: polygon(0 4%, 6% 0, 18% 3%, 33% 0, 52% 4%, 70% 0, 88% 3%, 100% 0, 99% 52%, 100% 100%, 82% 96%, 64% 100%, 45% 96%, 27% 100%, 10% 96%, 0 100%, 1% 48%);
}
.h-garden em { font-style: italic; font-weight: 500; color: var(--g-coral); }

/* the Alley voice: a comic caption box */
.h-alley {
  margin-left: clamp(0rem, 14vw, 13rem);
  padding: .35em .7em .3em;
  font: 400 clamp(1.1rem, 2.8vw, 2.1rem)/1.1 var(--comic);
  color: var(--a-red);
  background: var(--a-card);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-2deg);
}

.lede {
  max-width: 44ch;
  margin: 2.2rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

/* ---------- the gallery ---------- */

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) 3rem;
}

.work {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.work--stencil { margin-top: 2.5rem; }
.work--alley { margin-top: 4rem; }

/* the idea casts a little light on whichever work it visits */
.work::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12% -10% 20%;
  background: radial-gradient(closest-side, rgba(255, 215, 94, .26), transparent);
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.work.is-lit::before,
.work:hover::before,
.work:focus-visible::before { opacity: 1; }

/* plaques: one museum convention, three house styles */
.plaque {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  width: min(100%, 290px);
  margin-top: 1.6rem;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.plaque-no { font: 500 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.plaque-title { font-size: 1.05rem; line-height: 1.2; }
.plaque-meta { font-size: .8rem; line-height: 1.4; }
.plaque-go {
  align-self: flex-start;
  margin-top: .45rem;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s ease;
}
.plaque-go::after { content: ' →'; display: inline-block; transition: transform .25s ease; }
.work:hover .plaque-go,
.work:focus-visible .plaque-go { background-size: 100% 2px; }
.work:hover .plaque-go::after,
.work:focus-visible .plaque-go::after { transform: translateX(4px); }
.work:hover .plaque,
.work:focus-visible .plaque { transform: translateY(-3px); }

/* ---- No. 1: the Stencil mural, sprayed on the wall ---- */

.stencil-art { width: 100%; transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.stencil-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); }
.work--stencil:hover .stencil-art,
.work--stencil:focus-visible .stencil-art { transform: translateY(-4px); }

.ink { fill: var(--ink); }
.thick { fill: none; stroke: var(--ink); stroke-linecap: round; }
.drip { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; opacity: .85; }
.face-shadow { fill: #000; opacity: .45; }
.shadow { fill: #000; opacity: .22; }
.net-handle { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.net-ring { fill: none; stroke: var(--ink); stroke-width: 5; }
.netting path { fill: none; stroke: var(--ink); stroke-width: 2.5; opacity: .75; }
.swoop { fill: none; stroke: var(--cream); stroke-width: 3; stroke-dasharray: 2 8; opacity: .55; stroke-linecap: round; }
.bulb-glow { fill: var(--gold); opacity: .35; transition: opacity .5s; }
.bulb { fill: var(--gold); stroke: #7a5400; stroke-width: 1.5; }
.bulb-base { fill: #3a3a3a; }
.filament { stroke: #7a5400; stroke-width: 2; }
.rays { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; opacity: .9; }
.spray-dots circle { fill: var(--ink); opacity: .4; }
.seam { fill: none; stroke: var(--wall); stroke-width: 5; stroke-linecap: round; opacity: .9; }
.work--stencil.is-lit .bulb-glow,
.work--stencil:hover .bulb-glow { opacity: .75; }

.plaque--stencil { color: #2a2a2a; background: var(--cream); border: 1px solid #cfc2a3; border-radius: 2px; }
.plaque--stencil .plaque-title { font-family: var(--stencil); font-weight: 700; letter-spacing: .03em; }
.plaque--stencil .plaque-meta { font-style: italic; color: #5c5646; }
.plaque--stencil .plaque-go { font: 700 .95rem/1.2 var(--stencil); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }

/* ---- No. 2: the Garden, framed and hung from a nail ---- */

.hang {
  position: relative;
  width: 100%;
  padding-top: 46px;
  transform-origin: 50% 0;
  transform: rotate(-1.2deg);
  transition: transform .5s ease;
}
.work--garden:hover .hang,
.work--garden:focus-visible .hang { animation: swing 1.6s ease-in-out; }
@keyframes swing {
  0%   { transform: rotate(-1.2deg); }
  30%  { transform: rotate(1.6deg); }
  60%  { transform: rotate(-.6deg); }
  100% { transform: rotate(-1.2deg); }
}
.wire { position: absolute; top: 8px; left: 18%; width: 64%; height: 44px; overflow: visible; }
.wire polyline { fill: none; stroke: #2a2620; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.nail {
  position: absolute;
  top: 2px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9d2c4, #4a463f 70%);
  box-shadow: 1px 2px 3px rgba(0, 0, 0, .5);
}
.frame {
  padding: 12px;
  background: linear-gradient(135deg, #7a5532, #3d2915 55%, #6b4a2b);
  box-shadow: 0 22px 34px rgba(0, 0, 0, .42), inset 0 0 0 2px rgba(255, 230, 190, .12);
}
.mat { padding: clamp(10px, 1.6vw, 18px); background: var(--g-paper); box-shadow: inset 0 0 0 1px rgba(38, 51, 84, .15); }
.mat img { display: block; width: 100%; height: auto; }

.plaque--garden { color: var(--g-ink); background: var(--g-paper); transform: rotate(.8deg); }
.work--garden:hover .plaque--garden,
.work--garden:focus-visible .plaque--garden { transform: rotate(.8deg) translateY(-3px); }
.plaque--garden .plaque-title { font: 600 1.18rem/1.15 var(--serif); letter-spacing: -.03em; }
.plaque--garden .plaque-meta { font-family: var(--mono); font-size: .72rem; color: var(--g-muted); }
.plaque--garden .plaque-go { font: italic 600 1.05rem/1.2 var(--serif); color: var(--g-coral); }

/* ---- No. 3: the Alley, pasted up with tape ---- */

.poster {
  position: relative;
  width: 100%;
  padding: 10px 10px 12px;
  background: var(--a-card);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(2.2deg);
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1), box-shadow .4s;
}
.work--alley:hover .poster,
.work--alley:focus-visible .poster { transform: rotate(.4deg) translateY(-6px); box-shadow: 10px 12px 0 var(--ink); }
.poster img { display: block; width: 100%; height: auto; aspect-ratio: 2752 / 1536; object-fit: cover; }
.halftone {
  position: absolute;
  inset: 10px 10px 12px;
  background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1.4px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  opacity: .22;
  pointer-events: none;
}
.tape {
  position: absolute;
  top: -12px;
  z-index: 2;
  width: 76px;
  height: 24px;
  background: rgba(244, 232, 190, .82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.tape--l { left: -18px; transform: rotate(-32deg); }
.tape--r { right: -18px; transform: rotate(28deg); }
.bubble {
  position: absolute;
  left: 8%;
  bottom: 16%;
  z-index: 1;
  padding: .55em .9em;
  font: 400 clamp(.6rem, 1vw, .78rem)/1.15 var(--comic);
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}
.bubble::after {
  content: '';
  position: absolute;
  right: 14%;
  bottom: -11px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: skewX(-30deg) rotate(30deg);
}

.plaque--alley { color: var(--ink); background: var(--a-card); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-1.4deg); }
.work--alley:hover .plaque--alley,
.work--alley:focus-visible .plaque--alley { transform: rotate(-1.4deg) translateY(-3px); }
.plaque--alley .plaque-title { font: 400 1.05rem/1.15 var(--comic); color: var(--a-red); }
.plaque--alley .plaque-meta { font-family: var(--serif); font-size: .88rem; }
.plaque--alley .plaque-go { font: 500 .78rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a-red); }
.plaque--alley .plaque-go::before { content: '☞ '; }

/* ---------- the runaway idea ---------- */

.idea {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 58px;
  height: 58px;
  pointer-events: none;
  transition: transform 1.5s cubic-bezier(.45, .05, .3, 1);
  will-change: transform;
}
.idea[hidden] { display: none; }
.idea.no-anim { transition: none; }
.idea svg { display: block; width: 100%; height: 100%; overflow: visible; animation: bob 1.8s ease-in-out infinite; }
.idea-glow { fill: rgba(255, 215, 94, .35); filter: blur(6px); }
.idea-wings path { fill: #fff6dd; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.idea-wings { transform-origin: 32px 27px; animation: flap .16s ease-in-out infinite alternate; }
.idea-bulb { fill: var(--a-yellow); stroke: var(--ink); stroke-width: 2.5; }
.idea-filament { fill: none; stroke: #7a5400; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.idea-base { fill: #777; stroke: var(--ink); stroke-width: 2.5; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(4deg); } }
@keyframes flap { to { transform: scaleY(.5); } }

.trail-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cream);
  pointer-events: none;
  animation: fade 1.4s ease-out forwards;
}
@keyframes fade { from { opacity: .75; } to { opacity: 0; } }

/* ---------- coda: the invitation, in all three voices ---------- */

.coda {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6.5rem clamp(1rem, 5vw, 4rem) 4rem;
  overflow: hidden;
}

.rat {
  position: absolute;
  top: 1rem;
  left: -100px;
  width: 92px;
  animation: scurry 16s linear infinite;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4));
}
@keyframes scurry { to { left: 100%; } }
.rat .bubble-body, .rat .bubble-dot { fill: var(--cream); stroke: var(--ink); stroke-width: 2; }
.rat .r-bulb { fill: var(--gold); stroke: #7a5400; stroke-width: 1; }
.rat .r-bulb-base { fill: #3a3a3a; }
.rat .r-filament { stroke: #7a5400; stroke-width: 1.2; }
.rat .r-bubble { animation: bob 2.6s ease-in-out infinite; }
.rat .r-tail { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.rat .r-eye { fill: var(--wall); }
.rat .r-seam { fill: none; stroke: var(--wall); stroke-width: 2.5; stroke-linecap: round; }
.rat .r-legs-a, .rat .r-legs-b { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.rat .r-legs-a { animation: legs-a .34s steps(1) infinite; }
.rat .r-legs-b { animation: legs-b .34s steps(1) infinite; }
@keyframes legs-a { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes legs-b { 0%, 45% { opacity: 0; } 50%, 100% { opacity: 1; } }

.coda-line {
  max-width: 36ch;
  margin: 0 auto;
  font: 500 clamp(1.3rem, 2.8vw, 2.05rem)/1.65 var(--serif);
  letter-spacing: -.02em;
  text-align: center;
}
.coda-line a { text-decoration: none; white-space: nowrap; transition: transform .25s ease, box-shadow .25s ease; display: inline-block; line-height: 1.25; }

.l-stencil {
  font: 700 1.05em/1.2 var(--stencil);
  letter-spacing: .03em;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(242, 183, 5, .4);
  background: radial-gradient(ellipse at 50% 100%, rgba(242, 183, 5, .55), transparent 70%) 0 100% / 100% 6px no-repeat;
}
.l-stencil:hover { text-shadow: 0 0 16px rgba(242, 183, 5, .8); }

.l-garden {
  padding: 0 .35em;
  font-style: italic;
  color: var(--g-ink);
  background: var(--g-paper);
  transform: rotate(-1deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
}
.l-garden:hover { color: var(--g-coral); transform: rotate(1deg); }

.l-alley {
  padding: .05em .45em;
  font: 400 .72em/1.3 var(--comic);
  color: var(--a-red);
  background: var(--a-card);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(1.5deg);
}
.l-alley:hover { transform: rotate(-1deg) translateY(-2px); box-shadow: 5px 5px 0 var(--ink); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 2rem;
  padding: 2rem 1rem 2.6rem;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .78;
}

/* ---------- small screens: the works hang one above the other ---------- */

@media (max-width: 899px) {
  .gallery { grid-template-columns: 1fr; justify-items: center; gap: 3.5rem; }
  .work { width: min(100%, 540px); }
  .work--stencil, .work--alley { margin-top: 0; }
  .coda-line a { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rat { left: 6%; }
}
