/* Animated design layer. Everything here is decoration: the page reads fine without it. */

/* Sticky nav: the top bar scrolls away, the menu stays. */
.site-header { position: sticky; top: -38px; z-index: 30; background: var(--ink); }

/* Full-width menu panels with every service and industry */
@media (min-width: 600px) {
  .header-row { position: relative; }
  .header-row .wp-block-navigation,
  .header-row .wp-block-navigation__responsive-container:not(.is-menu-open),
  .header-row .wp-block-navigation__responsive-close,
  .header-row .wp-block-navigation__responsive-dialog,
  .header-row .wp-block-navigation__responsive-container-content,
  .header-row .wp-block-navigation__container,
  .header-row .wp-block-navigation-item.mega { position: static !important; }
  .wp-block-navigation .mega > .wp-block-navigation__submenu-container {
    display: block !important; left: var(--gutter) !important; right: var(--gutter) !important; top: 100% !important;
    width: auto !important; min-width: 0 !important; height: auto !important; padding: 24px 28px !important;
    column-count: 4; column-gap: 28px; column-fill: balance;
  }
  .wp-block-navigation .mega > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 34px; }
  .wp-block-navigation .mega .wp-block-navigation-item { display: block !important; break-inside: avoid; }
  .wp-block-navigation .mega .wp-block-navigation-item a { display: block; padding: 5px 0 !important; font-size: 14px; line-height: 19px; font-weight: 500; white-space: normal; }
  .wp-block-navigation .mega .mega-head { break-after: avoid; padding-top: 16px; }
  .wp-block-navigation .mega .wp-block-navigation-item.mega-head:first-child, .wp-block-navigation .mega .wp-block-navigation-item.mega-col { padding-top: 0; }
  .wp-block-navigation .mega .wp-block-navigation-item.mega-col { -webkit-column-break-before: always; break-before: column; }
  .wp-block-navigation .mega .mega-head a { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
}
.mega-toggle { display: none; }
@media (max-width: 599px) {
  .wp-block-navigation__responsive-container.is-menu-open .mega { position: relative; width: 100%; }
  .wp-block-navigation__responsive-container.is-menu-open .mega > .wp-block-navigation__submenu-container { display: none !important; }
  .wp-block-navigation__responsive-container.is-menu-open .mega.open > .wp-block-navigation__submenu-container { display: flex !important; flex-direction: column; align-items: flex-start; gap: 4px; }
  .wp-block-navigation__responsive-container.is-menu-open .mega-toggle { display: block; position: absolute; right: 0; top: -10px; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font: 700 20px/1 var(--body); }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .mega-head a { color: var(--orange); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .wp-block-navigation__responsive-container.is-menu-open .mega-head { padding-top: 10px; }
}

/* Every service on the homepage */
.all-list { columns: 3 280px; column-gap: 40px; }
.all-list > div { break-inside: avoid; padding-bottom: 28px; }
.all-list .label { margin-bottom: 10px; }
.all-list .label a { color: inherit; text-decoration: none; }
.all-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.all-list li a { display: inline-block; padding: 6px 0; color: var(--white); font-weight: 600; text-decoration: none; }
.all-list li a:hover { color: var(--orange); }

/* Industry links and full list */
.pills li a { color: inherit !important; text-decoration: none; }
.pills li:has(a):hover { background: var(--orange); border-color: var(--orange); }
.jump-bottom { margin-block: 0 40px; }
.service, .ind-card, .svc-group { scroll-margin-top: 100px; }
.service:target h3, .ind-card:target h3 { color: var(--orange-text); }
.ind-card:target h3 { color: var(--orange); }
.service h3 a { color: inherit !important; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.ind-group { margin-bottom: 48px; }
.ind-group:last-child { margin-bottom: 0; }
.ind-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ind-card { background: var(--ink); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: background-color 0.2s ease, color 0.2s ease; }
.ind-card h3 { font-size: 1.25rem; }
.ind-card p { color: var(--muted); transition: color 0.2s ease; }
.ind-card h3 a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
@media (hover: hover) {
  .ind-card:hover { background: var(--orange); color: var(--ink); }
  .ind-card:hover p { color: var(--ink); }
  .ind-card:hover h3 a { text-decoration-color: var(--ink); }
}

/* Photos: always full colour, shown whole, never cropped. */
.wam-photo, .what-card .wam-photo, .industry-card .wam-photo, .work-card .wam-photo, .founder-photo .wam-photo, .plan-copy .wam-photo, .page-hero-photo { aspect-ratio: auto; max-height: none; background: none; height: auto; }
.wam-photo img, .wam-photo:hover img, .what-card .wam-photo img, .what-card:hover .wam-photo img { display: block; width: 100%; height: auto; object-fit: contain; filter: none; transform: none; }
.wam-logo { background: var(--white); }
.wam-logo img { object-fit: contain; filter: none; opacity: 1; }
.page-hero-photo img { object-position: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 55ms); }
.wam-logo.reveal { transform: scale(0.8) rotate(-4deg); }
.wam-logo.reveal.in { transform: none; }
.pills li.reveal { transform: translateY(14px) scale(0.92); }
.pills li.reveal.in { transform: none; }

/* Headline: words rise behind a mask */
h1.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
h1.split .word > span { display: inline-block; animation: rise 0.8s cubic-bezier(.2,.8,.2,1) both; }
h1.split em { display: inline-block; padding-right: 0.08em; }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }

/* Scroll bar and cursor dot */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; z-index: 100000; pointer-events: none; }
.admin-bar .scroll-bar { top: 32px; }
.cursor-dot { position: fixed; left: -7px; top: -7px; width: 14px; height: 14px; z-index: 100001; pointer-events: none; opacity: 0; }
.cursor-dot::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--orange); transition: transform 0.2s ease, opacity 0.2s ease; }
.cursor-dot.on { opacity: 1; }
.cursor-dot.big::before { transform: scale(2.4); opacity: 0.25; }

/* Hero */
.hero-x { position: relative; overflow: hidden; }
.hero-x .wrap { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero-x h1 { max-width: 1180px; position: relative; z-index: 2; }
.hero-x h1 em { color: var(--orange); }
.hero-x-grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-x-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.hero-x .stats { max-width: 420px; }

/* Phone: the feed scrolls, then stops dead on your reel */
.stage { position: relative; height: 580px; display: flex; justify-content: center; align-items: center; }
.stage-dot { position: absolute; left: 50%; top: 8%; width: clamp(420px, 44vw, 680px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); will-change: transform; }
.phone { position: relative; width: 280px; height: 548px; border: 10px solid var(--ink); outline: 1px solid #3a3a3a; border-radius: 40px; background: #000; overflow: hidden; transform: rotate(-4deg); animation: phone-in 1s cubic-bezier(.2,.9,.3,1.15) 0.3s both; }
@keyframes phone-in { from { transform: translateY(70px) rotate(6deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.phone-feed { position: absolute; inset: 0 0 auto; height: 500%; display: flex; flex-direction: column; animation: feed 8s cubic-bezier(.45,.05,.3,1) infinite; }
.phone-feed > * { flex: 0 0 20%; margin: 0; position: relative; overflow: hidden; }
.phone-feed figure { display: flex; align-items: center; background: #000; }
.phone-feed figure img { display: block; width: 100%; height: auto; }
@keyframes feed {
  0%, 6% { transform: translateY(0); }
  40% { transform: translateY(-82%); }
  45% { transform: translateY(-79%); }
  49%, 94% { transform: translateY(-80%); }
  100% { transform: translateY(-80%); }
}
.stop-card { background: var(--cream); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 26px; }
.stop-card b { font: 800 44px/0.95 var(--headline); letter-spacing: -0.03em; }
.stop-card span { font-size: 14px; line-height: 20px; }
.stop-bubble { width: 86px; height: 86px; animation: pop 8s cubic-bezier(.2,1.5,.4,1) infinite; transform-origin: 20% 90%; }
@keyframes pop { 0%, 44% { transform: scale(0) rotate(-30deg); } 52%, 94% { transform: scale(1) rotate(0); } 100% { transform: scale(0); } }
.reactions i { position: absolute; bottom: -20px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); opacity: 0; animation: react 8s ease-out infinite; }
.reactions i:nth-child(1) { right: 22px; animation-delay: 0.05s; }
.reactions i:nth-child(2) { right: 56px; width: 10px; height: 10px; animation-delay: 0.3s; }
.reactions i:nth-child(3) { right: 34px; width: 22px; height: 22px; animation-delay: 0.55s; }
.reactions i:nth-child(4) { right: 76px; animation-delay: 0.8s; background: var(--yellow); width: 12px; height: 12px; }
.reactions i:nth-child(5) { right: 14px; width: 12px; height: 12px; animation-delay: 1.05s; }
@keyframes react { 0%, 48% { transform: translateY(0); opacity: 0; } 52% { opacity: 1; } 72% { transform: translateY(-280px) translateX(-16px); opacity: 0; } 100% { opacity: 0; } }
.sticker { position: absolute; left: 0; bottom: 56px; max-width: 200px; background: var(--yellow); color: var(--ink); padding: 12px 14px; font: 700 16px/20px var(--headline); transform: rotate(-5deg); animation: wobble 4s ease-in-out infinite; z-index: 2; }
.sticker em { font-family: var(--twist); font-style: italic; font-weight: 400; }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }

/* Crossing bands */
.bands { position: relative; height: clamp(130px, 15vw, 210px); overflow: hidden; background: var(--ink); }
.xband { position: absolute; left: -6%; right: -6%; top: 50%; padding-block: clamp(10px, 1.4vw, 18px); font: 800 clamp(1.25rem, 3vw, 2.25rem)/1.1 var(--headline); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; }
.xband-a { background: var(--cream); color: var(--ink); transform: translateY(-50%) rotate(3deg); }
.xband-b { background: var(--orange); color: var(--ink); transform: translateY(-50%) rotate(-3deg); }
.xband-track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.xband-b .xband-track { animation-direction: reverse; }
.xband-track span { display: flex; align-items: center; }
.xband-track i { display: inline-block; width: 0.5em; height: 0.5em; margin-inline: 0.6em; border-radius: 50%; background: var(--ink); }

/* Results */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.result { background: var(--ink); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 8px; min-height: 250px; position: relative; overflow: hidden; }
.result-xl { grid-column: span 2; background: var(--orange); color: var(--ink); }
.result-tag { font: 600 12px/16px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: auto; }
.result-xl .result-tag { color: var(--ink); }
.result-num { font: 800 clamp(2.75rem, 5.2vw, 4.75rem)/1 var(--headline); letter-spacing: -0.03em; margin-top: 28px; font-variant-numeric: tabular-nums; }
.result-xl .result-num { font-size: clamp(3.5rem, 10vw, 9rem); }
.result-what { font-size: 16px; line-height: 22px; color: #e6e6e6; }
.result-xl .result-what { color: var(--ink); font-weight: 600; font-size: 18px; }
.result-trend { align-self: flex-start; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--charcoal); color: var(--yellow); font-weight: 600; font-size: 14px; line-height: 20px; }
.result-xl .result-trend { background: var(--ink); color: var(--white); }
.results-note { margin-top: 16px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* Service rows */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 20px; align-items: center; padding: clamp(22px, 3vw, 34px) 16px; border-bottom: 1px solid var(--line); transition: background-color 0.2s ease, color 0.2s ease, padding 0.25s ease; }
.svc-row h3 { font-size: clamp(1.5rem, 3.2vw, 2.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.svc-row h3 a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.svc-row h3 a:hover { text-decoration: none; }
.svc-desc { color: var(--muted); }
.svc-row::after { content: "→"; font: 800 1.75rem/1 var(--headline); color: var(--orange); justify-self: end; transition: transform 0.25s ease; }
.svc-row .wam-photo { display: none; }
@media (hover: hover) and (pointer: fine) {
  .svc-row .wam-photo { display: block; position: absolute; left: 0; top: 0; width: 260px; pointer-events: none; z-index: 2; opacity: 0; transform: translate(calc(var(--x, 50%) - 130px), calc(var(--y, 50%) - 98px)) rotate(-4deg) scale(0.7); transition: opacity 0.2s ease, scale 0.2s ease; }
  .svc-row:hover { background: var(--orange); color: var(--ink); padding-inline: 32px; }
  .svc-row:hover .num, .svc-row:hover .svc-desc, .svc-row:hover::after { color: var(--ink); }
  .svc-row:hover::after { transform: translateX(8px); }
  .svc-row:hover .wam-photo { opacity: 1; transform: translate(calc(var(--x, 50%) - 130px), calc(var(--y, 50%) - 98px)) rotate(-4deg) scale(1); }
}

/* What a ___ strip */
.what-section { overflow: hidden; }
.what-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 18px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-color: var(--ink) transparent; cursor: grab; }
.what-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.what-card { flex: 0 0 min(78vw, 400px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 8px; }
.what-card .wam-photo { margin-bottom: 8px; position: relative; }
.what-card .wam-photo::after { content: ""; position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); transition: transform 0.3s cubic-bezier(.2,1.5,.4,1); }
.what-card:hover .wam-photo::after { transform: scale(2.2); }
.what-card .wam-photo img { user-select: none; }
.what-card h3 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.what-card h3 a { color: var(--ink) !important; }
.what-card h3 em { font-family: var(--twist); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.what-name { font-weight: 600; }
.what-card p:last-child { color: #5c5c5c; }

/* Comparison: the old way gets crossed out */
.compare tbody td:nth-child(2) { position: relative; }
.compare tbody td:nth-child(2)::after { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s cubic-bezier(.2,.7,.2,1) 0.5s; }
.compare.in tbody td:nth-child(2)::after { transform: scaleX(1); }

/* Founder dot bounces in */
.founder.in .founder-photo::after { animation: drop 0.9s cubic-bezier(.3,1.4,.5,1) 0.3s both; }
@keyframes drop { from { transform: translateY(-140px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Process line fills as you scroll */
.steps-line { position: relative; }
.steps-line .step, .steps-line .step:first-child { border-top: 0; padding-top: 24px; }
.steps-line::before, .steps-line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.steps-line::after { background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* The full stop grows until it fills the screen */
.motion .final-cta { clip-path: circle(var(--r, 160%) at 82% 100%); }

/* Footer signature */
.footer-mark { display: block; width: 100%; height: auto; margin-top: 56px; opacity: 0.98; }
.wp-block-details[open] p { animation: open-up 0.35s ease both; }
@keyframes open-up { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wp-block-details summary:hover { color: var(--orange); }
.wp-block-button__link, .wam-submit { will-change: transform; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease-out; }

@media (max-width: 960px) {
  .hero-x-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 520px; }
  .stage-dot { left: 30%; width: 560px; top: 12%; }
  .phone { width: 250px; height: 490px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-xl { grid-column: span 2; }
}
@media (max-width: 720px) {
  .results { grid-template-columns: minmax(0, 1fr); }
  .result-xl { grid-column: auto; }
  .result { min-height: 200px; }
  .svc-row { grid-template-columns: 34px minmax(0, 1fr) 28px; padding-inline: 0; gap: 10px 12px; }
  .svc-row .svc-desc { grid-column: 2 / 4; grid-row: 2; }
  .svc-row::after { grid-column: 3; grid-row: 1; font-size: 1.25rem; }
  .sticker { left: 0; bottom: 30px; max-width: 150px; font-size: 14px; line-height: 18px; }
  .stop-card b { font-size: 38px; }
  .bands { height: 130px; }
  .admin-bar .scroll-bar { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .phone, .sticker, .stop-bubble, .reactions i, .xband-track { animation: none; }
  .phone { transform: rotate(-4deg); }
  .phone-feed { animation: none; transform: translateY(-80%); }
  .compare tbody td:nth-child(2)::after { transition: none; }
  .motion .final-cta { clip-path: none; }
}
