/* Adrenaline Marketers shared site layer. Loaded on every page with /js/am-site.js.
   Section 1: testimonial cards. Section 2: interaction states. Section 3: scroll reveal (hand-built pages only).
   Section 4: contact form state transitions. Nothing here changes copy or layout of Framer sections beyond testimonials. */

/* 1. Testimonials: every card fills its slot, so cards in a row share one height and the gaps stay equal.
   On the tablet/mobile slideshow am-site.js sets --am-card-h to the tallest card so no text is clipped. */
section[data-framer-name="Testimonials"] li > [class*="-container"] > div:first-child {
  height: var(--am-card-h, 100%) !important;
  box-sizing: border-box;
}

/* 2. Interaction states (hand-built pages: html.am-hand is set by am-site.js). */
html.am-hand a,
html.am-hand button,
html.am-hand .btn,
html.am-hand .pk a {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}
html.am-hand .btn:active,
html.am-hand .pk a:active,
html.am-hand .nav li a:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
html.am-hand a:focus-visible,
html.am-hand .btn:focus-visible { outline: 3px solid #305CCC; outline-offset: 3px; }
html.am-hand .pk a:hover { box-shadow: 0 16px 32px -16px rgba(16, 16, 20, 0.25); }
html.am-hand .nav-links a:hover,
html.am-hand footer a:hover { opacity: 0.7; }
/* Framer pages: soft colour change on footer links only, Framer owns its own hover variants. */
.framer-16fspzp a { transition: opacity 0.2s ease-out, color 0.2s ease-out; }

/* Duplicate brand logo cell in the ticker (set once by am-site.js). */
[data-am-dup] { display: none !important; }

/* Granola wordmark is heavier than the other logo PNGs: match their visual weight. */
img[src$="granola-logo.svg"] { width: 88% !important; margin: 0 auto; opacity: 0.82; }

/* 3. Scroll reveal: classes are only added by JS, so content is visible without JS. */
html.am-reveal .am-rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--am-d, 0ms);
}
html.am-reveal .am-rv.am-in { opacity: 1; transform: none; }

/* 4. Contact form state transitions. */
@keyframes am-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes am-fade-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.am-form-wrap { animation: am-fade-rise 0.4s ease-out both; }
.am-err:not(:empty), .am-status:not([hidden]) { animation: am-fade 0.2s ease-out both; }
.am-done { animation: am-fade-rise 0.35s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html.am-hand a, html.am-hand button, html.am-hand .btn, html.am-hand .pk a { transition-property: color, background-color, opacity; }
  html.am-hand .btn:active, html.am-hand .pk a:active, html.am-hand .nav li a:active { transform: none; }
  .am-form-wrap, .am-done { animation-name: am-fade; }
}


/* 5. Contact form (shared by /, /about-us, /contact): card grows with the form, no inner scroll. */

/* Contact form card: grows with its content, no inner scroll, no hairline borders. */
.framer-1wbyzer { grid-template-rows: auto !important; height: auto !important; align-items: start !important; }
.framer-49hemw > *:not(.am-form-wrap):not(noscript) { display: none !important; }
.am-noscript { margin: 0; padding: 32px; color: #fff; font: 16px/1.5 Inter, sans-serif; }
.am-noscript a { color: #fff; text-decoration: underline; }
.framer-49hemw {
  display: block !important; align-self: start !important; height: auto !important; min-height: 0 !important;
  overflow: visible !important; opacity: 1 !important; transform: none !important;
  background: rgba(255,255,255,0.07) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-radius: 20px !important; box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6) !important;
}
.framer-49hemw::after { display: none !important; }
.am-form-wrap:empty { display: none; }
.am-form-wrap { padding: 32px; box-sizing: border-box; font-family: Inter, sans-serif; color: #fff; }
.am-form-wrap [hidden] { display: none !important; }
.am-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.am-note { margin: 0; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.4; }
.am-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.am-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.am-field label { color: rgba(255,255,255,0.92); font-size: 15px; font-weight: 600; line-height: 1.3; }
.am-req { color: #ffb3aa; margin-left: 3px; }
.am-note .am-req { margin-left: 0; }
.am-opt { color: rgba(255,255,255,0.7); font-weight: 400; font-size: 14px; margin-left: 6px; }
.am-field input, .am-field textarea, .am-field select {
  background: rgba(255,255,255,0.1); border: 0; border-radius: 14px; color: #fff;
  font-family: inherit; font-size: 16px; line-height: 1.4; min-height: 52px; padding: 14px 16px;
  width: 100%; box-sizing: border-box; outline: none; transition: background-color 0.2s, box-shadow 0.2s;
}
.am-field input::placeholder, .am-field textarea::placeholder { color: rgba(255,255,255,0.7); opacity: 1; }
.am-field input:hover, .am-field textarea:hover, .am-field select:hover { background-color: rgba(255,255,255,0.14); }
.am-field input:focus, .am-field textarea:focus, .am-field select:focus { background-color: rgba(255,255,255,0.16); }
.am-field input:focus-visible, .am-field textarea:focus-visible, .am-field select:focus-visible,
.am-form button:focus-visible, .am-done a:focus-visible, .am-status a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.am-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5l5.5 5.5 5.5-5.5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.am-field select option { background: #2a2a2a; color: #fff; }
.am-field textarea { resize: vertical; min-height: 132px; }
.am-field.has-error input, .am-field.has-error textarea { background-color: rgba(255,138,128,0.16); }
.am-err { margin: 0; color: #ffb3aa; font-size: 14px; line-height: 1.4; display: flex; gap: 6px; align-items: flex-start; }
.am-err:empty { margin-top: -8px; } /* always rendered for aria-live; collapses (and cancels the flex gap) while empty */
.am-err:empty::before { display: none; }
.am-err::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #ffb3aa; color: #2a2a2a; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.am-status { background: rgba(255,138,128,0.16); border-radius: 14px; padding: 14px 16px; color: #ffe1de; font-size: 15px; line-height: 1.5; }
.am-status a, .am-done a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Submit: the original Light button (translucent white glass, white text, white badge with a blue up-right arrow). */
.am-form button[type="submit"] {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box;
  background: rgba(255,255,255,0.1); border: 0; border-radius: 50px; color: #fff; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: inherit; font-size: 16px; font-weight: 500; min-height: 60px; padding: 10px 10px 10px 26px;
  box-shadow: rgba(13,13,13,0.13) -3px 3px 45px 0, rgba(0,0,0,0.25) -3px 3px 20px -16px;
}
.am-form button[type="submit"]:disabled { opacity: 0.7; cursor: not-allowed; }
.am-btn-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #305CCC; flex: none; }
.am-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(48,92,204,0.25); border-top-color: #305CCC; animation: am-spin 0.8s linear infinite; }
.am-form.is-loading .am-spin { display: block; }
.am-form.is-loading .am-btn-badge svg { display: none; }
@keyframes am-spin { to { transform: rotate(360deg); } }
.am-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-done { text-align: center; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: none; }
.am-done-badge { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #305CCC; display: flex; align-items: center; justify-content: center; }
.am-done h3 { margin: 4px 0 0; font-size: 26px; line-height: 1.2; font-weight: 600; color: #fff; }
.am-done p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,0.88); max-width: 34ch; }
@media (max-width: 809px) {
  .am-form-wrap { padding: 24px 20px; }
  .am-row { grid-template-columns: 1fr; }
  .am-form button[type="submit"] { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .am-field input, .am-field textarea, .am-field select, .am-form button[type="submit"] { transition: none; }
  .am-spin { animation-duration: 2s; }
}

/* 6. Hand-built pages: nav with mobile menu (button is added by am-site.js). */
.am-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(16,16,20,.06); color: #222; cursor: pointer; flex: none; }
.am-menu-btn:hover { background: rgba(16,16,20,.12); }
.am-menu-btn:focus-visible { outline: 3px solid #305CCC; outline-offset: 2px; }
.am-menu-btn .am-m-close { display: none; }
.am-open .am-menu-btn .am-m-open { display: none; }
.am-open .am-menu-btn .am-m-close { display: inline; }
@media (max-width: 860px) {
  html.am-hand .am-has-menu > .am-menu-btn { display: inline-flex; }
  html.am-hand .am-has-menu:not(nav) { position: relative; }
  html.am-hand .am-has-menu > ul,
  html.am-hand .am-has-menu > .nav-links { display: none; }
  html.am-hand .am-has-menu.am-open > ul,
  html.am-hand .am-has-menu.am-open > .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
    padding: 10px; margin: 0; list-style: none; border-radius: 24px;
    background: #fff; box-shadow: 0 20px 40px -12px rgba(16,16,20,.25);
  }
  html.am-hand .am-has-menu a { display: block; white-space: nowrap; padding: 14px 18px; font-size: 16px; text-align: left; }
  html.am-hand .am-has-menu a.launch { display: none; }
}

/* 7. Buttons: the ORIGINAL Framer designs. Framer pages keep their own buttons untouched (Dark: translucent dark glass, #47484C text, dark round
   badge with a white up-right arrow; Light: translucent white glass, white text, white badge with a blue arrow). Only the hand-built pages
   (services, Granola case study), the shared footer and the package-page closing block use the rules below, which copy those two variants. */
html .nav li a.launch, html .nav-links a.launch, html .btn.btn-primary, .am-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; min-height: 60px; padding: 10px 10px 10px 26px;
  border: 0; border-radius: 50px; font: 500 16px/1.3 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: rgba(16,16,20,0.1); color: #47484C;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: rgba(13,13,13,0.13) -3px 3px 45px 0, rgba(0,0,0,0.25) -3px 3px 20px -16px;
}
/* Light variant: on dark panels (hero card, closing block, footer). */
.hero-card .btn.btn-primary, .cta .btn.btn-primary, .cta-card .btn.btn-primary, .am-cta { background: rgba(255,255,255,0.1); color: #fff; }
html .nav li a.launch .arrow, html .nav-links a.launch .arrow, html .btn.btn-primary .arrow, .am-btn-badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #47484C; color: #fff; line-height: 1; flex: none;
}
.hero-card .btn.btn-primary .arrow, .cta .btn.btn-primary .arrow, .cta-card .btn.btn-primary .arrow, .am-cta .am-btn-badge, .am-form button .am-btn-badge { background: #fff; color: #305CCC; }
html .nav li a.launch .arrow svg, html .nav-links a.launch .arrow svg, html .btn.btn-primary .arrow svg, .am-btn-badge svg { transform: rotate(-45deg); }
html .nav li a.launch:focus-visible, html .nav-links a.launch:focus-visible, html .btn.btn-primary:focus-visible, .am-cta:focus-visible { outline: 3px solid #305CCC; outline-offset: 3px; }
.hero-card .btn.btn-primary:focus-visible, .cta .btn.btn-primary:focus-visible, .am-cta:focus-visible { outline-color: #fff; }
/* Secondary links ('See the receipts', 'Read the case study', 'See our services'): plain text links, not extra buttons. */
html .btn.btn-secondary, html .btn.btn-ghost { background: none; border: 0; box-shadow: none; padding: 8px 0; color: #222; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.hero-card .btn.btn-secondary, .cta .btn.btn-secondary, .cta-card .btn.btn-secondary { color: #fff; }
html .btn.btn-secondary .arrow, html .btn.btn-ghost .arrow { background: none; color: currentColor; width: auto; height: auto; }
html .btn.btn-secondary:hover, html .btn.btn-ghost:hover { transform: none; text-decoration-thickness: 2px; }
/* Header button: same size as the Framer original (206 x 60). */
html .nav li a.launch, html .nav-links a.launch { padding: 10px 10px 10px 26px; min-height: 60px; }
/* Closing block (package pages) */
.am-close { display: flex; justify-content: center; padding: 56px 24px; position: relative; z-index: 1; box-sizing: border-box; width: 100%; }
.am-close-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; box-sizing: border-box;
  width: 100%; max-width: 1040px; padding: 40px 48px; border-radius: 28px; background: #101014; color: #fff;
}
.am-close-card h2 { margin: 0; color: #fff; font: 600 clamp(26px, 4vw, 38px)/1.15 Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
@media (max-width: 809px) { .am-close-card { padding: 28px 24px; } .am-cta { align-self: stretch; } }
@media (prefers-reduced-motion: reduce) { html .btn:active { transform: none; } }

/* 8. Header balance: logo left, links centred in the space between logo and CTA, CTA right, equal inner padding. */
header:has([data-framer-name="Nav Links"]) { padding: 8px 16px !important; gap: 0 !important; }
[data-framer-name="Nav Links"] { justify-content: flex-start !important; width: 100% !important; }
[data-framer-name="Nav Links"] > :first-child { margin: 0 auto !important; gap: 4px !important; }
@media (min-width: 861px) {
  html.am-hand .nav { gap: 0; padding: 8px 16px; }
  html.am-hand .nav-inner { gap: 0; padding: 8px 16px; }
  html.am-hand .nav > ul, html.am-hand .nav-links { display: contents; }
  html.am-hand .nav > ul > li + li, html.am-hand .nav-links > a + a { margin-left: 6px; }
  html.am-hand .nav > ul > li:first-child, html.am-hand .nav > ul > li:last-child,
  html.am-hand .nav-links > a:first-child, html.am-hand .nav-links > a.launch { margin-left: auto; }
}

/* 9. Audit fixes (task 14). */
/* 9b. Home, 'Your brand in every feed that matters': the last two cards sit in a centred two-up row that overflows phones.
   Stack them in the same single column as the first three. */
@media (max-width: 809px) {
  .framer-151x17 { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; }
  /* Before Framer hydrates, each card sits inside an .ssr-variant wrapper, so size the card itself too. */
  .framer-151x17 > *, .framer-151x17 > .ssr-variant > * { width: 100% !important; max-width: 100% !important; min-width: 0 !important; flex: none !important; }
}

/* 9c. Contact page: one 'Contact' tag and one 'Get in touch' heading (the hero keeps its tag and H1); card aligned to the page grid. */
html.am-contact .framer-b6bhde { display: none !important; }
@media (min-width: 810px) { html.am-contact .framer-1fsrxyl-container { box-sizing: border-box; padding-inline: 32px; } }

/* 9d. Package pages: soft cards instead of 1px hairline outlines, hero stills at least 240 px tall on phones. */
html.am-pkg [data-border]:is(.framer-4n6bov, .framer-1a5xgq4) {
  background-color: rgba(255, 255, 255, 0.6) !important; border-radius: 28px !important; box-shadow: 0 20px 40px rgba(16, 16, 20, 0.05) !important;
}
html.am-pkg [data-border]:is(.framer-4n6bov, .framer-1a5xgq4)::after { display: none !important; }
@media (max-width: 809px) {
  html.am-pkg [data-framer-name="Hero Images"] { grid-template-rows: none !important; grid-auto-rows: 240px !important; height: auto !important; }
  html.am-pkg [data-framer-name="Hero Images"] > [data-framer-name^="Img"] { height: 240px !important; min-height: 240px !important; }
  html.am-pkg [data-framer-name="Hero Images"] img { object-fit: cover !important; }
}

/* 10. Home FAQ (task 15). Framer already animates the open/close (height, opacity, icon turn) with its own motion, so only the
   scroll-in stagger (classes set by am-site.js), hover polish, the sticky left column and the extra left-column block live here. */
/* Sticky needs every ancestor to avoid overflow:hidden (it turns the ancestor into a scroll container). clip keeps the same clipping. */
:is(div, main):has(section[data-framer-name="FAQs"]) { overflow: clip !important; }
@media (min-width: 1200px) { /* Framer's desktop layout; tablet and phone keep their stacked, non-sticky flow */
  section[data-framer-name="FAQs"] [data-framer-name="Content"][class*="framer-1l4nj2i"] { top: 120px !important; align-self: flex-start; }
}
section[data-framer-name="FAQs"] [data-framer-name="FAQs"] > div > div { transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; will-change: auto; }
@media (hover: hover) {
  section[data-framer-name="FAQs"] [data-framer-name="FAQs"] > div > div:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(16,16,20,0.22), -3px 3px 45px 0 rgba(13,13,13,0.10) !important; }
}
html.am-fq-js .am-fq { opacity: 0 !important; transform: none !important; } /* Framer sets inline opacity on these wrappers */
html.am-fq-js .am-fq.am-fq-in { opacity: 1 !important; transform: none !important; transition: opacity 0.4s ease-out var(--am-d, 0ms), transform 0.4s ease-out var(--am-d, 0ms); }

/* Left column block: email line, what we do, proof card. Soft fills only. */
.am-faq-extra { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 407px; box-sizing: border-box; font-family: Inter, system-ui, sans-serif; color: #3d3d47; }
.am-faq-extra p, .am-faq-extra ul { margin: 0; }
.am-faq-mail { font-size: 16px; line-height: 1.5; }
.am-faq-mail a { color: #222; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(34,34,34,0.35); text-underline-offset: 3px; transition: text-decoration-color 0.2s ease-out; }
.am-faq-mail a:hover { text-decoration-color: #222; }
.am-faq-k { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(61,61,71,0.75); }
.am-faq-do { display: flex; flex-direction: column; gap: 10px; }
.am-faq-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.am-faq-chips li { padding: 8px 14px; border-radius: 999px; background: rgba(16,16,20,0.06); color: #222; font-size: 14px; font-weight: 500; line-height: 1.2; }
.am-faq-proof { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,0.72); box-shadow: 0 14px 32px -18px rgba(16,16,20,0.28); color: #222; text-decoration: none; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.am-faq-proof .am-faq-k { grid-column: 1 / -1; }
.am-faq-proof strong { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.am-faq-proof span:not(.am-faq-k):not(.am-faq-go) { grid-column: 1; font-size: 15px; line-height: 1.4; color: #3d3d47; }
.am-faq-go { grid-column: 2; grid-row: 2 / 4; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(16,16,20,0.06); font-size: 16px; transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.am-faq-proof:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(16,16,20,0.34); }
.am-faq-proof:hover .am-faq-go { background: #222; color: #fff; }
.am-faq-proof:focus-visible, .am-faq-mail a:focus-visible { outline: 3px solid #305CCC; outline-offset: 3px; }
.am-faq-extra.am-rv-pre { opacity: 0; transform: none; }
.am-faq-extra.am-rv-in { opacity: 1; transform: none; transition: opacity 0.45s ease-out 0.1s, transform 0.45s ease-out 0.1s; }
@media (max-width: 1199px) { .am-faq-extra { max-width: none; } }
@media (prefers-reduced-motion: reduce) {
  html.am-fq-js .am-fq, html.am-fq-js .am-fq.am-fq-in, .am-faq-extra.am-rv-pre, .am-faq-extra.am-rv-in { opacity: 1; transform: none; transition: none; }
  section[data-framer-name="FAQs"] [data-framer-name="FAQs"] > div > div { transition: box-shadow 0.2s ease-out; }
  section[data-framer-name="FAQs"] [data-framer-name="FAQs"] > div > div:hover, .am-faq-proof:hover { transform: none !important; }
}

/* 11. Header elevation: never camouflages over content. am-site.js toggles html.am-scrolled past 8 px of scroll. */
header[class*="framer-"]:not([data-framer-name="Hero section"]), html.am-hand .nav:not(:has(.nav-inner)), html.am-hand .nav-inner {
  box-shadow: 0 4px 16px rgba(16,16,20,0.07);
  transition: box-shadow 0.2s ease-out, background-color 0.2s ease-out;
}
html.am-scrolled header[class*="framer-"]:not([data-framer-name="Hero section"]), html.am-scrolled.am-hand .nav:not(:has(.nav-inner)), html.am-scrolled.am-hand .nav-inner {
  box-shadow: 0 8px 24px rgba(16,16,20,0.12) !important;
}
html.am-scrolled header[class*="framer-"]:not([data-framer-name="Phone"]):not([data-framer-name="Hero section"]) { background-color: rgba(255,255,255,0.88) !important; }
html.am-scrolled.am-hand .nav:not(:has(.nav-inner)), html.am-scrolled.am-hand .nav-inner { background-color: rgba(255,255,255,0.9) !important; }
@media (prefers-reduced-motion: reduce) {
  header[class*="framer-"]:not([data-framer-name="Hero section"]), html.am-hand .nav, html.am-hand .nav-inner { transition: none; }
}

/* 12. Task 16 polish. One content grid on every page: 1296 px wide (72 px side space at 1440), 40 px minimum side space on desktop, 20 px on phones.
   Section rhythm: 96 px between sections on desktop, 64 px on phones. */
:root { --am-edge: 40px; --am-gap: 96px; }
@media (max-width: 809px) { :root { --am-edge: 20px; --am-gap: 64px; } }

/* 12a. Case tags keep their soft blue fill without the lime outline. The services carousel cards keep their original thin-border look (no override). */
.framer-jcy44s[data-border]::after, .framer-goo9ir[data-border]::after { display: none !important; }

/* 12c. Framer mobile header: 12 px side margin, so the bar never touches the screen edges. */
@media (max-width: 809px) {
  [class*="-container"]:has(> header[class*="framer-"]) { width: calc(100% - 24px) !important; max-width: none !important; }
  /* Open menu: no lime underline bars under the links, pill lines up with the link text (links keep 16 px inner space). */
  header nav .framer-18durbq { display: none !important; }
}

/* 12d. One content grid. Section containers on Framer pages: 1296 px wide, centred, at least --am-edge from each screen edge. */
:root { --am-pad: max(var(--am-edge), calc((100% - 1296px) / 2)); }
section:not([data-framer-name="Our Work"]):not([data-framer-name="Services"]) > [data-framer-name="Container"],
header[data-framer-name="Hero section"] > [data-framer-name="Container"],
[data-framer-name="Intro"] > [data-framer-name="Container"] {
  box-sizing: border-box !important; width: min(100% - 2 * var(--am-edge), 1296px) !important; max-width: min(100% - 2 * var(--am-edge), 1296px) !important;
  margin-inline: auto !important; padding-inline: 0 !important;
}
[data-framer-name="More Features"] { box-sizing: border-box !important; padding-inline: var(--am-pad) !important; }
section[data-framer-name="Section - About"] { box-sizing: border-box !important; width: min(100% - 2 * var(--am-edge), 1296px) !important; margin-inline: auto !important; }
[data-framer-name="Footer Wrapper"] [data-framer-name="Container"] { padding-inline: 32px !important; }
@media (max-width: 809px) { [data-framer-name="Footer Wrapper"] [data-framer-name="Container"] { padding-inline: 10px !important; } }

/* 12e. Package pages (first-flight, trailblazer, summit-seeker). */
/* Closing block: card width matches the cards above (1296 px), 96 px above and below (64 px on phones). */
.am-close { padding: calc(var(--am-gap) / 2) var(--am-edge) 20px; }
.am-close-card { max-width: 1296px; }
/* Page title outranks the section headings (58 px). */
@media (min-width: 810px) { html.am-pkg header[data-framer-name="Hero section"] h1 { font-size: 72px !important; line-height: 1.1 !important; } }
/* 'How it works': soft rows instead of thin divider lines (same look as the home FAQ). */
html.am-pkg section[data-framer-name="Accordion Section"] [data-framer-name="Divider"] { display: none !important; }
html.am-pkg section[data-framer-name="Accordion Section"] [data-framer-name="Step-1"] { gap: 12px !important; }
html.am-pkg section[data-framer-name="Accordion Section"] [class*="-container"] > [data-framer-name="Open"],
html.am-pkg section[data-framer-name="Accordion Section"] [class*="-container"] > [data-framer-name="Close"] {
  box-sizing: border-box; padding: 20px 24px !important; border-radius: 20px; background-color: rgba(255, 255, 255, 0.6); box-shadow: 0 20px 40px rgba(16, 16, 20, 0.05);
}
/* 'What do you get?': readable card text; heading stays in view on desktop (clip, not hidden, so sticky still works). */
html.am-pkg .framer-w7jhS p { font-size: 16px !important; line-height: 1.5 !important; }
@media (min-width: 1200px) {
  html.am-pkg :is(div, main, section):has([data-framer-name="Service Stack"] [data-framer-name="Heading Block"]),
  html.am-pkg [data-framer-name="Service Stack"] div:has([data-framer-name="Heading Block"]) { overflow: clip !important; }
  html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] { position: sticky !important; top: 120px !important; align-self: flex-start !important; }
}
html.am-pkg section[data-framer-name="Service Section"]:has([data-framer-name="Service Stack"]) { box-sizing: border-box !important; width: 100% !important; max-width: none !important; padding-inline: var(--am-pad) !important; }
html.am-pkg [data-framer-name="Service Stack"] { width: 100% !important; }
@media (min-width: 1200px) {
  html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] { flex: none; }
  html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] + div { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
}
@media (max-width: 809px) { html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] { width: 100% !important; } html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] { align-items: flex-start !important; } html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Title"] { align-self: flex-start !important; width: 100% !important; } html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] h1 { text-align: left !important; } }

/* 12f. Hand-built pages (services, case studies): same content grid and section rhythm as the Framer pages. */
html.am-hand .wrap { max-width: calc(1296px + 2 * var(--am-edge)); padding-inline: var(--am-edge); }
html.am-hand section:not(.cta) { padding-block: calc(var(--am-gap) / 2); }
html.am-hand .cta { margin-block: calc(var(--am-gap) / 2) 32px; }
html.am-hand footer { padding-top: calc(var(--am-gap) / 2); }
html.am-hand .hero { padding-bottom: calc(var(--am-gap) / 2); }
html.am-hand footer .row, html.am-hand footer .wrap { max-width: calc(1296px + 2 * var(--am-edge)); }

/* 12g. One header on every page: the Framer bar (900 x 76 at 20 px from the top, 60 px pill, 130 px logo, 4 px between links; phones 56 px bar, 12 px side margin). */
html.am-hand .nav:not(:has(.nav-inner)), html.am-hand .nav-inner { box-sizing: border-box; height: 76px; padding: 8px 16px; border-radius: 100px; align-items: center; }
html.am-hand .nav { position: sticky; top: 20px; margin: 20px auto 0; width: min(900px, calc(100% - 24px)); max-width: 900px; }
html.am-hand .nav:has(.nav-inner) { padding: 0; height: auto; background: none; box-shadow: none; }
html.am-hand .nav img { width: 130px; height: 60px; object-fit: contain; object-position: left center; }
html.am-hand .nav li a, html.am-hand .nav-links a { padding: 12px 16px; font-size: 16px; line-height: 25px; }
@media (min-width: 861px) {
  html.am-hand .nav > ul > li + li, html.am-hand .nav-links > a + a { margin-left: 4px; }
  html.am-hand .nav li a.launch, html.am-hand .nav-links a.launch { box-sizing: border-box; height: 60px; min-height: 60px; padding: 10px 10px 10px 26px; justify-content: space-between; }
}
@media (max-width: 860px) {
  html.am-hand .nav { top: 12px; margin-top: 12px; width: calc(100% - 24px); }
  html.am-hand .nav:not(:has(.nav-inner)), html.am-hand .nav-inner { height: 56px; padding: 6px 7px 6px 16px; }
  html.am-hand .nav img { width: 152px; height: 44px; }
}

/* 12h. Vertical rhythm: 96 px between sections on desktop, 64 px on phones. Home sections sit in one flex stack (its gap); every other Framer page
   gives each section half of that as top and bottom space. */
[data-framer-name="Main"] { gap: var(--am-gap) !important; }
:not([data-framer-name="Main"]) > section[data-framer-name]:not([data-framer-name="Section - About"]):not([data-framer-name="Section - Brands"]):not([data-framer-name="Our Work"]) { padding-block: calc(var(--am-gap) / 2) !important; }
header[data-framer-name="Hero section"] { padding-bottom: calc(var(--am-gap) / 2) !important; }

/* 13. Round 4 fixes. */
/* 13a. First Flight headline: wider box (1000 px), 72 px kept; JS keeps "e-commerce" on one line (span.am-nw). */
@media (min-width: 810px) { html.am-pkg header[data-framer-name="Hero section"] [data-framer-name="Text wrapper"] { max-width: 1000px !important; width: 100% !important; } html.am-pkg header[data-framer-name="Hero section"] [data-framer-name="Heading wrapper"] { width: 100% !important; } }
.am-nw { white-space: nowrap; }
/* 13b. What do you get?: card titles 18 px / 600, an odd last card spans both columns. */
html.am-pkg .framer-w7jhS strong { font-size: 18px !important; line-height: 1.3 !important; font-weight: 600 !important; }
@media (min-width: 810px) { html.am-pkg [data-framer-name="Service Stack"] [data-framer-name="Heading Block"] + div > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; } }
/* 13c. Dark panels on the same grid as the home "Not another agency" panel: 1296 px at 1440 (72 px side space), 20 px on phones. */
[data-framer-name="Footer Wrapper"] [class*="framer-1etdyyv"] { box-sizing: border-box !important; width: min(100% - 2 * var(--am-edge), 1296px) !important; max-width: none !important; margin-inline: auto !important; }
[data-framer-name="Footer Wrapper"] [data-framer-name="Container"] { padding-inline: 40px !important; }
@media (max-width: 809px) { [data-framer-name="Footer Wrapper"] [data-framer-name="Container"] { padding-inline: 30px !important; } }
[class*="-container"]:has(> [data-framer-name="Desktop"], > [data-framer-name="Mobile"]):has(.framer-1wbyzer) { box-sizing: border-box !important; width: min(100% - 2 * var(--am-edge), 1296px) !important; max-width: none !important; margin-inline: auto !important; padding-inline: 0 !important; }
/* 13d. Phone bar on services and case studies: the dark Framer style (rgb 33), white logo and icon. */
@media (max-width: 860px) {
  html.am-hand .nav:not(:has(.nav-inner)), html.am-hand .nav-inner, html.am-scrolled.am-hand .nav:not(:has(.nav-inner)), html.am-scrolled.am-hand .nav-inner { background-color: rgb(33, 33, 33) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.am-hand .nav img { content: url(/images/am-logo-white.png); }
  html.am-hand .am-menu-btn { background: rgba(255, 255, 255, 0.14); color: #fff; }
  html.am-hand .am-menu-btn:hover { background: rgba(255, 255, 255, 0.24); }
}

/* 14. One footer on every page (Task 17): dark panel on the same 1296 px grid as the dark panel above it, 20 px gap, compact two-zone layout. */
html.am-foot-on [data-framer-name="Footer Wrapper"] { display: none !important; }
html footer.am-foot { box-sizing: border-box; width: min(100% - 2 * var(--am-edge), 1296px); max-width: none; margin: 20px auto 40px; padding: 0; color: #fff; font: 400 15px/1.5 Inter, system-ui, sans-serif; position: relative; z-index: 1; }
.cta + footer.am-foot, .am-close + footer.am-foot { margin-top: 0; }
html.am-hand .cta { margin-bottom: 20px; }
html.am-hand section:has(.cta-card) { padding-bottom: 20px; }
.am-foot-card { background: #101014; border-radius: 36px; padding: 48px 48px 28px; display: flex; flex-direction: column; gap: 32px; }
.am-foot-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 56px; flex-wrap: wrap; }
.am-foot-brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.am-foot-brand img { display: block; width: 126px; height: auto; margin: 0 0 10px; }
.am-foot-brand p { margin: 0; color: #fff; font-weight: 500; }
.am-foot-brand a { color: rgba(255,255,255,0.78); }
.am-foot-side { display: flex; align-items: flex-start; gap: 56px; flex-wrap: wrap; }
.am-foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 48px; }
.am-foot a { text-decoration: none; transition: opacity 0.2s ease-out; }
.am-foot ul a { color: #fff; font-weight: 500; }
.am-foot a:not(.am-cta):hover { opacity: 0.7; }
.am-foot a:not(.am-cta):focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.am-foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 20px; margin: 0 -20px; background: rgba(255,255,255,0.05); border-radius: 20px; font-size: 14px; color: rgba(255,255,255,0.7); }
.am-foot-bottom p { margin: 0; }
.am-foot-bottom a { color: rgba(255,255,255,0.78); }
@media (max-width: 809px) {
  html footer.am-foot { margin: 32px auto 32px; }
  .am-foot-card { padding: 32px 24px 20px; border-radius: 28px; gap: 28px; }
  .am-foot-main, .am-foot-side { flex-direction: column; align-items: flex-start; gap: 28px; width: 100%; }
  .am-foot ul { gap: 10px 40px; }
  .am-foot-side .am-cta { align-self: stretch; justify-content: space-between; }
  .am-foot-bottom { margin: 0 -8px; padding: 14px 16px; flex-direction: column; align-items: flex-start; }
}

/* 15. Loading screen (Philip 26 Nov): brand screen while Framer builds the page, so visitors never see layout jumps.
   Only when JS runs; am-site.js adds html.am-ready on load. A 4 s CSS fallback hides it even if the script fails. */
@media (scripting: enabled) {
  html::before, html::after { content: ""; position: fixed; z-index: 2147483646; pointer-events: none; transition: opacity 0.35s ease-out, visibility 0s linear 0.35s; animation: am-loader-out 0.35s ease-out 4s forwards; }
  html::before { inset: 0; background: #F2F2F2 url(/images/am-logo-black.png) center calc(50% - 28px) / 160px auto no-repeat; }
  html::after { left: calc(50% - 14px); top: calc(50% + 28px); width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(34,34,34,0.12); border-top-color: #C8FD22; box-sizing: border-box; animation: am-spin 0.8s linear infinite, am-loader-out 0.35s ease-out 4s forwards; }
  html.am-ready::before, html.am-ready::after { opacity: 0; visibility: hidden; }
}
@keyframes am-loader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html::after { animation: am-loader-out 0.01s linear 4s forwards; } }

/* 16. No slide-ups (Philip 26 Nov). Framer's entrance animations move blocks up 16 to 40 px as they appear, which reads as the
   buttons swiping upward. Keep only the soft fade: any inline vertical slide is cancelled (centring offsets like -50% are left alone),
   the hand-built scroll-reveal is fade-only. */
/* The home "Get inspired by our work" section keeps Framer's original motion (sticky stacking, 0.9 scale, header fade-in). */
[data-framer-appear-id]:not([data-framer-name="Our Work"] *), [style*="translateY("]:not([style*="-50%"]):not([data-framer-name="Our Work"] *) { transform: none !important; }
html.am-reveal .am-rv { transform: none !important; }
.am-form-wrap, .am-done { animation-name: am-fade !important; }

/* 17. Home "Get inspired by our work": the stack (sizes, gaps, sticky stacking, scale, timing) is the untouched original. Only the Granola card
   image differs: the 16:9 artwork is shown whole (contain, on its own green) inside the original 4:5 frame instead of being cropped. */
/* In the original page Framer's sticky cards never pin (an ancestor's overflow stops it, so they scroll normally). The overflow rule in 11 lets sticky work
   for the FAQ column, which would pin these cards too; they stay in normal flow so the section scrolls exactly like the original. */
[data-framer-name="Case studies"] > div { position: relative !important; }
[data-framer-name="Case studies"] img[src$="granola-hero.png"] { object-fit: contain !important; }
[data-framer-name="Case studies"] [data-framer-background-image-wrapper]:has(> img[src$="granola-hero.png"]) { background: #B2C248; }

/* 18. Home services carousel: the original bordered cards, snap scrolling, peeking neighbours and arrows are kept as they are. Only enhancement:
   am-site.js fades and slides the cards in one after another when the section scrolls into view. */
/* Equal card size: the original phone and tablet cards grew with their text (400 to 436 px); every card now takes the tallest height and the image sits at the same place. */
section[data-framer-name="Services"] ul[class*="carousel"] { align-items: stretch !important; }
section[data-framer-name="Services"] ul[class*="carousel"] > li { display: flex; }
section[data-framer-name="Services"] ul[class*="carousel"] > li > div { display: flex; height: auto !important; }
section[data-framer-name="Services"] ul[class*="carousel"] > li > div > div { height: auto !important; flex: 1 1 auto; }
section[data-framer-name="Services"] ul[class*="carousel"] > li > div > div > div:first-child { flex: 1 1 auto; }
section[data-framer-name="Services"] ul[class*="carousel"] > li > div > div > div:last-child { flex: none; }
html.am-car-js [data-am-car] { opacity: 0; transform: translateX(32px); }
html.am-car-js [data-am-car].am-car-in { opacity: 1; transform: none; transition: opacity 0.6s cubic-bezier(0.12, 0.23, 0.5, 1) var(--am-d, 0ms), transform 0.6s cubic-bezier(0.12, 0.23, 0.5, 1) var(--am-d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html.am-car-js [data-am-car] { transform: none; }
  html.am-car-js [data-am-car].am-car-in { transition: opacity 0.4s ease-out var(--am-d, 0ms); }
}
