/* ==========================================================================
   pages.css — page- and section-specific styles
   ========================================================================== */

/* Hero ----------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero .blob--1 { width: 46vw; height: 46vw; left: -10vw; top: -8vw; animation: float1 16s ease-in-out infinite alternate; }
.hero .blob--2 { width: 40vw; height: 40vw; right: -8vw; top: 12vh; animation: float2 19s ease-in-out infinite alternate; }
.hero .blob--3 { width: 30vw; height: 30vw; left: 35vw; bottom: -14vw; animation: float1 22s ease-in-out infinite alternate-reverse; }
@keyframes float1 { to { translate: 6vw 5vh; scale: 1.15; } }
@keyframes float2 { to { translate: -7vw 6vh; scale: 0.9; } }
.hero__grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { animation: fadeUp 1s var(--ease) 0.1s both; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero__title { font-size: clamp(3.2rem, 10.5vw, 9.5rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: clamp(32px, 5vw, 56px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.11s); }
.hero__title .line > .grad { animation: lineUp 1.2s var(--ease) forwards, gradShift 8s linear infinite; animation-delay: calc(0.25s + var(--i) * 0.11s), 0s; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; animation: fadeUp 1.1s var(--ease) 0.9s both; }
.hero__lead { max-width: 480px; color: var(--muted); font-size: 1.1rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: -50px; display: none; align-items: center; gap: 12px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.badge { position: absolute; right: var(--gutter); top: -40px; width: 150px; height: 150px; animation: spin 22s linear infinite; opacity: 0; animation: spin 22s linear infinite, fadeIn 1.4s 1.2s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.badge text { font: 600 13.5px var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; fill: var(--muted); }
.badge__core { fill: none; stroke: var(--pink); stroke-width: 1.5; }
.badge__arrow { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .badge { display: none; } }

/* Marquee ---------------------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: rgba(255, 255, 255, 0.015); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__group span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45); transition: color 0.3s; }
.marquee__group span:hover { color: var(--text); }
.marquee__group i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Service cards (home) ---------------------------------------------------------- */
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-cards { grid-template-columns: 1fr; } }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; min-height: 320px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d;
  transition: border-color 0.4s, opacity 0.9s var(--ease), transform 0.5s var(--ease);
}
.service-card::before { content: ""; position: absolute; inset: 0; background: var(--g); opacity: 0; transition: opacity 0.5s; z-index: 0; }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: transparent; }
.service-card:hover p, .service-card:hover .service-card__num { color: rgba(255, 255, 255, 0.9); }
.service-card__num { font-family: var(--font-display); font-weight: 700; color: var(--muted); transition: color 0.3s; }
.service-card h3 { font-size: 1.7rem; font-weight: 700; margin-top: auto; }
.service-card p { color: var(--muted); font-size: 0.95rem; transition: color 0.3s; }
.service-card__arrow { position: absolute !important; top: 24px; right: 26px; font-size: 1.6rem; transition: transform 0.5s var(--ease); }
.service-card:hover .service-card__arrow { transform: translate(6px, -6px) rotate(10deg); }

/* Stats ----------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }
.stat { border-top: 1px solid var(--line); padding-top: 24px; }
.stat__value { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); margin-top: 10px; }

/* Testimonials --------------------------------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .testimonials { grid-template-columns: 1fr; } }
.quote { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 36px; bottom: 36px; width: 3px; border-radius: 3px; background: var(--grad); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 28px; display: flex; flex-direction: column; font-size: 0.9rem; }
.quote figcaption span { color: var(--muted); }

/* CTA band ------------------------------------------------------------------------------------ */
.cta-band { overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70vw; height: 40vw; max-height: 480px; translate: -50% -50%; background: radial-gradient(closest-side, rgba(236, 72, 153, 0.25), rgba(124, 58, 237, 0.12) 55%, transparent); filter: blur(30px); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 44px; }

/* Sub-page hero ------------------------------------------------------------------------------------ */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(60px, 10vw, 140px)) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero--center { text-align: center; min-height: 80vh; display: grid; align-items: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; margin-bottom: 32px; }
.page-hero__lead { max-width: 620px; color: var(--muted); font-size: 1.15rem; margin-top: 28px; }
.blob--page { width: 38vw; height: 38vw; right: -8vw; top: -10vw; opacity: 0.4; animation: float2 18s ease-in-out infinite alternate; }

/* Services page ------------------------------------------------------------------------------------ */
.service-row { display: grid; grid-template-columns: 110px 1.2fr 1fr; gap: 32px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 100px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--g); transition: width 1s var(--ease); }
.service-row:hover::after, .service-row:target::after { width: 100%; }
.service-row__num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.service-row h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; margin-bottom: 14px; }
.service-row p { color: var(--muted); max-width: 520px; }
.service-row__list { display: grid; gap: 10px; padding-top: 6px; }
.service-row__list li { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.service-row__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex: none; }
@media (max-width: 900px) { .service-row { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; } .service-row__num { font-size: 2rem; } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process__step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.5s var(--ease), border-color 0.3s, opacity 0.9s var(--ease); }
.process__step:hover { transform: translateY(-6px); border-color: rgba(236, 72, 153, 0.5); }
.process__num { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--pink); }
.process__step h3 { font-size: 1.6rem; margin: 40px 0 10px; }
.process__step p { color: var(--muted); font-size: 0.95rem; }

.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 26px; transition: border-color 0.3s, background 0.3s, opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.faq__item[open] { border-color: rgba(124, 58, 237, 0.55); background: var(--surface-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.05rem; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { position: relative; width: 22px; height: 22px; flex: none; }
.faq__item summary span::before, .faq__item summary span::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.4s var(--ease); }
.faq__item summary span::after { transform: rotate(90deg); }
.faq__item[open] summary span::after { transform: rotate(0); }
.faq__item p { color: var(--muted); padding-bottom: 24px; max-width: 640px; }

/* About page ------------------------------------------------------------------------------------ */
.about-story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .about-story { grid-template-columns: 1fr; } }
.about-story__visual { position: relative; aspect-ratio: 4/5; border-radius: 32px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); animation: float1 10s ease-in-out infinite alternate; }
.orb--a { width: 70%; aspect-ratio: 1; left: -10%; top: -5%; background: var(--violet); }
.orb--b { width: 60%; aspect-ratio: 1; right: -15%; top: 30%; background: var(--pink); animation-delay: -3s; }
.orb--c { width: 50%; aspect-ratio: 1; left: 20%; bottom: -10%; background: var(--amber); animation-delay: -6s; }
.about-story__tag { position: absolute; left: 24px; bottom: 24px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.85rem; background: rgba(7, 7, 11, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); }
.about-story__text { display: grid; gap: 20px; }
.about-story__text p { color: var(--muted); }
.about-story__text .h2 { margin-bottom: 8px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.value__idx { font-size: 0.8rem; color: var(--cyan); font-weight: 600; }
.value h3 { font-size: 1.4rem; margin: 28px 0 10px; line-height: 1.15; }
.value p { color: var(--muted); font-size: 0.95rem; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }
.member__avatar { position: relative; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; transition: border-radius 0.7s var(--ease), transform 0.7s var(--ease); }
.member__avatar span { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.92); mix-blend-mode: overlay; transition: transform 0.7s var(--ease); }
.member:hover .member__avatar { border-radius: 50%; transform: rotate(-4deg) scale(1.03); }
.member:hover .member__avatar span { transform: scale(1.2); }
.member h3 { font-size: 1.2rem; }
.member p { color: var(--muted); font-size: 0.9rem; }

.timeline { position: relative; display: grid; gap: 0; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--violet), var(--pink), var(--amber)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 40px; display: grid; grid-template-columns: 100px 1fr; gap: 20px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--pink); }
.timeline__year { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.timeline p { color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Contact page ------------------------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 36px; position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 900px) { .contact__info { position: static; } }
.contact__info h3 { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.contact__info a, .contact__info p { display: block; font-size: 1.15rem; }
.contact__info a { width: fit-content; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease); }
.contact__info a:hover { background-size: 100% 2px; }
.socials { display: grid; gap: 6px; }
.contact__note { color: var(--muted); font-size: 0.9rem !important; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line); }
.contact__form-wrap { padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; }

/* Footer ------------------------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(60px, 9vw, 110px); background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.07)); }
.footer__cta { margin-bottom: clamp(48px, 8vw, 100px); }
.footer__mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 6.4vw, 5.4rem); letter-spacing: -0.03em; line-height: 1.05; word-break: break-word; background: var(--grad) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 0.8s var(--ease); }
.footer__mail:hover { background-position: 100% 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 56px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer li { margin-bottom: 8px; }
.footer li a { transition: color 0.3s; color: var(--text); opacity: 0.85; }
.footer li a:hover { color: var(--pink); }
.footer__muted { color: var(--muted); margin-top: 14px; font-size: 0.95rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer__bottom a:hover { color: var(--text); }
