/* AminH System Scenes — story (pinned scroll scenes) + service cards */
.amh-sys { --sys-bg: #0D1117; --sys-text: #fff; --sys-shade: .55; --sys-radius: 12px; --sys-w: 1200px; --vh: 100svh;
	position: relative; color: var(--sys-text); background: var(--sys-bg); direction: ltr; }
.amh-sys-track { position: relative; height: calc(var(--vh) + var(--n) * var(--per) * var(--vh) / 100); }
.amh-sys-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; isolation: isolate; }
.amh-sys-bg { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; transform: scale(var(--z, 1.06)); transform-origin: 50% 55%; }
.amh-sys-bg[data-i="0"] { opacity: 1; }
.amh-sys-bg picture, .amh-sys-bg img { display: block; width: 100%; height: 100%; }
.amh-sys-bg img { object-fit: cover; object-position: 50% 50%; max-width: none; filter: brightness(var(--lit, 1)); }
.amh-sys-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.amh-sys-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background: linear-gradient(90deg, rgba(5,7,10,calc(var(--sys-shade) + .2)) 0%, rgba(5,7,10,var(--sys-shade)) 35%, rgba(5,7,10,0) 70%),
		linear-gradient(0deg, rgba(5,7,10,.75) 0%, rgba(5,7,10,0) 35%), linear-gradient(180deg, rgba(5,7,10,.55) 0%, rgba(5,7,10,0) 22%); }

/* cinematic intro: the scene opens through a growing ring of light */
.amh-sys-iris { position: absolute; inset: -2px; z-index: 4; pointer-events: none; --r: 9vmax;
	background: radial-gradient(circle at 50% 52%, transparent 0, transparent var(--r), rgba(255,170,90,.55) calc(var(--r) + 2px), #06080b calc(var(--r) + 3.2vmax)); }
.amh-sys-intro { position: absolute; z-index: 5; left: 0; right: 0; bottom: 9vh; text-align: center; pointer-events: none; }
.amh-sys-intro span { display: block; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.amh-sys-mouse { display: inline-block; margin-top: 22px; width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; position: relative; }
.amh-sys-mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: amhSysWheel 1.6s infinite; }
@keyframes amhSysWheel { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.amh-sys.has-intro .amh-sys-copy[data-i="0"] { opacity: 0; }

/* copy */
.amh-sys-copies { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.amh-sys-copy { position: absolute; left: max(24px, calc((100% - var(--sys-w)) / 2)); bottom: 15vh; width: min(600px, calc(100% - 48px));
	opacity: 0; transform: translateY(calc(var(--y, 0) * 1px)); will-change: opacity, transform; }
.amh-sys-copy[data-i="0"] { opacity: 1; }
.amh-sys-copy.is-on { pointer-events: auto; }
.amh-sys-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--acc); margin-bottom: 18px; }
.amh-sys-kicker::before { content: ""; width: 28px; height: 2px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.amh-sys-title { color: var(--sys-text); margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.025em; }
.amh-sys-text { margin: 0 0 26px; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 520px; }
.amh-sys-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: var(--sys-radius); background: var(--acc); color: #0D1117 !important;
	font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .3s, box-shadow .3s; box-shadow: 0 10px 30px -10px var(--acc); }
.amh-sys-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--acc); }
.amh-sys-btn span { transition: transform .3s; }
.amh-sys-btn:hover span { transform: translateX(4px); }

/* progress rail */
.amh-sys-rail { position: absolute; z-index: 7; right: max(24px, calc((100% - var(--sys-w)) / 2)); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.amh-sys-rail li { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto 2px; column-gap: 10px; row-gap: 8px; width: 150px; opacity: .45; transition: opacity .4s; margin: 0; }
.amh-sys-rail li.is-on { opacity: 1; }
.amh-sys-rail b { font-size: 12px; font-weight: 600; color: var(--acc); }
.amh-sys-rail span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.amh-sys-rail i { grid-column: 1 / 3; height: 2px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.amh-sys-rail i::after { content: ""; position: absolute; inset: 0; background: var(--acc); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); box-shadow: 0 0 10px var(--acc); }

@media (max-width: 1024px) {
	.amh-sys-rail { top: auto; bottom: 26px; transform: none; left: 24px; right: 24px; flex-direction: row; gap: 10px; }
	.amh-sys-rail li { width: auto; flex: 1 1 0; grid-template-columns: 1fr; }
	.amh-sys-rail span { display: none; }
	.amh-sys-copy { bottom: 92px; }
}
@media (max-width: 767px) {
	.amh-sys-bg img { object-position: var(--fx-pos, 50%) 50%; }
	.amh-sys-shade { background: linear-gradient(0deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,calc(var(--sys-shade) + .1)) 45%, rgba(5,7,10,.15) 75%), linear-gradient(180deg, rgba(5,7,10,.6) 0%, rgba(5,7,10,0) 25%); }
	.amh-sys-title { font-size: clamp(30px, 8.6vw, 40px); }
	.amh-sys-text { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
	.amh-sys-kicker { font-size: 11px; margin-bottom: 12px; }
	.amh-sys-btn { padding: 13px 22px; font-size: 14px; }
	.amh-sys-intro { bottom: 16vh; padding: 0 24px; }
}
@media (prefers-reduced-motion: reduce) { .amh-sys-mouse::after { animation: none; } }

/* ---------- service cards ---------- */
.amh-svc { --svc-cols: 4; --svc-gap: 20px; --svc-h: 460px; --svc-radius: 12px; --svc-bg: #121821; --svc-text: #fff;
	display: grid; grid-template-columns: repeat(var(--svc-cols), minmax(0, 1fr)); gap: var(--svc-gap); direction: ltr; }
.amh-svc-card { position: relative; display: flex; min-height: var(--svc-h); border-radius: var(--svc-radius); overflow: hidden; background: var(--svc-bg);
	color: var(--svc-text) !important; text-decoration: none !important; isolation: isolate; border: 1px solid rgba(255,255,255,.08);
	transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s, box-shadow .5s; }
.amh-svc-card:hover { transform: translateY(-6px); border-color: var(--acc); box-shadow: 0 30px 60px -30px var(--acc); }
.amh-svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.amh-svc-card:hover .amh-svc-img { transform: scale(1.12); opacity: .7; }
.amh-svc-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.amh-svc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,9,12,.95) 0%, rgba(7,9,12,.55) 50%, rgba(7,9,12,.2) 100%); }
.amh-svc-body { display: flex; flex-direction: column; width: 100%; padding: 28px; }
.amh-svc-num { font-size: 13px; font-weight: 600; color: var(--acc); letter-spacing: .12em; }
.amh-svc-title { display: block; margin-top: auto; font-size: 25px; font-weight: 700; letter-spacing: .08em; }
.amh-svc-title::after { content: ""; display: block; width: 36px; height: 2px; margin-top: 14px; background: var(--acc); box-shadow: 0 0 12px var(--acc); transition: width .5s; }
.amh-svc-card:hover .amh-svc-title::after { width: 72px; }
.amh-svc-text { margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.75); }
.amh-svc-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.amh-svc-items span { font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); backdrop-filter: blur(4px); }
.amh-svc-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 700; font-size: 14px; color: var(--acc); }
.amh-svc-more i { font-style: normal; transition: transform .3s; }
.amh-svc-card:hover .amh-svc-more i { transform: translateX(5px); }
@media (max-width: 767px) { .amh-svc-body { padding: 22px; } .amh-svc-title { font-size: 22px; } }

/* ===== cinematic journey (aminh_system_journey) ===== */
.amh-jr { --jr-bg: #0D1117; --jr-text: #fff; --jr-orb-text: #0D1117; --jr-shade: .35; --jr-radius: 12px; --vh: 100svh;
	position: relative; color: var(--jr-text); background: var(--jr-bg); direction: ltr; }
.amh-jr-track { position: relative; height: calc(var(--vh) + var(--units, var(--n)) * var(--per) * var(--vh) / 100); }
.amh-jr-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; isolation: isolate; perspective: 900px; }
.amh-jr-scene { position: absolute; inset: 0; visibility: hidden; will-change: transform, mask-image; transform: scale(var(--z, 1.02)); transform-origin: 50% 52%; }
.amh-jr-scene[data-i="0"] { visibility: visible; }
.amh-jr-scene picture, .amh-jr-scene img { display: block; width: 100%; height: 100%; }
.amh-jr-scene img { object-fit: cover; object-position: var(--fx-pos, 50%) 50%; max-width: none; filter: blur(var(--blur, 0)); }
.amh-jr-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.amh-jr-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: blur(var(--blur, 0)); }
.amh-jr.has-3d .amh-jr-scene::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.45) 100%); }
.amh-jr-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
	background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(5,7,10,calc(var(--jr-shade) * .6)) 0%, rgba(5,7,10,calc(var(--jr-shade) + .35)) 100%),
		linear-gradient(180deg, rgba(5,7,10,.5) 0%, rgba(5,7,10,0) 20%); }

/* orb of light: soft edge, glow colour per chapter */
.amh-jr-orb { position: absolute; left: 50%; top: 50%; width: calc(var(--r, 0px) * 2.3); height: calc(var(--r, 0px) * 2.3); z-index: 4; pointer-events: none;
	transform: translate(-50%, -50%); opacity: 0; visibility: hidden;
	background: radial-gradient(circle closest-side at 50% 50%, #fff 0%, var(--glow, #fff) 58%, var(--glow, #fff) 74%, transparent 100%); }
.amh-jr-end { position: absolute; inset: 0; z-index: 5; opacity: 0; visibility: hidden; pointer-events: none;
	background: radial-gradient(circle at 30% 35%, rgba(255,122,26,.22), transparent 45%), radial-gradient(circle at 72% 30%, rgba(92,200,255,.2), transparent 45%),
		radial-gradient(circle at 35% 75%, rgba(25,182,201,.18), transparent 45%), radial-gradient(circle at 70% 72%, rgba(255,210,63,.16), transparent 45%), var(--end-bg, #0D1117); }

/* copy layers */
.amh-jr-copy { position: absolute; inset: 0; z-index: 6; pointer-events: none; transform-style: preserve-3d; }
.amh-jr-big { font-family: var(--wd-title-font, inherit); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--jr-text); margin: 0; }
.amh-jr-open, .amh-jr-head { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	transform: scale(var(--s, 1)); will-change: opacity, transform, filter; }
.amh-jr-open-top, .amh-jr-open-bottom { font-size: clamp(40px, 6.4vw, 104px); text-shadow: 0 10px 50px rgba(0,0,0,.35); }
.amh-jr-open-mid { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 70px); width: min(1200px, 92%); margin: 2vh 0; }
.amh-jr-open-img { width: clamp(140px, 22vw, 340px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); animation: amhJrFloat 6s ease-in-out infinite; }
.amh-jr-open-gap { display: block; width: clamp(120px, 26vw, 420px); height: clamp(90px, 18vh, 200px); }
@keyframes amhJrFloat { 0%, 100% { transform: translateY(-8px) rotate(-3deg); } 50% { transform: translateY(8px) rotate(2deg); } }
.amh-jr-br { font-family: var(--wd-title-font, inherit); font-weight: 300; font-size: clamp(60px, 9vw, 150px); line-height: 1; opacity: .85; color: var(--jr-text); }
.amh-jr-side { flex: 1; font-size: 12px; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.amh-jr-side:first-child { text-align: right; }
.amh-jr-side:last-child { text-align: left; }
.amh-jr-open-sub { margin: 3vh 0 0; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); }

.amh-jr-ch { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform-style: preserve-3d; }
.amh-jr-kicker { font-size: 13px; letter-spacing: .3em; color: var(--acc); font-weight: 700; margin-bottom: 2vh; text-shadow: 0 0 18px var(--acc); }
.amh-jr-title { display: flex; align-items: center; gap: clamp(10px, 2vw, 34px); font-size: clamp(46px, 9vw, 150px); text-transform: uppercase; text-shadow: 0 12px 60px rgba(0,0,0,.4); }
.amh-jr-title .amh-jr-br { color: var(--acc); text-shadow: 0 0 30px var(--acc); }
.amh-jr-sub { margin: 3vh 0 0; font-size: clamp(16px, 1.6vw, 22px); color: rgba(255,255,255,.9); letter-spacing: .02em; }

.amh-jr-lines { position: absolute; left: 50%; top: 50%; width: min(560px, 74vw); height: min(64vh, 640px); transform: translate(-50%, -50%); opacity: 0; visibility: hidden;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
	font-size: clamp(16px, 1.45vw, 21px); line-height: 1.75; color: var(--jr-orb-text); text-align: center; }
.amh-jr-lines-in { position: absolute; left: 0; right: 0; top: 50%; will-change: transform; }
.amh-jr-ln { display: block; opacity: .1; transition: opacity .25s linear, font-weight .2s; font-weight: 500; }
.amh-jr-ln.is-lit { font-weight: 700; }
.amh-jr-gap { display: block; height: 1.1em; }
.amh-jr-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 24px; border-radius: var(--jr-radius); background: var(--jr-orb-text); color: #fff !important;
	font-weight: 700; font-size: 15px; text-decoration: none; opacity: 0; visibility: hidden; transition: background .3s; }
.amh-jr-btn span { color: var(--acc); }
.amh-jr-ch.is-on .amh-jr-btn { pointer-events: auto; }
.amh-jr-btn:hover { background: color-mix(in srgb, var(--jr-orb-text) 80%, var(--acc)); }

/* flying pictures */
.amh-jr-fly { position: absolute; inset: 0; transform-style: preserve-3d; }
.amh-jr-fly-name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, 1)); opacity: 0; visibility: hidden;
	font-family: var(--wd-title-font, inherit); font-weight: 700; font-size: clamp(44px, 8vw, 130px); letter-spacing: -.02em; color: color-mix(in srgb, var(--acc) 82%, #0D1117); text-transform: uppercase; white-space: nowrap; }
.amh-jr-card { position: absolute; left: 50%; top: 50%; margin: 0; width: clamp(170px, 22vw, 340px); opacity: 0; visibility: hidden; will-change: transform, opacity; }
.amh-jr-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--jr-radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: none; }
.amh-jr-card figcaption { margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--jr-orb-text); text-align: center; }

/* ending frame */
.amh-jr-final { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; visibility: hidden;
	transform: scale(var(--s, 1)); z-index: 7; }
.amh-jr-final-title { font-family: var(--wd-title-font, inherit); font-weight: 700; font-size: clamp(72px, 15vw, 240px); letter-spacing: .02em; line-height: 1;
	background: linear-gradient(90deg, #FF7A1A, #FFD23F 35%, #19B6C9 65%, #5CC8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amh-jr-final.is-accent .amh-jr-final-title { background: linear-gradient(90deg, #fff 0%, var(--acc) 70%); -webkit-background-clip: text; background-clip: text; }
.amh-jr-final-logo { width: min(520px, 70vw); height: auto; }
.amh-jr-final-sub { margin-top: 2.4vh; font-size: clamp(13px, 1.3vw, 18px); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* rail + cue + burst */
.amh-jr-rail { position: absolute; z-index: 8; left: max(20px, 2.6vw); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.amh-jr-rail li { position: relative; padding-left: 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); transition: color .4s; }
.amh-jr-rail li b { display: block; font-weight: 700; }
.amh-jr-rail li span { display: block; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s; }
.amh-jr-rail li i { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.18); }
.amh-jr-rail li i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--f, 0) * 100%); background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.amh-jr-rail li.is-on { color: #fff; }
.amh-jr-rail li.is-on span { max-width: 160px; }
.amh-jr.is-light .amh-jr-rail li { color: rgba(13,17,23,.45); }
.amh-jr.is-light .amh-jr-rail li.is-on { color: #0D1117; }
.amh-jr-cue { position: absolute; z-index: 8; right: max(20px, 2.6vw); bottom: 5vh; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; }
.amh-jr-cue::after { content: ""; position: absolute; left: 50%; top: 13px; width: 8px; height: 8px; margin-left: -4px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); animation: amhJrCue 1.8s infinite; }
@keyframes amhJrCue { 0% { opacity: 0; transform: translateY(-4px) rotate(45deg); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px) rotate(45deg); } }
.amh-jr-burst { position: absolute; inset: -20%; z-index: 9; pointer-events: none;
	background: radial-gradient(circle at 50% 50%, #fff 0, rgba(255,244,230,.95) 12%, rgba(255,180,110,.5) 30%, transparent 60%),
		repeating-conic-gradient(from 10deg at 50% 50%, rgba(255,255,255,.75) 0 6deg, transparent 6deg 30deg);
	filter: blur(18px); animation: amhJrBurst 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes amhJrBurst { 0% { opacity: 1; transform: scale(.5) rotate(0deg); } 45% { opacity: .9; } 100% { opacity: 0; transform: scale(2.2) rotate(40deg); } }
.amh-jr.has-burst .amh-jr-open { animation: amhJrOpenIn 1.6s .7s both; }
@keyframes amhJrOpenIn { from { filter: blur(14px); letter-spacing: .1em; } to { filter: blur(0); } }

@media (max-width: 767px) {
	.amh-jr-open-mid { gap: 10px; }
	.amh-jr-side { display: none; }
	.amh-jr-br { font-size: 64px; }
	.amh-jr-title { font-size: clamp(34px, 11vw, 60px); gap: 8px; }
	.amh-jr-title .amh-jr-br { font-size: 1.15em; }
	.amh-jr-lines { width: 78vw; height: 52vh; font-size: 15px; line-height: 1.7; }
	.amh-jr-card { width: 46vw; }
	.amh-jr-card figcaption { font-size: 11px; }
	.amh-jr-rail { left: 50%; top: auto; bottom: 3vh; transform: translateX(-50%); flex-direction: row; gap: 14px; }
	.amh-jr-rail li { padding: 8px 0 0; }
	.amh-jr-rail li i { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
	.amh-jr-rail li i::after { height: 100%; width: calc(var(--f, 0) * 100%); }
	.amh-jr-rail li span { display: none; }
	.amh-jr-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) { .amh-jr-open-img, .amh-jr-cue::after { animation: none; } }
