/* Walburg Co. — shared styles.
   Layout and color live inline in each page; this file holds the shared
   behavior: hovers, scroll animations, responsive tweaks. */

:root { --accent: #FF5A1F; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #ECEAE3; }
a { color: #121212; }
a:hover { color: #121212; }
:focus-visible { outline: 3px solid #121212; outline-offset: 3px; }
[hidden] { display: none !important; }

/* Hovers */
.wc-btn { transition: transform .2s ease, box-shadow .2s ease; }
.wc-btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #121212; }
.wc-card { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1); }
.wc-card:hover { transform: translate(-4px, -6px) rotate(-.5deg); box-shadow: 8px 10px 0 #121212; }
.wc-arrow { display: inline-block; transition: transform .25s ease; }
.wc-card:hover .wc-arrow, .wc-btn:hover .wc-arrow, .wc-link:hover .wc-arrow { transform: translateX(6px); }
.wc-row, .wc-phrase { transition: background-color .25s ease, padding-left .25s ease; }
.wc-row:hover, .wc-phrase:hover { background-color: #F7F6F2; padding-left: 16px; }
.wc-step { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s cubic-bezier(.2,.8,.2,1); }
.wc-step:hover { transform: translate(-3px, -4px); box-shadow: 6px 7px 0 #121212; }
.wc-play { transition: transform .2s ease; }
.wc-play:hover { transform: scale(1.08); }

/* Project grid */
.wc-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.wc-s2 { grid-column: span 2; } .wc-s3 { grid-column: span 3; }
.wc-s4 { grid-column: span 4; } .wc-s6 { grid-column: span 6; }
@media (max-width: 900px) {
  .wc-bento { grid-template-columns: minmax(0, 1fr); }
  .wc-s2, .wc-s3, .wc-s4, .wc-s6 { grid-column: auto; }
}
@media (max-width: 700px) {
  .wc-navlink, .wc-hide-sm { display: none !important; }
}

/* Audio player */
.wc-icon-pause { display: none; }
.wc-player.is-playing .wc-icon-play { display: none; }
.wc-player.is-playing .wc-icon-pause { display: block; }

/* Always-on motion */
@keyframes wc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wc-marquee { animation: wc-marquee 38s linear infinite; }
@keyframes wc-spin { to { transform: rotate(360deg); } }
.wc-spin { animation: wc-spin 26s linear infinite; }
@keyframes wc-draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
.wc-underline path { stroke-dasharray: 520; animation: wc-draw 1.1s .5s cubic-bezier(.6,0,.2,1) both; }
@keyframes wc-bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.wc-wave span { transform-origin: 50% 100%; animation: wc-bar 1.2s ease-in-out infinite; }
.wc-wave[data-on="false"] span { animation-play-state: paused; }
@keyframes wc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wc-fade { animation: wc-fade .4s ease both; }

/* Scroll-driven motion (Chrome, Edge, newer Safari; others just show the page) */
@keyframes wc-rise { from { opacity: 0; transform: translateY(56px) rotate(1.2deg); } to { opacity: 1; transform: none; } }
@keyframes wc-slide { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
@keyframes wc-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wc-shift { from { transform: translateX(6%); } to { transform: translateX(-22%); } }
@keyframes wc-pop { from { opacity: 0; transform: scale(.6) rotate(-14deg); } to { opacity: 1; transform: rotate(-6deg); } }
@supports (animation-timeline: view()) {
  .wc-reveal { animation: wc-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .wc-slide { animation: wc-slide linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
  .wc-progress { animation: wc-grow linear both; animation-timeline: scroll(root); }
  .wc-bigword { animation: wc-shift linear both; animation-timeline: view(); animation-range: cover; }
  .wc-pop { animation: wc-pop linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
}

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