/* Static-site additions: native dropdowns and the mobile menu (replace the original React widgets) */
select.pick-native {
  display: block; width: 100%; min-height: 49px; padding: 12px 40px 12px 14px; font: inherit; font-size: .92rem; line-height: 1.35;
  color: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line, #e5e5e5); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis;
}
select.pick-native:focus-visible { outline: 2px solid var(--maroon, #7b1827); outline-offset: 1px; }
.sheet-root[hidden] { display: none; }
.sheet-root .mobile-sheet { overflow-y: auto; }
.sheet-close { background: none; border: 0; cursor: pointer; color: inherit; padding: 4px; }
body.sheet-open { overflow: hidden; }
.faq [data-slot="accordion-content"][hidden] { display: none; }
/* Logo: show the full AGC Far East logo (the original styles cropped a padded logo image) */
.brand-frame { aspect-ratio: 1807 / 647; width: 179px; }
.brand-logo { position: static; display: block; width: 100%; height: 100%; top: auto; left: auto; }
.site-footer .brand-frame { width: 187px; }
@media (max-width: 640px) { .brand-frame { width: 161px; } .site-footer .brand-frame { width: 187px; } }

/* ===================== Animations & transitions (theme colours and layout unchanged) ===================== */
@keyframes agc-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes agc-up-sm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes agc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* Page entrance: hero (home) and page intro (inner pages) */
  .hero-copy > *, .page-intro .wrap > * { animation: agc-up .85s cubic-bezier(.22,1,.36,1) both; }
  .hero-copy > :nth-child(2), .page-intro .wrap > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3), .page-intro .wrap > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4), .page-intro .wrap > :nth-child(4) { animation-delay: .3s; }
  .hero-copy > :nth-child(n+5) { animation-delay: .4s; }
  .hero-art { animation: agc-fade 1.4s ease .15s both; }

  /* Scroll reveal (only when the script has switched it on) */
  html.anim .reveal { opacity: 0; transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .25s ease, background .2s ease;
    transition-delay: var(--rd, 0s); }
  html.anim .reveal.in { opacity: 1; transform: none; }

  /* Tabs, finder result, FAQ answers and the enquiry draft */
  [role="tabpanel"].agc-swap, .finder-result.agc-swap { animation: agc-up-sm .45s cubic-bezier(.22,1,.36,1) both; }
  .faq [data-slot="accordion-content"]:not([hidden]) > div { animation: agc-up-sm .35s ease both; }
  .faq [data-slot="accordion-trigger"] svg { transition: transform .25s ease; }
  .draft-result { animation: agc-up-sm .5s cubic-bezier(.22,1,.36,1) both; }

  /* Cards: gentle lift on hover */
  .service-card, .graphic-card, .course-card, .path-card, .related-card, .market-grid > article {
    transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .25s ease, background .2s ease; }
  .service-card:hover, .graphic-card:hover, .course-card:hover, .path-card:hover, .related-card:hover, .market-grid > article:hover,
  html.anim .reveal.in.service-card:hover, html.anim .reveal.in.graphic-card:hover, html.anim .reveal.in.course-card:hover,
  html.anim .reveal.in.path-card:hover, html.anim .reveal.in.related-card:hover, html.anim .market-grid > .reveal.in:hover {
    transform: translateY(-4px); box-shadow: 0 18px 40px rgba(48, 49, 47, .08); }
  .graphic-card .topic-illustration img { transition: transform .9s cubic-bezier(.22,1,.36,1); }
  .graphic-card:hover .topic-illustration img { transform: scale(1.05); }
  .service-icon { transition: transform .35s cubic-bezier(.22,1,.36,1); }
  .service-card:hover .service-icon { transform: translateY(-2px) scale(1.06); }

  /* Buttons and links */
  .button { transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, transform .2s ease; }
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0); }
  .text-link { transition: color .15s ease, text-decoration-thickness .15s ease, text-underline-offset .2s ease; }
  .text-link:hover { text-underline-offset: 8px; }
  .sector-paths a, .also a, .footer-grid a, .mobile-sheet nav a { transition: color .2s ease, background .2s ease, border-color .2s ease, padding .2s ease; }
  .mobile-sheet nav a:hover { padding-left: 6px; color: var(--maroon); }
  [role="tab"] { transition: color .2s ease, background .2s ease, box-shadow .2s ease; }

  /* Navigation underline grows on hover */
  .desktop-nav a { transition: color .2s ease; }
  .desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: 21px; height: 2px; width: 0; background: var(--maroon); transition: width .3s cubic-bezier(.22,1,.36,1); }
  .desktop-nav a:hover::after, .desktop-nav a.active::after { width: 22px; }

  /* Header gains a soft shadow once the page scrolls */
  .site-header { transition: box-shadow .3s ease; }
  .site-header.scrolled { box-shadow: 0 6px 24px rgba(48, 49, 47, .07); }
}
