/* ============================================================
   LO STUDIO — Sections v3 (Davies-inspired)
   sticky services · process · rolling stats · about+timeline
   · circular badge · FAQ · contact · wordmark footer
   ============================================================ */

/* ============================================================
   SERVICES — sticky stacking cards (dark section)
   ============================================================ */
.services { padding: 110px 0 40px; background: var(--bg); }
.services .sec-head .h2 { background: #fff; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.services .sec-head .lead { color: var(--d-ink-3); }
.svc-stack { margin-top: 50px; display: flex; flex-direction: column; gap: 24px; }
.svc-card {
  position: sticky; top: 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 38px; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(11,14,22,.5); overflow: hidden;
}
.svc-card .svc-visual { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line); }
/* service spot illustrations */
.svc-illo { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(90% 80% at 50% 32%, rgba(217,244,0,.07), transparent 62%), #161616; }
.svc-illo::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0); background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 80% at 50% 42%, #000, transparent 78%); mask-image: radial-gradient(80% 80% at 50% 42%, #000, transparent 78%); }
.svc-illo svg { position: relative; width: 88%; height: 90%; }
.svc-illo text { font-family: var(--sans); }

/* ---- service illustration ambient motion (runs while card is in view) ---- */
.svc-illo .b-ring, .svc-illo .b-dot, .svc-illo .b-chip,
.svc-illo .w-btn, .svc-illo .p-bar, .svc-illo .p-dot,
.svc-illo .v-play, .svc-illo .s-flame, .svc-illo .s-spark { transform-box: fill-box; transform-origin: center; }
.svc-illo .p-bar { transform-origin: bottom; }
.svc-illo .s-flame { transform-origin: top; }

/* one-shot entrance when card scrolls into focus */
.svc-illo svg { will-change: transform, opacity, clip-path; }
.svc-card.in .svc-illo svg { animation: svc-intro 1s cubic-bezier(.2,.7,.3,1) both; }
@keyframes svc-intro {
  0%   { opacity: 0; transform: scale(.86) translateY(14px); clip-path: inset(0 0 100% 0 round 14px); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 14px); }
}

.svc-card.in .b-ring1 { animation: svc-spin 26s linear infinite; }
.svc-card.in .b-ring2 { animation: svc-spin 19s linear infinite reverse; }
.svc-card.in .b-dot  { animation: svc-pulse 2.6s ease-in-out infinite; }
.svc-card.in .b-dot2 { animation-delay: 1.3s; }
.svc-card.in .b-chip { animation: svc-glow 3.2s ease-in-out infinite; }

.svc-card.in .w-cursor { animation: svc-click 4.2s cubic-bezier(.5,.05,.2,1) infinite; }
.svc-card.in .w-btn { animation: svc-glow 4.2s ease-in-out infinite; }

.svc-card.in .p-bar { animation: svc-bar 3.4s cubic-bezier(.4,0,.2,1) infinite; }
.svc-card.in .p-line { stroke-dasharray: 220; animation: svc-draw 3.6s ease-in-out infinite; }
.svc-card.in .p-dot { animation: svc-pulse 2.4s ease-in-out infinite; }

.svc-card.in .v-play { animation: svc-beat 2.4s ease-in-out infinite; }
.svc-card.in .v-head { animation: svc-scrub 4.6s cubic-bezier(.45,0,.55,1) infinite; }

.svc-card.in .s-rocket { animation: svc-bob 3.4s ease-in-out infinite; }
.svc-card.in .s-flame { animation: svc-flicker .45s ease-in-out infinite; }
.svc-card.in .s-spark { animation: svc-twinkle 2.4s ease-in-out infinite; }
.svc-card.in .s-spark2 { animation-delay: 1.2s; }

@keyframes svc-spin { to { transform: rotate(360deg); } }
@keyframes svc-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .55; } }
@keyframes svc-glow { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(1.05); } }
@keyframes svc-click { 0%,100% { transform: translate(0,0); } 38% { transform: translate(-46px,-10px); } 48% { transform: translate(-46px,-7px) scale(.86); } 56% { transform: translate(-46px,-10px); } }
@keyframes svc-bar { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.34); } }
@keyframes svc-draw { 0% { stroke-dashoffset: 220; } 55%,100% { stroke-dashoffset: 0; } }
@keyframes svc-beat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes svc-scrub { 0% { transform: translateX(-104px); } 50% { transform: translateX(124px); } 100% { transform: translateX(-104px); } }
@keyframes svc-bob { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,-7px); } }
@keyframes svc-flicker { 0%,100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.7); opacity: .7; } }
@keyframes svc-twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.7); } }
.svc-info .top { display: flex; align-items: center; justify-content: space-between; }
.svc-info .num { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--link); }
.svc-info h3 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.03em; margin-top: 22px; color: var(--ink); }
.svc-info p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); max-width: 44ch; }
.svc-info .caps { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.svc-info .caps span { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 14px; }
.svc-info .caps span::before { content: '//'; color: var(--link); opacity: .8; }
@media (max-width: 900px){
  .svc-card { grid-template-columns: 1fr; position: relative; top: 0; gap: 26px; padding: 26px; }
  .svc-card .svc-visual { order: 2; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--paper); padding: 110px 0; position: relative; overflow: hidden; }
.process .dotgrid-l { position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(circle at 1px 1px, rgba(255,120,70,.13) 1px, transparent 0); background-size: 24px 24px; -webkit-mask-image: radial-gradient(70% 60% at 84% 6%, #000, transparent 70%); mask-image: radial-gradient(70% 60% at 84% 6%, #000, transparent 70%); }
.process .sec-head .h2 { background: #fff; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.process .sec-head .lead { color: var(--d-ink-3); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--d-line); border-radius: 18px; padding: 30px 26px 34px; box-shadow: 0 22px 44px -34px rgba(0,0,0,.8); transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, border-color .4s; }
/* animated border beam (revealed on hover) */
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.step::after { content: ''; position: absolute; inset: -1px; border-radius: 19px; padding: 1.6px; pointer-events: none; background: conic-gradient(from var(--beam-angle), transparent 0deg 250deg, rgba(217,244,0,.9) 300deg, #f4ffb0 328deg, rgba(217,244,0,.9) 352deg, transparent 360deg); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s ease; }
.step:hover::after { opacity: 1; animation: beam-spin 2.6s linear infinite; }
@keyframes beam-spin { to { --beam-angle: 360deg; } }
.step:hover { transform: translateY(-7px); box-shadow: 0 40px 60px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(217,244,0,.12); border-color: rgba(217,244,0,.45); }
.step h3, .step p { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.step:hover h3, .step:hover p { transform: translateX(3px); }
.step .n { font-family: var(--mono); font-size: 28px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.step .n b { color: var(--link); }
.step .dot { width: 42px; height: 42px; border-radius: 12px; margin: 20px 0 18px; display: grid; place-items: center; background: rgba(217,244,0,.12); border: 1px solid rgba(217,244,0,.35); transition: background .4s cubic-bezier(.2,.7,.3,1), border-color .4s, transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s; }
.step:hover .dot { background: var(--link); border-color: var(--link); transform: translateY(-6px) scale(1.12) rotate(-3deg); box-shadow: 0 16px 30px -8px rgba(217,244,0,.55); }
.step h3 { font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.step p { margin-top: 9px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }

/* ============================================================
   STATS — rolling digit counters (dark band)
   ============================================================ */
.stats { background: var(--bg); color: #fff; padding: 90px 0; position: relative; overflow: hidden; }
.stats .dotgrid { position: absolute; inset: 0; opacity: .3; -webkit-mask-image: radial-gradient(60% 80% at 20% 0%, #000, transparent 70%); mask-image: radial-gradient(60% 80% at 20% 0%, #000, transparent 70%); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 1px solid var(--d-line); padding-left: 22px; }
.stat .roll { display: flex; align-items: flex-end; font-size: clamp(44px, 5vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.stat .reel { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.stat .reel .col { display: flex; flex-direction: column; transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.stat .reel .col span { height: 1em; display: flex; align-items: center; justify-content: center; }
.stat .suffix { color: #fff; }
.stat .l { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-top: 16px; }
@media (max-width: 900px){ .stats-grid { grid-template-columns: repeat(2,1fr); gap: 36px 24px; } }
@media (max-width: 460px){ .stats-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT — portrait, intro, experience timeline, rotating badge
   ============================================================ */
.about { padding: 116px 0; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.about-media { position: relative; }
.portrait { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line-2); background: linear-gradient(160deg, #0f1830, #070a12); }
.portrait .dotgrid { position: absolute; inset: 0; opacity: .4; }
.portrait .portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; color: rgba(255,255,255,.6); background: linear-gradient(160deg, #0f1830, #070a12); transform: scale(1.2); transform-origin: center; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.portrait:hover .portrait-photo { transform: scale(1.3); }
/* name caption — dissolves in on hover */
.portrait-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 20px 20px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: #fff; background: linear-gradient(0deg, rgba(8,10,16,.78), rgba(8,10,16,0)); pointer-events: none; }
.portrait-name span { display: inline-block; opacity: 0; transform: translateY(8px); filter: blur(5px); transition: opacity .5s ease, transform .55s cubic-bezier(.2,.7,.3,1), filter .5s ease; }
.portrait:hover .portrait-name span { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce){ .portrait-name span { opacity: 1; transform: none; filter: none; } }
.portrait .hero-spot { position: absolute; width: 460px; height: 460px; left: 50%; top: 44%; transform: translate(-50%,-50%); animation: none; }
.portrait .badge { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; padding: 15px 17px; border-radius: 14px; background: rgba(8,12,22,.62); backdrop-filter: blur(12px); border: 1px solid var(--d-line-2); }
.portrait .badge .name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.portrait .badge .role { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--d-ink-3); margin-top: 4px; }
/* rotating circular badge */
.spin-badge { position: absolute; right: -22px; top: -22px; width: 116px; height: 116px; z-index: 5; }
.spin-badge .ring { width: 100%; height: 100%; animation: spin360 18s linear infinite; }
.spin-badge .ring text { font-family: var(--mono); font-size: 9.4px; letter-spacing: .28em; fill: var(--d-ink-2); text-transform: uppercase; }
.spin-badge .disc { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(150deg, #a78bfa, #6d28d9); display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(139,92,246,.8); }
.spin-badge .disc svg { width: 26px; height: 26px; }
.spin-badge .disc .disc-mark { width: 28px; height: 30px; object-fit: contain; }
@keyframes spin360 { to { transform: rotate(360deg); } }

.about p.big { font-size: clamp(20px, 2vw, 27px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); max-width: none; }
.about p.big b { color: var(--link); font-weight: 600; }
.about .lead { margin-top: 18px; max-width: 56ch; }
.exp { margin-top: 36px; }
.exp h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.exp-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); transition: padding-left .25s; }
.exp-row:hover { padding-left: 8px; }
.exp-row .co { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.exp-row .ro { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.exp-row .yr { font-family: var(--mono); font-size: 12.5px; color: var(--ink-4); letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 900px){ .about-grid { grid-template-columns: 1fr; gap: 40px; } .spin-badge { right: 14px; top: 14px; } }

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq { padding: 110px 0; background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; margin-top: 12px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--sans); font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.faq-q .ico { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-q .ico::before, .faq-q .ico::after { content: ''; position: absolute; background: var(--link); border-radius: 2px; transition: transform .3s; }
.faq-q .ico::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-q .ico::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .faq-q .ico::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.2,.7,.3,1); }
.faq-a p { font-size: 15px; line-height: 1.65; color: var(--ink-3); padding: 0 40px 26px 0; }
@media (max-width: 900px){ .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 116px 0; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact .display { font-size: clamp(40px, 5vw, 72px); }
.contact .lead { margin-top: 20px; max-width: 40ch; }
.contact .links { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact .links a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink-2); transition: color .2s, gap .2s; width: max-content; }
.contact .links a:hover { color: var(--link); gap: 14px; }
.contact .links a .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line-2); }
.form { background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--paper); font-family: var(--sans); font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(217,244,0,.22); }
.field textarea { resize: vertical; min-height: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-3); cursor: pointer; transition: all .2s; }
.chip-toggle.on { background: var(--link); color: var(--link-ink); border-color: var(--link); }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-top: 12px; text-align: center; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px){ .form .row { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE — trim oversized section rhythm & gaps
   ============================================================ */
@media (max-width: 620px){
  .services, .process, .stats, .about, .faq, .contact { padding: 70px 0; }
  .services { padding-bottom: 24px; }
  .svc-stack { margin-top: 32px; }
  .steps { margin-top: 36px; }
  .about-grid { gap: 32px; }
  .about .exp { margin-top: 28px; }
  .exp-row .co { font-size: 16px; }
  .faq-a p { padding-right: 0; }
  .form { padding: 22px; }
  .qcarousel { margin-top: 36px; }
}

/* ============================================================
   FOOTER — big wordmark (dark)
   ============================================================ */
.footer { background: var(--bg); color: #fff; padding: 80px 0 36px; position: relative; overflow: hidden; }
.footer .dotgrid { position: absolute; inset: 0; opacity: .26; -webkit-mask-image: radial-gradient(70% 80% at 50% 100%, #000, transparent 72%); mask-image: radial-gradient(70% 80% at 50% 100%, #000, transparent 72%); }
.footer-cta { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid var(--d-line); }
.footer-cta h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.0; }
.footer-cols { position: relative; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 44px 0; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-ink-4); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--d-ink-3); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--link); }
.wordmark { position: relative; font-weight: 800; letter-spacing: -.05em; line-height: .8; font-size: clamp(70px, 17vw, 280px); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 18px 0 0; user-select: none; }
.footer-bottom { position: relative; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--d-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--d-ink-4); font-family: var(--mono); letter-spacing: .04em; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--d-ink-3); transition: color .2s; }
.to-top:hover { color: var(--link); }

/* ---- dark-mode icon stroke overrides (beat inline presentation attrs) ---- */
.step .dot svg { stroke: var(--link); transition: stroke .4s, transform .45s cubic-bezier(.2,.7,.3,1); }
.step:hover .dot svg { stroke: var(--link-ink); }
.step:nth-child(1):hover .dot svg { animation: ico-scan .6s cubic-bezier(.2,.7,.3,1); }
.step:nth-child(2):hover .dot svg { animation: ico-launch .6s cubic-bezier(.2,.7,.3,1); }
.step:nth-child(3):hover .dot svg { animation: ico-assemble .6s cubic-bezier(.2,.7,.3,1); }
.step:nth-child(4):hover .dot svg { animation: ico-fly .6s cubic-bezier(.2,.7,.3,1); }
@keyframes ico-scan { 0%{transform:none} 40%{transform:scale(1.22) rotate(-12deg)} 70%{transform:scale(1.05) rotate(4deg)} 100%{transform:none} }
@keyframes ico-launch { 0%{transform:none} 45%{transform:translate(3px,-4px) scale(1.16)} 100%{transform:none} }
@keyframes ico-assemble { 0%{transform:none} 50%{transform:rotate(90deg) scale(1.12)} 100%{transform:rotate(0) scale(1)} }
@keyframes ico-fly { 0%{transform:none} 40%{transform:translate(4px,-4px) rotate(8deg) scale(1.12)} 100%{transform:none} }
.contact .links a .ic svg { stroke: var(--link); }
.contact .links a .ic { background: rgba(217,244,0,.12); border-color: rgba(217,244,0,.3); }
