/* AMAE v2.0 – cinematic layer: hero depth, gold frame, experience rail, 3D cards, refined interactions */
html body .amae-hero.amae-hero--layered { background-image: none !important; overflow: hidden; overflow: clip; }
.amae-hero__bg { position: absolute; inset: -8% 0 -8% 0; z-index: -2; background-size: cover; background-position: center; transform-origin: 50% 40%; will-change: transform; }
.amae-hero__frame { position: absolute; inset: 22px; border: 1px solid rgba(201,162,39,.28); pointer-events: none; z-index: 0; }
.amae-hero__frame::before, .amae-hero__frame::after { content: ""; position: absolute; width: 46px; height: 46px; border-color: #C9A227; border-style: solid; }
.amae-hero__frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.amae-hero__frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.amae-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(14,12,10,.62) 0%, rgba(14,12,10,.25) 55%, transparent 80%), radial-gradient(ellipse at 70% 20%, rgba(224,198,117,.12), transparent 55%); }
.amae-hero .amae-eyebrow .elementor-heading-title { color: #E0C675 !important; text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.amae-hero__title .elementor-heading-title, .amae-hero__lead p { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
@media (max-width: 767px) { .amae-hero::after { background: linear-gradient(180deg, rgba(14,12,10,.35), rgba(14,12,10,.5)); } }
.amae-hero .elementor-widget, .amae-hero .amae-hero__ctas { position: relative; z-index: 1; }

/* word masks for text reveals */
.amae-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.amae-w__i { display: inline-block; will-change: transform; }

/* avoid a flash of final state before the hero timeline starts */
html.amae-js:not(.amae-ready) .amae-hero .amae-hero__lead,
html.amae-js:not(.amae-ready) .amae-hero .amae-hero__ctas,
html.amae-js:not(.amae-ready) .amae-hero .amae-hero__rail,
html.amae-js:not(.amae-ready) .amae-hero .amae-eyebrow { opacity: 0; }

/* experience rail: the three experiences, visible in the hero */
.amae-hero__rail { margin-top: 34px !important; }
.amae-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid rgba(201,162,39,.35); }
.amae-rail a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 4px 0; color: #F3ECE1 !important; text-decoration: none; position: relative; transition: color .3s; }
.amae-rail a + a { padding-left: 18px; border-left: 1px solid rgba(243,236,225,.12); }
.amae-rail a::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: #E0C675; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.amae-rail a + a::before { left: 18px; }
.amae-rail a:hover::before, .amae-rail a:focus-visible::before { width: 56px; }
.amae-rail span { font: 500 21px/1.2 "Cormorant Garamond", Georgia, serif; }
.amae-rail b { font: 600 11px/1.4 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #C9A227; }
.amae-rail a:hover span { color: #E0C675; }
@media (max-width: 600px) {
  .amae-rail { grid-template-columns: 1fr; }
  .amae-rail a, .amae-rail a + a { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; border-left: 0; border-bottom: 1px solid rgba(243,236,225,.1); }
  .amae-rail a + a::before { left: 0; }
  .amae-hero__frame { inset: 12px; }
}

/* 3D experience cards */
.amae-cards { perspective: 1200px; }
.amae-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .5s !important; position: relative; }
.amae-card:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) !important; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(201,162,39,.35); }
.amae-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(224,198,117,.14), transparent 45%); }
.amae-card:hover::after { opacity: 1; }
.amae-card .amae-card__img { overflow: hidden; }
.amae-card .amae-card__img img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1) !important; }
.amae-card:hover .amae-card__img img { transform: scale(1.06); }
.amae-card__facts p:empty, .amae-card__facts:has(p:empty) { display: none !important; }
body .amae-card .amae-card__facts p { margin: 6px 0 0 !important; font: 500 13px/1.5 Inter, sans-serif !important; color: #E0C675 !important; letter-spacing: .02em; }
.amae-card__facts p::before { content: ""; display: inline-block; width: 18px; height: 1px; background: #C9A227; vertical-align: middle; margin-right: 10px; }

/* image reveal wrappers */
.amae-reveal { overflow: hidden; }
.amae-reveal img { transform-origin: 50% 60%; }

/* refined buttons: gold sheen on hover, clear focus ring */
.amae-btn .elementor-button { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s, color .3s, box-shadow .35s !important; }
.amae-btn .elementor-button::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); transition: left .8s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.amae-btn .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(201,162,39,.55); }
.amae-btn .elementor-button:hover::after { left: 140%; }
a:focus-visible, .elementor-button:focus-visible, summary:focus-visible { outline: 2px solid #E0C675 !important; outline-offset: 3px; }

/* button and rail text colours win over the generic content-link colour */
body.amae-dark .entry-content .amae-btn .elementor-button { color: #17120a !important; }
body.amae-dark .entry-content .amae-btn--wa .elementor-button { color: #06210f !important; }
body.amae-dark .entry-content .amae-btn--ghost .elementor-button, body.amae-dark .entry-content .amae-btn--wa.amae-btn--ghost .elementor-button { color: #F3ECE1 !important; }
body.amae-dark .entry-content .amae-btn--ghost .elementor-button:hover { color: #E0C675 !important; }
body.amae-dark .entry-content .amae-rail a { color: #F3ECE1 !important; }

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