/* =========================================================
   EP Portfolio — inner pages (contact, FAQs, 404)
   Loads after main.css and reuses its tokens.
   ========================================================= */

.nav__links a.is-current { color: var(--lime); background: rgba(175, 252, 65, .1); }
.menu a[aria-current="page"] { color: var(--lime); }

.section--tight { padding-block: clamp(50px, 7vw, 100px); }
.section__head--split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; max-width: none; }

/* ---------- Showcase gallery (/showcase/) ---------- */
.showcase-grid { display: grid; gap: 22px; }
.demo-card {
    --sx: 50%; --sy: 50%;
    position: relative; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    transition: border-color .4s, transform .6s var(--ease);
}
.demo-card:hover { border-color: rgba(175, 252, 65, .35); }
.demo-card__shot { position: relative; display: flex; flex-direction: column; margin: 18px 0 18px 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0f100e; }
/* Full-page screenshot that scrolls from top to bottom while the card is hovered */
.demo-card__screen { position: relative; flex: 1; min-height: 340px; overflow: hidden; background: #fff; }
.demo-card__screen picture { position: absolute; inset: 0; }
.demo-card__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: object-position 9s var(--ease-in-out); }
.demo-card:hover .demo-card__screen img, .demo-card:focus-within .demo-card__screen img { object-position: 50% 100%; transition-duration: 12s; }
.demo-card__hint {
    position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 99px; pointer-events: none;
    background: rgba(5, 5, 5, .78); color: var(--text); font-size: 12px; font-weight: 600; backdrop-filter: blur(6px);
    transition: opacity .4s;
}
.demo-card:hover .demo-card__hint { opacity: 0; }
/* No hover on touch screens: pan slowly on its own instead */
@media (hover: none) {
    .demo-card__screen img { animation: demo-pan 26s var(--ease-in-out) infinite alternate; }
    .demo-card__hint { display: none; }
}
@keyframes demo-pan { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .demo-card__screen img { animation: none; transition: none; } }
/* Fallback when a demo has no full-page screenshot yet: the static preview image */
.demo-card__shot > picture { display: block; flex: 1; }
.demo-card__shot > picture img { width: 100%; height: 100%; object-fit: cover; }
.demo-card__body { display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 44px); }
.demo-card__title { margin: 14px 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; }
.demo-card__body > p:not(.eyebrow):not(.demo-card__pages) { margin: 0; color: var(--muted); line-height: 1.65; }
.demo-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.demo-card__tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text); background: rgba(255, 255, 255, .03); }
.demo-card__pages { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.demo-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; }
.demo-card--soon { grid-template-columns: 1fr; border-style: dashed; background: transparent; }
.demo-card--soon .demo-card__body { max-width: 640px; }
@media (max-width: 900px) {
    .demo-card { grid-template-columns: 1fr; }
    .demo-card__shot { margin: 14px 14px 0; }
}

/* ---------- Page hero ---------- */
.phero { position: relative; padding: clamp(130px, 16vw, 190px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.phero .wrap { position: relative; }
.phero__title { max-width: 16ch; margin-block: 4px 22px; }
/* Inner-page titles wrap onto several lines, so they fade in instead of being
   masked by a single clipped line box. */
.phero__title .line { overflow: visible; }
.js .phero__title [data-split] .char { transform: translateY(45%); opacity: 0; transition: transform .9s var(--ease), opacity .7s var(--ease); transition-delay: calc(var(--ci) * 22ms + .1s); }
.js .is-loaded .phero__title [data-split] .char { transform: none; opacity: 1; }
.phero .lead { max-width: 58ch; }

.crumbs { display: flex; gap: 10px; margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--lime); }
.crumbs span[aria-current] { color: #cfd3ca; }

/* ---------- Contact page ---------- */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; }
.pill-list li { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.pill-list b { color: var(--text); font-weight: 600; }

.steps__title { margin: 44px 0 0; font: 600 12px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.steps { display: grid; gap: 2px; margin-top: 16px; }
.step { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font: 800 15px var(--font-display); color: var(--lime); padding-top: 3px; }
.step h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .4s, background .4s; }
.acc[open] { border-color: rgba(175, 252, 65, .38); background: rgba(175, 252, 65, .04); }
.acc summary {
    display: flex; align-items: center; gap: 18px; padding: 20px 22px; cursor: pointer; list-style: none;
    font: 600 1.02rem/1.4 var(--font-body); transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--lime); }
.acc summary i { position: relative; flex: none; width: 16px; height: 16px; margin-left: auto; }
.acc summary i::before, .acc summary i::after {
    content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--lime);
    transform: translateY(-50%); transition: transform .4s var(--ease);
}
.acc summary i::after { transform: translateY(-50%) rotate(90deg); }
.acc[open] summary i::after { transform: translateY(-50%) rotate(0deg); }
.acc__body { padding: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.acc__body p { margin: 0; max-width: 72ch; }
.js .acc[open] .acc__body { animation: accIn .5s var(--ease) both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-8px); } }
.accordion--flat .acc { background: transparent; border-inline: 0; border-radius: 0; }

/* ---------- FAQ page ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.faq-search { position: relative; flex: 1 1 280px; max-width: 380px; }
.faq-search input {
    width: 100%; padding: 22px 18px 8px; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(0, 0, 0, .35); color: var(--text); font: 400 15px var(--font-body);
}
.faq-search input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(175, 252, 65, .12); }
.faq-search label { position: absolute; left: 19px; top: 15px; font-size: 14px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.faq-search input:focus + label, .faq-search input:not(:placeholder-shown) + label { transform: translateY(-8px) scale(.78); color: var(--lime); }

.faq-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: #cfd3ca; transition: all .35s var(--ease); }
.chip-btn:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.chip-btn.is-active { background: var(--lime); border-color: var(--lime); color: #050505; font-weight: 600; }

.faq-group { margin-bottom: clamp(40px, 6vw, 70px); }
.faq-group[hidden] { display: none; }
.faq-group__head { margin-bottom: 20px; }
.faq-group__head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.faq-group__head p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.faq-empty { margin: 0 0 40px; color: var(--muted); }
.faq-empty a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.acc[hidden] { display: none; }
mark { background: rgba(175, 252, 65, .3); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- CTA band ---------- */
.cta-band {
    --sx: 50%; --sy: 50%;
    position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
    padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: linear-gradient(135deg, rgba(175, 252, 65, .08), transparent 60%), var(--surface);
}
.cta-band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(500px circle at var(--sx) var(--sy), rgba(175, 252, 65, .14), transparent 55%);
}
.cta-band:hover::after { opacity: 1; }
.cta-band .lead { margin: 14px 0 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Client agreement ---------- */
.agreement__wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.agreement__intro { margin: 0 0 30px; font-size: 1.05rem; line-height: 1.7; color: #dfe3da; }
.agreement__section { padding: 26px 0; border-top: 1px solid var(--line); }
.agreement__section h2 { font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 12px; }
.agreement__section p, .agreement__section li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.agreement__section p { margin: 0 0 12px; max-width: 72ch; }
.agreement__section ul { margin: 0 0 14px; padding-left: 20px; }
.agreement__section li { margin-bottom: 6px; }
.agreement__section li::marker { color: var(--lime); }
.agreement__meta { margin: 20px 0 0; font-size: 12.5px; color: var(--muted); }
.agreement__form { position: sticky; top: 100px; }
.agreement__formtitle { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 20px; }
.agreement__form .form__status { margin: 0 0 18px; }

.agree { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 20px; cursor: pointer; font-size: 14px; line-height: 1.55; color: #dfe3da; }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree__box { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .3); transition: all .3s var(--ease); }
.agree__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #050505; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.agree input:checked + .agree__box { background: var(--lime); border-color: var(--lime); }
.agree input:checked + .agree__box::after { transform: rotate(45deg) scale(1); }
.agree input:focus-visible + .agree__box { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 900px) { .agreement__wrap { grid-template-columns: 1fr; } .agreement__form { position: static; } }
@media print { .agreement__form { display: none; } .agreement__section p, .agreement__section li { color: #222; } }

/* ---------- 404 ---------- */
.notfound__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.notfound__link {
    --sx: 50%; --sy: 50%;
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; overflow: hidden;
    padding: 30px 26px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
    font: 700 1.2rem var(--font-display); letter-spacing: -.02em; transition: border-color .4s, transform .5s var(--ease);
}
.notfound__link::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(300px circle at var(--sx) var(--sy), rgba(175, 252, 65, .16), transparent 55%);
}
.notfound__link:hover { border-color: rgba(175, 252, 65, .45); transform: translateY(-4px); }
.notfound__link:hover::after { opacity: 1; }
.notfound__link i { color: var(--lime); transition: transform .5s var(--ease); }
.notfound__link:hover i { transform: translateX(6px); }
