/* ==========================================================================
   v1.1 additions: menu bridge, highlighted CTA, FAQ, methodology, portfolio
   ========================================================================== */

/* hover bridge so the pointer can travel from the link to the panel */
.sub::before { content: ''; position: absolute; left: 0; right: 0; top: -44px; height: 44px; }
.is-drop > .sub::before { top: -20px; height: 20px; }

/* highlighted Contact Us button */
.btn-pulse { position: relative; isolation: isolate; overflow: hidden; animation: ring 2.2s infinite; }
.btn-pulse::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 3.2s infinite; pointer-events: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(240, 116, 91, .6), 0 10px 24px -8px rgba(91, 80, 245, .6); } 70% { box-shadow: 0 0 0 14px rgba(240, 116, 91, 0), 0 10px 24px -8px rgba(91, 80, 245, .6); } 100% { box-shadow: 0 0 0 0 rgba(240, 116, 91, 0), 0 10px 24px -8px rgba(91, 80, 245, .6); } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.hdr-cta { padding: .8em 1.5em; font-weight: 700; }
.is-home .hdr-cta { background: linear-gradient(135deg, #f0745b, #7c3aed 60%, #5b50f5); }
@media (prefers-reduced-motion: reduce) { .btn-pulse, .btn-pulse::after { animation: none; } }

/* FAQ */
.faq-sec { background: linear-gradient(180deg, var(--soft), #fff); }
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-intro > p { font-size: 1.05rem; margin-bottom: 26px; }
.faq-help { display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq-help strong { color: var(--ink); font-family: var(--font-h); }
.faq-help p { margin: 4px 0 0; font-size: .9rem; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.faq-tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .86rem; transition: .2s; }
.faq-tab:hover { border-color: var(--brand); color: var(--brand); }
.faq-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-list { display: none; gap: 14px; }
.faq-list.is-active { display: grid; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; transition: border-color .25s, box-shadow .25s; }
.faq-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.faq-item.open { border-color: rgba(91, 80, 245, .35); box-shadow: var(--shadow); }
.faq-item.open::before { transform: scaleY(1); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; padding: 20px 22px; border: 0; background: none; color: var(--ink); }
.faq-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); font-family: var(--font-h); font-weight: 800; font-size: .85rem; transition: .25s; }
.faq-item.open .faq-n { background: var(--grad); color: #fff; }
.faq-t { flex: 1; font-family: var(--font-h); font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.faq-pm { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); transition: .25s; }
.faq-pm i { position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .3s, background .25s; }
.faq-pm i:last-child { transform: rotate(90deg); }
.faq-item.open .faq-pm { background: var(--brand); border-color: var(--brand); }
.faq-item.open .faq-pm i { background: #fff; }
.faq-item.open .faq-pm i:last-child { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 1fr; padding-left: 80px; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { margin: 0 24px 22px 0; }
.js .faq-a { grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; }

/* methodology */
.method { background: var(--ink); color: #c9d0ec; position: relative; overflow: hidden; isolation: isolate; }
.method::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 10% 0%, rgba(91, 80, 245, .45), transparent 70%), radial-gradient(600px 400px at 100% 100%, rgba(240, 116, 91, .28), transparent 70%); }
.method .sec-head h2 { color: #fff; }
.method .sec-head p { color: #b7bfe0; }
.method .eyebrow { background: none; -webkit-text-fill-color: #ff9a7c; color: #ff9a7c; }
.method-box { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.method-tabs { display: grid; gap: 10px; }
.method-tab { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #c9d0ec; text-align: left; transition: .25s; }
.method-tab:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.mt-n { font-family: var(--font-h); font-weight: 800; font-size: .8rem; opacity: .6; }
.mt-i .ic { width: 22px; height: 22px; }
.mt-l { font-weight: 600; flex: 1; }
.method-tab.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 16px 30px -12px rgba(91, 80, 245, .8); transform: translateX(8px); }
.method-tab.is-active .mt-n { opacity: .9; }
.method-panels { position: relative; }
.method-panel { display: none; position: relative; height: 100%; padding: 44px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); overflow: hidden; }
.method-panel.is-active { display: block; animation: fadeUp .45s ease; }
.mp-bg { position: absolute; right: 24px; top: -10px; font-family: var(--font-h); font-weight: 800; font-size: 11rem; line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
.method-panel .ico-badge { background: var(--grad); color: #fff; margin-bottom: 20px; }
.mp-step { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #ff9a7c; margin-bottom: 8px; }
.method-panel h3 { color: #fff; font-size: 1.8rem; }
.method-panel > p { max-width: 58ch; font-size: 1.02rem; }
.mp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 30px; }
.mp-list li { display: flex; gap: 10px; align-items: center; color: #e5e9ff; font-weight: 500; font-size: .95rem; }
.mp-list .ic { color: #6ee7a0; width: 20px; height: 20px; }
.mp-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mp-bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

/* sprint ring + engagement */
.sprint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ring { position: relative; width: 360px; max-width: 100%; aspect-ratio: 1; margin: 50px auto 30px; border-radius: 50%; border: 2px dashed rgba(91, 80, 245, .35); }
.ring::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: var(--grad-soft); }
.ring-core { position: absolute; inset: 31%; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: 0 20px 40px -14px rgba(91, 80, 245, .7); }
.ring-core strong { font-family: var(--font-h); font-size: 2rem; line-height: 1; }
.ring-core span { font-size: .75rem; opacity: .9; }
.ring-node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(var(--i) * 72deg)) translateY(-180px); }
.ring-node span { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); transform: rotate(calc(var(--i) * -72deg)); }
.ring-node span .ic { width: 24px; height: 24px; }
.ring-node span b { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); width: 80px; text-align: center; font-size: .78rem; color: var(--ink); }
.eng-col h2 { margin-bottom: 26px; }
.eng { display: flex; gap: 18px; padding: 22px 24px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .3s; }
.eng:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: rgba(91, 80, 245, .3); }
.eng h3 { margin: 0; }
.eng em { display: block; font-style: normal; color: var(--brand); font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.eng ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.eng li { display: flex; gap: 6px; align-items: center; font-size: .88rem; }
.eng li .ic { color: #16a34a; width: 16px; height: 16px; }
.eng-col .btn { margin-top: 14px; }

/* portfolio: browser-frame cards, scrolling screenshot, bento feature tiles */
.work-grid { counter-reset: w; align-items: stretch; }
.work { display: flex; flex-direction: column; counter-increment: w; background: transparent; border: 0; border-radius: 0; box-shadow: none !important; overflow: visible; }
.work:hover { transform: none; box-shadow: none; }
.work-frame { position: relative; display: flex; flex-direction: column; flex: 1; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
.work:hover .work-frame { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.wf-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: linear-gradient(180deg, #f3f5fb, #e9edf7); border-bottom: 1px solid var(--line); }
.wf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.wf-bar i:nth-child(2) { background: #ffd166; }
.wf-bar i:nth-child(3) { background: #4ade80; }
.wf-bar em { margin-left: 10px; flex: 1; min-width: 0; padding: 3px 12px; border-radius: 8px; background: #fff; font-style: normal; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-shot { position: relative; display: block; flex: 1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.wf-shot::before { content: counter(w, decimal-leading-zero); position: absolute; left: 14px; top: 14px; z-index: 2; font-family: var(--font-h); font-weight: 800; font-size: .78rem; color: #fff; padding: 5px 11px; border-radius: 999px; background: rgba(11, 16, 48, .72); backdrop-filter: blur(6px); }
.wf-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 3.5s ease-in-out; }
.work:hover .wf-shot img { object-position: 50% 100%; }
.wf-shot .ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.wf-over { position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 22px; background: linear-gradient(180deg, transparent 45%, rgba(11, 16, 48, .78)); opacity: 0; transition: opacity .35s; z-index: 1; }
.work:hover .wf-over { opacity: 1; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; transform: translateY(14px); transition: transform .35s; }
.work:hover .pill-btn { transform: none; }
.pill-btn .ic { width: 16px; height: 16px; }
.work-body { padding: 16px 6px 4px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.work-tags span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--grad-soft); color: var(--brand); }
.work-body h3 { margin: 0 0 6px; font-size: 1.12rem; }
.work-link { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.work-link:hover { color: var(--brand); }
.work-link .ic { width: 15px; height: 15px; }
.work-grid.is-feature:not(.filtered) .work:nth-child(7n+1) { grid-column: span 2; }
.work-grid.is-feature:not(.filtered) .work:nth-child(7n+1) .wf-shot { aspect-ratio: 16 / 10; }
.section.alt .work-frame { border-color: transparent; }
.filter { box-shadow: var(--shadow-sm); }

/* responsive additions */
@media (max-width: 1099px) {
	.faq-wrap, .sprint-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.faq-wrap > *, .sprint-grid > * { min-width: 0; }
	.faq-intro { position: static; }
	.method-box { grid-template-columns: 1fr; }
	.method-tabs { grid-template-columns: repeat(3, 1fr); }
	.method-tab { flex-direction: column; text-align: center; gap: 6px; padding: 14px 8px; }
	.method-tab.is-active { transform: none; }
	.mt-n { display: none; }
	.mt-l { flex: none; font-size: .85rem; }
	.method-panel { padding: 34px 28px; }
	.work-grid.is-feature:not(.filtered) .work:nth-child(7n+1) { grid-column: auto; }
	.work-grid.is-feature:not(.filtered) .work:nth-child(7n+1) .wf-shot { aspect-ratio: 4 / 3; }
}
@media (max-width: 680px) {
	.method-tabs { grid-template-columns: repeat(2, 1fr); }
	.mp-list { grid-template-columns: 1fr; }
	.mp-bg { font-size: 7rem; }
	.method-panel h3 { font-size: 1.5rem; }
	.faq-q { padding: 16px; gap: 12px; }
	.faq-n { width: 34px; height: 34px; }
	.faq-t { font-size: .95rem; }
	.faq-a { padding-left: 16px; }
	.faq-a p { margin-right: 16px; }
	.faq-tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
	.faq-tab { white-space: nowrap; }
	.eng { flex-direction: column; gap: 12px; }
	.faq-intro .btn { width: 100%; white-space: normal; }
	.ring { width: 300px; margin-top: 44px; }
	.ring-node { transform: rotate(calc(var(--i) * 72deg)) translateY(-150px); }
	.btn { white-space: normal; text-align: center; }
	.hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

/* ---- methodology v2: stepper + detail panel ---- */
.method-box { display: block; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 30px; --p: 0%; }
.stepper::before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 33px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.stepper::after { content: ""; position: absolute; left: calc(100% / 12); top: 33px; height: 3px; border-radius: 3px; background: var(--grad); width: calc((100% - 100% / 6) * var(--p) / 100); transition: width .5s ease; }
.stepper .method-tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; background: none; border: 0; box-shadow: none; transform: none; color: #aeb7dd; text-align: center; }
.stepper .method-tab:hover { background: none; color: #fff; }
.st-dot { position: relative; width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: #1a2054; border: 1px solid rgba(255, 255, 255, .2); color: #c9d0ec; transition: .3s; margin-bottom: 10px; }
.st-dot .ic { width: 28px; height: 28px; }
.st-dot b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #2a3170; border: 1px solid rgba(255, 255, 255, .25); font-size: .72rem; display: grid; place-items: center; color: #fff; }
.st-l { font-family: var(--font-h); font-weight: 700; font-size: 1rem; color: inherit; }
.st-s { font-size: .78rem; opacity: .7; }
.stepper .method-tab.is-active { color: #fff; }
.stepper .method-tab.is-active .st-dot { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 34px -12px rgba(124, 58, 237, .9); }
.stepper .method-tab.is-active .st-dot b { background: #fff; color: var(--brand); border-color: #fff; }
.stepper .method-tab.is-done .st-dot { border-color: rgba(110, 231, 160, .6); color: #6ee7a0; }
.method-panel { height: auto; padding: 44px; }
.method-panel.is-active { display: grid; grid-template-columns: 1.3fr .9fr; gap: 44px; align-items: stretch; }
.mp-main { position: relative; z-index: 1; }
.mp-side { position: relative; z-index: 1; display: grid; gap: 16px; align-content: center; }
.mp-ai, .mp-out { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.mp-ai { background: linear-gradient(135deg, rgba(91, 80, 245, .4), rgba(240, 116, 91, .25)); border-color: rgba(255, 255, 255, .25); }
.mp-ai b, .mp-out b { display: block; color: #fff; font-family: var(--font-h); margin-bottom: 4px; }
.mp-ai p, .mp-out p { margin: 0; font-size: .92rem; color: #d7dcf3; }
.mp-ai .ico-badge, .mp-out .ico-badge { background: rgba(255, 255, 255, .15); color: #fff; }
.mp-nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.mp-nav button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; transition: .2s; }
.mp-nav button:hover { background: var(--grad); border-color: transparent; }
.mp-prev .ic { transform: rotate(180deg); }
.mp-nav .mp-bar { flex: 1; margin: 0; }
.mp-nav .mp-bar i { width: 16.6%; transition: width .5s ease; }
@media (max-width: 1099px) {
	.stepper { grid-template-columns: repeat(6, minmax(72px, 1fr)); overflow-x: auto; padding: 14px 4px 8px; scrollbar-width: none; margin-bottom: 18px; }
	.stepper::before { top: 47px; left: 36px; right: 36px; }
	.stepper::after { top: 47px; left: 36px; width: calc((100% - 72px) * var(--p) / 100); }
	.st-dot { width: 56px; height: 56px; border-radius: 18px; }
	.st-s { display: none; }
	.method-panel.is-active { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
}
@media (max-width: 680px) {
	.stepper { grid-template-columns: repeat(6, 84px); }
	.mp-list { grid-template-columns: 1fr; }
}
.mp-bg { top: auto; bottom: -34px; right: 20px; }
