:root {
  --blue: #d9eeff;
  --cream: #fff8e9;
  --pink: #ffe0e4;
  --yellow: #fff3cc;
  --ink: #202020;
  --white: #fff;
  --border: clamp(3px, .35vw, 5px) solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --font: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font); font-size: 1rem; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 200; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .7rem 1rem; background: white; border: 3px solid var(--ink); font-weight: 900; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: .8rem clamp(.8rem, 3vw, 2.5rem); pointer-events: none; }
.nav-shell { width: min(1060px, 100%); margin: auto; min-height: 56px; padding: .45rem .7rem .45rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(255,255,255,.96); border: 4px solid var(--ink); border-radius: 22px 18px 24px 19px; box-shadow: 5px 5px 0 var(--ink); pointer-events: auto; }
.brand { text-decoration: none; font-size: 1.35rem; font-weight: 1000; letter-spacing: .05em; }
.nav-links { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.nav-links a { text-decoration: none; font-size: .86rem; font-weight: 900; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { border-color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 40px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 3px; margin: 4px auto; background: var(--ink); border-radius: 3px; }

section { position: relative; scroll-margin-top: 5rem; }
.section-inner { width: min(1120px, calc(100% - 2rem)); margin: auto; padding: clamp(5rem, 9vw, 8rem) 0; }
.section-inner.wide { width: min(1380px, calc(100% - 2rem)); }
.eyebrow { margin: 0 0 .5rem; font-weight: 1000; letter-spacing: .12em; font-size: clamp(.82rem, 1.2vw, 1rem); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; line-height: .94; font-weight: 1000; letter-spacing: -.045em; }
h2 { margin-bottom: clamp(2rem, 5vw, 4rem); font-size: clamp(2.5rem, 6vw, 5.7rem); }

.hero { min-height: 100svh; padding-top: 6.2rem; display: grid; place-items: center; background: var(--blue); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border: 4px solid var(--ink); border-radius: 50%; opacity: .12; }
.hero::before { width: 180px; height: 70px; left: -60px; top: 24%; }
.hero::after { width: 240px; height: 90px; right: -80px; top: 32%; }
.hero-content { width: min(900px, calc(100% - 2rem)); padding: 1rem 0 7.5rem; text-align: center; z-index: 1; }
.hero .eyebrow { margin-bottom: -.2rem; }
h1 { margin: 0; font-size: clamp(5rem, 15vw, 10.5rem); letter-spacing: -.08em; text-shadow: 5px 5px 0 var(--white); }
.tagline { margin: .4rem auto 1rem; font-size: clamp(1.1rem, 2.3vw, 1.65rem); font-weight: 700; }
.hero-pigeon { position: relative; display: block; width: min(420px, 78vw); height: clamp(245px, 39vw, 390px); margin: .2rem auto .8rem; padding: 0; border: 0; background: transparent; cursor: pointer; animation: pigeon-wobble 4s ease-in-out infinite; }
.hero-pigeon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.speech-bubble { position: absolute; z-index: 2; top: 6%; right: 1%; padding: .65rem 1rem; background: white; border: 4px solid var(--ink); border-radius: 50%; font-size: 1.25rem; font-weight: 1000; opacity: 0; transform: scale(.5) rotate(8deg); transition: .2s ease; }
.speech-bubble::after { content: ""; position: absolute; left: 12%; bottom: -14px; width: 18px; height: 18px; background: white; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(35deg); }
.speech-bubble.show { opacity: 1; transform: scale(1) rotate(5deg); }
.hero-actions, .social-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cartoon-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: .65rem; padding: .8rem 1.35rem; color: var(--ink); background: white; border: 4px solid var(--ink); border-radius: 15px 20px 14px 18px; box-shadow: 5px 5px 0 var(--ink); text-decoration: none; font-weight: 1000; line-height: 1; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.cartoon-button:hover, .cartoon-button:focus-visible { transform: translateY(-5px) rotate(-1.5deg); box-shadow: 8px 9px 0 var(--ink); }
.cartoon-button:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.pink { background: var(--pink); }.yellow { background: var(--yellow); }.blue { background: var(--blue); }

.marquee { position: absolute; inset: auto 0 0; overflow: hidden; background: var(--yellow); border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: marquee-scroll 18s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; min-width: 100vw; }
.marquee-group span { flex: 0 0 12.5vw; min-width: 110px; padding: .72rem 1rem; text-align: center; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 1000; white-space: nowrap; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
@keyframes pigeon-wobble { 0%,100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-7px); } }

.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.story-copy h2 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 8vw, 7rem); }
.story-copy > p:last-child { max-width: 36rem; margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.55; font-weight: 700; }
.story-picture { position: relative; transform: rotate(2deg); }
.story-picture img { width: 100%; max-height: 650px; object-fit: contain; border: var(--border); border-radius: 52% 48% 46% 54% / 47% 48% 52% 53%; box-shadow: 10px 10px 0 var(--ink); }
.crumb { position: absolute; z-index: 2; width: 20px; height: 14px; background: #d5964c; border: 3px solid var(--ink); border-radius: 45%; }
.crumb-one { left: -3%; top: 17%; transform: rotate(25deg); }.crumb-two { right: -2%; top: 45%; }.crumb-three { left: 7%; bottom: 5%; transform: rotate(-20deg); }
.reveal.visible .crumb { animation: crumbs-fall .8s ease both; }
.reveal.visible .crumb-two { animation-delay: .16s; }.reveal.visible .crumb-three { animation-delay: .3s; }
@keyframes crumbs-fall { from { opacity: 0; transform: translateY(-35px) rotate(-20deg); } to { opacity: 1; transform: translateY(0) rotate(12deg); } }

.gallery-section { background: var(--pink); text-align: center; border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink); }
.gallery-section h2 { margin-left: auto; margin-right: auto; max-width: 1100px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); align-items: start; }
.gallery-card { padding: .65rem .65rem 1.35rem; background: var(--white); border: var(--border); border-radius: 12px 18px 14px 20px; box-shadow: 6px 7px 0 var(--ink); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.gallery-card.tilt-left { transform: rotate(-1deg); }.gallery-card.tilt-right { transform: rotate(1deg); }
.gallery-card:hover, .gallery-card:focus-within { transform: translateY(-8px) rotate(0); box-shadow: 10px 13px 0 var(--ink); }
.gallery-open { display: block; width: 100%; aspect-ratio: 1; padding: 0; background: var(--cream); border: 0; border-radius: 7px; overflow: hidden; cursor: zoom-in; }
.gallery-open img { width: 100%; height: 100%; object-fit: contain; }
.gallery-card h3 { margin: 1.15rem .35rem .25rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.gallery-card p { min-height: 2.8em; margin: 0 .35rem; line-height: 1.35; font-weight: 700; }

.feed-section { background: var(--yellow); text-align: center; }
.feed-inner h2 { margin-bottom: 1rem; }
.feed-stage { position: relative; width: min(580px, 100%); height: clamp(270px, 45vw, 440px); margin: auto; }
.feed-message { position: absolute; z-index: 3; top: 2%; left: 50%; transform: translateX(-50%) rotate(-2deg); min-width: max-content; max-width: 90%; padding: .6rem 1rem; background: white; border: 4px solid var(--ink); border-radius: 50%; font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 1000; }
.feed-pigeon { width: 100%; height: 100%; object-fit: contain; }
.feed-pigeon.chomp { animation: pigeon-hop .36s ease; }
@keyframes pigeon-hop { 50% { transform: translateY(-18px) rotate(2deg) scale(1.025); } }
.bread-flight-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flying-bread { position: absolute; left: 4%; bottom: 3%; width: 44px; height: 33px; background: #ffe2a0; border: 4px solid var(--ink); border-radius: 16px 16px 8px 8px; animation: bread-fly .7s cubic-bezier(.24,.8,.35,1) forwards; }
.flying-bread::before { content: ""; position: absolute; inset: 4px; border-top: 4px solid #cc853d; border-radius: 50%; }
@keyframes bread-fly { to { transform: translate(275px,-180px) rotate(420deg) scale(.4); opacity: 0; } }
.crumb-count { margin: .5rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 1000; }
.bread-button { margin: auto; background: #ffcf75; font-size: 1.2rem; }
.bread-icon { width: 27px; height: 22px; background: #ffe2a0; border: 3px solid var(--ink); border-radius: 11px 11px 5px 5px; }
.feed-inner small { display: block; margin-top: 1.4rem; font-weight: 700; }

.address-section { background: var(--pink); border-top: 5px solid var(--ink); text-align: center; overflow: hidden; }
.address-inner h2 { max-width: 900px; margin-left: auto; margin-right: auto; }
.address-card { width: min(690px, 100%); margin: auto auto 2.2rem; padding: 1rem; background: white; border: var(--border); border-radius: 28px 23px 30px 20px; box-shadow: 9px 10px 0 var(--ink); overflow: hidden; }
.address-card > img { width: 100%; height: clamp(220px, 42vw, 390px); object-fit: contain; background: var(--pink); border-radius: 15px; }
.address-content { padding: 1.5rem .5rem .7rem; }
.address-content h3 { margin-bottom: 1.2rem; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.copy-row { display: flex; gap: .8rem; }
.copy-row output { flex: 1; min-width: 0; padding: .9rem; background: var(--cream); border: 4px solid var(--ink); border-radius: 13px; text-align: left; font-weight: 1000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-row button { padding: .8rem 1rem; background: var(--yellow); border: 4px solid var(--ink); border-radius: 13px; font-weight: 1000; cursor: pointer; }
.copy-row button:hover, .copy-row button:focus-visible { background: var(--blue); }
.sign-off { margin: 2rem 0 3.5rem; font-size: 1.25rem; font-weight: 1000; transform: rotate(-2deg); }
.peek-coocoo { position: absolute; width: 115px; right: clamp(1rem, 8vw, 9rem); bottom: -120px; transition: transform .7s cubic-bezier(.2,.8,.2,1); mix-blend-mode: multiply; }
.address-section.peek .peek-coocoo { transform: translateY(-93px); }

.image-modal { width: min(880px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); padding: .7rem; background: white; border: 5px solid var(--ink); border-radius: 20px; box-shadow: 10px 10px 0 var(--ink); overflow: visible; }
.image-modal::backdrop { background: rgba(32,32,32,.72); }
.image-modal img { width: 100%; max-height: calc(100svh - 4rem); object-fit: contain; border-radius: 10px; }
.modal-close { position: absolute; right: -16px; top: -18px; width: 48px; height: 48px; padding: 0; background: var(--yellow); border: 4px solid var(--ink); border-radius: 50%; font-size: 2rem; font-weight: 1000; line-height: 1; cursor: pointer; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(35px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .story-grid { gap: 2rem; }
}

@media (max-width: 720px) {
  .site-header { padding: .55rem; }
  .nav-shell { position: relative; min-height: 52px; padding: .35rem .4rem .35rem 1rem; border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; inset: calc(100% + 8px) 0 auto; display: grid; padding: .7rem; background: white; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: .65rem .8rem; border: 0; border-radius: 9px; }
  .nav-links a:hover, .nav-links a:focus-visible { background: var(--yellow); }
  .hero { padding-top: 5rem; }
  .hero-content { padding-bottom: 6.5rem; }
  h1 { line-height: .9; }
  .hero-pigeon { height: 255px; }
  .hero-actions .cartoon-button { flex: 1 1 220px; max-width: 320px; }
  .marquee-group span { flex-basis: 140px; min-width: 140px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { text-align: center; }
  .story-picture { width: min(520px, 95%); margin: auto; }
  .copy-row { flex-direction: column; }
  .copy-row output { text-align: center; }
  .copy-row button { min-height: 52px; }
  .peek-coocoo { right: 1rem; }
}

@media (max-width: 480px) {
  .section-inner, .section-inner.wide { width: min(100% - 1.2rem, 1120px); }
  .gallery-grid { grid-template-columns: 1fr; width: min(360px, 100%); margin: auto; }
  .gallery-card p { min-height: 0; }
  .hero-actions, .social-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cartoon-button { flex: none; max-width: none; width: 100%; }
  .feed-stage { height: 275px; }
  @keyframes bread-fly { to { transform: translate(180px,-120px) rotate(420deg) scale(.4); opacity: 0; } }
  .address-card { padding: .65rem; }
  .address-content { padding: 1.3rem 0 .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
