/* AMPE homepage (6 Nov 2026), laid out after the NexaCore template by Mohammad Shehadeh
   (github.com/MohammadShehadeh/hirael, MIT licence, see THIRD-PARTY-NOTICES.md).
   Recoloured to the AMPE brand; the template's videos and images are not used. */
:root {
  --r: 22px;               /* corner radius for this page; set to 0 to go back to the sharp house style */
  --plum: #1A0712;
  --plum-2: #2A0A1D;
  --pink: #FF8CC6;
  --grad-a: linear-gradient(90deg, #D6197E, #FF5FAE 50%, #00E0D1);
  --grad-b: linear-gradient(90deg, #FF8CC6, #D6197E 45%, #00E0D1);
  --grad-line: linear-gradient(#D6197E, #FF5FAE 30%, #FF8CC6 55%, #00E0D1 85%, rgba(0, 224, 209, 0));
  --soft: 0 3px 9px rgba(42, 38, 39, .05), 0 1px 29px rgba(42, 38, 39, .09);
}
body.home { background: #fff; }
.home h1, .home h2, .home h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -.02em; }
.home h1 em, .home h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
.grad { background-image: var(--grad-b); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- floating pill nav ---------- */
.pill-head { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.pill-nav { pointer-events: auto; width: 100%; max-width: 1150px; background: #fff; border-radius: calc(var(--r) * .8); box-shadow: 0 10px 30px -10px rgba(26, 7, 18, .35), 0 2px 6px rgba(26, 7, 18, .08); transition: max-width .5s ease; }
.pill-nav.scrolled { max-width: 860px; }
.pill-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 8px 6px 18px; transition: padding .5s ease; }
.pill-logo { display: block; line-height: 0; }
.pill-logo img { width: 92px; height: auto; transition: width .5s ease; }
.scrolled .pill-logo img { width: 78px; }
.pill-links { display: none; align-items: center; gap: 2px; }
.pill-links a { text-decoration: none; color: var(--ink); font-size: 15px; padding: 9px 15px; border-radius: 12px; transition: padding .5s ease, background .2s; }
.scrolled .pill-links a { padding: 7px 10px; }
.pill-links a:hover { background: rgba(42, 38, 39, .05); }
.grad-btn { position: relative; display: inline-flex; padding: 1px; border-radius: 13px; background-image: var(--grad-a); text-decoration: none; }
.grad-btn span { display: block; border-radius: 12px; background: var(--fuchsia); color: #fff; padding: 11px 24px; font-size: 15.5px; font-weight: 500; transition: background .3s; white-space: nowrap; }
.grad-btn:hover span { background: transparent; }
.grad-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 12px; color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: rgba(42, 38, 39, .05); }
.menu-btn svg { width: 22px; height: 22px; }
.pill-drawer { display: none; flex-direction: column; gap: 2px; padding: 8px 14px 14px; border-top: 1px solid var(--line); }
.pill-drawer.open { display: flex; }
.pill-drawer a { text-decoration: none; color: var(--ink); text-align: center; padding: 10px; border-radius: 12px; }
.pill-drawer a:hover { background: rgba(42, 38, 39, .05); }
.pill-drawer .grad-btn { margin-top: 6px; justify-content: center; }
.pill-drawer .grad-btn span { width: 100%; text-align: center; }
.pill-cta { display: none; }
@media (min-width: 860px) {
  .pill-links, .pill-cta { display: flex; }
  .menu-btn, .pill-drawer, .pill-drawer.open { display: none; }
}

/* ---------- hero ---------- */
.n-hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 16px 90px; background: var(--plum); color: #fff; text-align: center; isolation: isolate; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px) saturate(1.2); }
.aurora i { position: absolute; display: block; border-radius: 50%; opacity: .75; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 55vmax; height: 55vmax; left: 5%; top: 40%; background: #D6197E; animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 40vmax; height: 40vmax; right: 5%; top: 50%; background: #00B8AC; opacity: .55; animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 38vmax; height: 38vmax; left: 38%; top: 62%; background: #FF8CC6; opacity: .6; animation: drift3 19s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 30vmax; height: 30vmax; left: 20%; top: 10%; background: #5A0A35; animation: drift2 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vw, -14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -10vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -20vh) scale(1.2); } }
.n-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 50% 20%, rgba(26, 7, 18, .7), transparent 70%); }
.n-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--plum)); }
.n-hero-in { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.n-hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; margin: 0; color: #fff; }
.n-hero h1 em { color: inherit; }
.n-hero p { margin: 0; max-width: 620px; font-size: clamp(16px, 1.3vw, 20px); color: rgba(255, 255, 255, .76); line-height: 1.55; }
.n-hero mark { background: none; color: #fff; box-shadow: inset 0 -.38em 0 rgba(0, 224, 209, .45); }
.n-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ghost-btn { display: inline-flex; align-items: center; padding: 11px 24px; border-radius: 13px; color: #fff; text-decoration: none; font-size: 15.5px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); transition: background .2s; }
.ghost-btn:hover { background: rgba(255, 255, 255, .14); }

/* ---------- offerings: dark cards that unfold on hover ---------- */
.n-offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(48px, 7vw, 100px); padding: clamp(90px, 10vw, 150px) clamp(16px, 4vw, 40px) clamp(110px, 12vw, 170px);
  background: radial-gradient(60% 50% at 15% 30%, rgba(214, 25, 126, .35), transparent 70%), radial-gradient(50% 45% at 90% 70%, rgba(0, 184, 172, .25), transparent 70%), var(--plum); }
.n-offer::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(to bottom, transparent, #fff); pointer-events: none; }
.n-head { max-width: 900px; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.n-head h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.14; }
.n-head p { margin: 0 auto; max-width: 720px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.55; }
.n-offer .n-head h2 { color: #fff; }
.n-offer .n-head p { color: rgba(255, 255, 255, .72); }
.cards { position: relative; z-index: 1; width: 100%; max-width: 1200px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.s-card { position: relative; display: flex; flex-direction: column; overflow: hidden; height: clamp(340px, 32vw, 480px); border-radius: calc(var(--r) * 1.6); background: rgba(10, 4, 8, .82); -webkit-backdrop-filter: blur(36px); backdrop-filter: blur(36px); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.s-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; z-index: 0; transform: translateY(-30%); opacity: .7; transition: all .5s ease;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 95, 174, .5), transparent 70%), linear-gradient(160deg, rgba(0, 224, 209, .3), transparent 60%); }
.s-card::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; z-index: 0; transform: translateY(100%); opacity: 0; transition: all .5s ease; background: linear-gradient(to top, rgba(10, 4, 8, .96) 60%, transparent); }
.s-card:hover::before, .s-card:focus-visible::before { transform: none; opacity: 1; }
.s-card:hover::after, .s-card:focus-visible::after { transform: none; opacity: 1; }
.s-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.s-in { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: clamp(20px, 2vw, 32px) clamp(20px, 2.3vw, 34px); }
.s-badge { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border-radius: 999px; background: rgba(255, 255, 255, .1); padding: 8px 16px; font-size: 14px; }
.s-badge svg { width: 17px; height: 17px; color: var(--pink); flex: none; }
.s-grow { flex: 1; }
.s-card h3 { margin: 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; color: #fff; transition: transform .5s ease; }
.s-card:hover h3 { transform: translateY(-8px); }
.s-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.s-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .74); }
.s-card li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; border: 1.5px solid var(--pink); box-shadow: inset 0 0 0 2px rgba(10, 4, 8, .9), inset 0 0 0 5px var(--pink); }
.s-more { max-height: 0; opacity: 0; transform: translateY(20px); overflow: hidden; transition: all .5s ease; }
.s-card:hover .s-more, .s-card:focus-visible .s-more { max-height: 80px; opacity: 1; transform: none; }
.s-more span { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 12px 0; border-radius: 12px; background-image: var(--grad-a); font-weight: 500; font-size: 15px; }
@media (hover: none) { .s-more { max-height: 80px; opacity: 1; transform: none; } .s-card::before { opacity: 1; transform: none; } }

/* ---------- without us vs with AMPE ---------- */
.n-compare { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: clamp(56px, 7vw, 100px) clamp(16px, 3vw, 40px); background: #fff; }
.n-compare .n-head h2 { color: var(--ink); }
.vs { width: 100%; max-width: 1240px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media (min-width: 1000px) { .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; } }
.vs-col { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.point { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: calc(var(--r) * .8); background: #fff; box-shadow: var(--soft); font-size: clamp(14.5px, 1.1vw, 17px); line-height: 1.4; }
.point svg { width: 19px; height: 19px; flex: none; }
.point.neg { color: var(--muted); }
.point.neg svg { color: #B9B2B5; }
.point.pos { color: var(--ink); }
.point.pos svg { color: var(--fuchsia); }
.vs-mid { order: -1; }
@media (min-width: 1000px) { .vs-mid { order: 0; } }
.orb { position: relative; width: clamp(220px, 24vw, 400px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(214, 25, 126, .45); }
.orb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); background: linear-gradient(200deg, rgba(214, 25, 126, .18), transparent 50%, rgba(0, 224, 209, .2)); }
.orb-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed rgba(214, 25, 126, .35); animation: spin 40s linear infinite; pointer-events: none; }
.orb-wrap { position: relative; padding: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- how it works: staircase ---------- */
.n-how { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(32px, 4vw, 56px); padding: clamp(56px, 8vw, 120px) clamp(16px, 4vw, 60px) clamp(56px, 6vw, 90px);
  background: radial-gradient(70% 60% at 85% 100%, rgba(0, 224, 209, .14), transparent 70%), radial-gradient(60% 60% at 10% 0%, rgba(255, 140, 198, .2), transparent 70%), var(--stone); }
.n-how .n-head h2 { color: var(--ink); }
.n-how .n-head p { color: var(--ink-soft); }
.stairs { position: relative; width: 100%; max-width: 1100px; display: none; height: 440px; }
.stair { position: absolute; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.stair:nth-child(1) { left: 2%; bottom: 40px; }
.stair:nth-child(2) { left: 35%; bottom: 110px; }
.stair:nth-child(3) { left: 68%; bottom: 180px; }
.chip { display: inline-flex; align-items: center; gap: 9px; border-radius: calc(var(--r) * .9); padding: 13px 22px; font-weight: 500; font-size: 17px; color: var(--ink); background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .7)); box-shadow: var(--soft); white-space: nowrap; }
.chip b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background-image: var(--grad-a); color: #fff; font-size: 13px; font-weight: 600; }
.stair-body { display: flex; gap: 18px; margin-top: 10px; margin-left: 22px; }
.stair-line { width: 1px; height: 210px; background-image: var(--grad-line); flex: none; }
.stair-items { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; max-width: 250px; }
.stair-items span { font-size: 15.5px; color: var(--ink); padding: 7px 0; }
.stair-items p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.stack { width: 100%; display: flex; flex-direction: column; gap: 34px; text-align: left; }
.stack .stair-body { margin-left: 12px; }
.stack .stair-line { height: auto; min-height: 120px; }
.stack .stair { position: static; }
.n-how { position: relative; }
@media (min-width: 760px) { .stairs { display: block; } .stack { display: none; } }

/* ---------- the rest of the page in the same family ---------- */
.home .section-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.home .projects li, .home .offerings li, .home .areas a, .home .founder, .home .steps li { border-radius: var(--r); }
.home .project-art { border-radius: calc(var(--r) * .8); overflow: hidden; }
.home .work-tabs button { border-radius: 999px; }
.home .button { border-radius: 13px; }
.home .founder-photo { border-radius: 50%; }
.home .contact-photo { border-radius: var(--r); }
.home .site-footer { border-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .orb-ring { animation: none; }
  .pill-nav, .pill-row, .pill-links a, .pill-logo img, .s-card *, .s-card::before, .s-card::after { transition: none; }
}

/* ---------- faded swash backgrounds (the AMPE brush stroke, large and soft behind sections) ---------- */
.has-swash { position: relative; isolation: isolate; overflow: hidden; }
.bg-swash { position: absolute; z-index: -1; pointer-events: none; width: 108%; left: -10%; height: clamp(60px, 7.5vw, 120px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  opacity: 0; transform: translateX(-6%) rotate(var(--rot, -4deg)); transition: opacity 1.6s ease, transform 2.2s cubic-bezier(.2, .7, .2, 1); }
.bg-swash.in { opacity: var(--op, .1); transform: translateX(0) rotate(var(--rot, -4deg)); }
.bg-swash path { fill: var(--sw, #D6197E); }
.sw-hero { --sw: #FFFFFF; --op: .42; --rot: -4deg; top: 73%; z-index: 0; }
.n-hero-in { position: relative; z-index: 1; }
.sw-offer { --sw: #FF5FAE; --op: .26; --rot: 4deg; top: 9%; }
.sw-compare { --op: .16; --rot: -3deg; top: 52%; height: clamp(80px, 10vw, 150px); }
.sw-work { --sw: #00C2B5; --op: .22; --rot: 3deg; top: 6%; }
.sw-list { --op: .14; --rot: -5deg; bottom: 6%; }
.sw-how { --sw: #00C2B5; --op: .24; --rot: -4deg; bottom: 4%; }
.sw-price { --op: .16; --rot: 2deg; top: 20%; height: clamp(50px, 7vw, 100px); }
.sw-founders { --sw: #FF8CC6; --op: .32; --rot: -3deg; top: 34%; height: clamp(80px, 10vw, 150px); }
@media (prefers-reduced-motion: reduce) { .bg-swash { transition: none; } }
