/* I MADE A BUG: Services page (services-v1). Built on the approved system (tokens, type, nav, footer, texture rules, Toon V1
   Bug, project art, orbit). One consolidated page: three equal areas + gamification across them + a concise process + CTA. */

/* ---------- HERO: centred; a big Bug rises from behind the bottom edge (head and antennae only) ---------- */
.v-hero { position: relative; overflow: hidden; --rs: clamp(300px, 34vw, 480px); border-bottom: 1px solid var(--line); }   /* the ledge the Bug peeks over */
.v-hero .wrap { position: relative; text-align: center; padding-top: clamp(56px, 7vw, 108px); padding-bottom: calc(var(--rs) * 0.58 + 28px); }
.v-hero h1 { position: relative; z-index: 55; font: 700 clamp(44px, 6.4vw, 100px)/.92 var(--display); text-transform: uppercase; max-width: 11em; margin: 0 auto; text-wrap: balance; }
.v-hero .lead { margin: 22px auto 0; max-width: 32em; font-size: clamp(16.5px, 1.35vw, 19.5px); line-height: 1.6; }
.v-hero .ways { position: relative; z-index: 55; margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; font-weight: 500; }
.v-hero .ways a { transition: color .25s var(--ease), border-color .15s; }
.v-hero .ways a:hover, .v-hero .ways a:focus-visible { color: var(--lime); }
.rise-stage { position: absolute; left: 50%; bottom: 0; width: var(--rs); aspect-ratio: 1; transform: translate(-50%, 42%); }
.rise-still { position: absolute; inset: 0; width: 100%; height: 100%; }
html.svc-bug-live .rise-still, html.svc-bug-pending .rise-still { visibility: hidden; }

/* ---------- THE THREE AREAS: same anatomy, equal weight, a distinctive visual each ---------- */
.svc-area { position: relative; scroll-margin-top: 64px; }
.svc-area + .svc-area { border-top: 1px solid var(--line); }
.area-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-top: clamp(72px, 9vw, 132px); padding-bottom: clamp(72px, 9vw, 132px); }
.svc-area.flip .area-copy { order: 2; }
.svc-area .s-title { margin-top: 0; }
.area-lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.62; color: rgba(237,237,237,.86); max-width: 30em; }
.caps-title { margin-top: 32px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.caps { list-style: none; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 34em; }
.caps li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.45; color: rgba(237,237,237,.82); }
.caps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--lime); }

/* Game Development: our three games, fanned */
.fan { position: relative; aspect-ratio: 1.1; }
.fan-card { position: absolute; display: block; text-decoration: none; color: var(--white); transition: transform .5s var(--ease); }
.fan-art { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--panel); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.fan-art > img:only-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.fan .c1 { left: 0; top: 0; width: 66%; transform: rotate(-3.5deg); z-index: 1; } .fan .c1 .fan-art { aspect-ratio: 16 / 9; }
.fan .c2 { right: 0; top: 24%; width: 60%; transform: rotate(3deg); z-index: 2; } .fan .c2 .fan-art { aspect-ratio: 16 / 9; }
.fan .c3 { left: 12%; bottom: 0; width: 54%; transform: rotate(-1.5deg); z-index: 3; } .fan .c3 .fan-art { aspect-ratio: 3 / 2; }
.fan-card:hover, .fan-card:focus-visible { transform: rotate(0deg) translateY(-6px); z-index: 4; }
.fan .art-tapfast .phone { height: 104%; }
/* Ataxx: the official transparent promo on the game's own blue background (as on the live site), instead of a flattened black copy */
.art-ataxx-promo { background: url("ataxx-bg.jpg") center / cover; }

/* Interactive Experiences: Lendas da Madeira (coming soon) */
.ldm-map { display: block; border-radius: 4px; padding: 6% 8%; background: radial-gradient(ellipse at 50% 45%, #15405e 0%, #0d2233 55%, #0a1218 100%); }
.ldm-map img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.ldm-map:hover img { transform: scale(1.02); }
.ldm-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ldm-shots img { width: 100%; height: auto; aspect-ratio: 478 / 196; object-fit: cover; border-radius: 4px; }
.ldm-cap { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; font-weight: 500; }
.ldm-cap .tags { font: 400 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--faint); }

/* Digital Products: the Technical Bug inside the orbit (no product imagery to show yet, so none is invented) */
.orbit-bug { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.ob-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ob-orbit * { vector-effect: non-scaling-stroke; }
.orbit-bug .o-lines { opacity: .28; }
.ob-bug { position: absolute; left: 17%; top: 17%; width: 66%; height: auto; aspect-ratio: 1; transform-origin: 50% 85%; }   /* centred without transform, so the hop can use it */
.svc-area:hover .ob-bug { animation: v-hop .7s cubic-bezier(.3,0,.3,1); }

/* ---------- GAMIFICATION: across the three areas (deep green pause) ---------- */
.v-gamify { background: var(--deep); position: relative; }
.v-gamify .wrap { text-align: center; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.g-head { position: relative; max-width: 40em; margin: 0 auto; }
.g-bug { width: clamp(130px, 12vw, 170px); height: auto; aspect-ratio: 1; margin: 0 auto; }
.g-point { position: absolute; left: calc(50% + clamp(26px, 2.4vw, 36px)); top: clamp(4px, 0.8vw, 12px); font: 700 15px/1 var(--display); color: var(--charcoal); background: var(--lime);
  border-radius: 999px; padding: 7px 9px 6px; transform: rotate(8deg); box-shadow: 0 0 0 4px rgba(165,255,61,.12); }
.g-head .s-title { margin-top: 10px; }
.g-head p { margin: 16px auto 0; color: rgba(237,237,237,.84); font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.62; max-width: 34em; }
.g-notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 4.5vw, 60px); position: relative; }
.g-notes::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 6px; border-top: 1px dashed rgba(165,255,61,.45); }
.g-notes li { position: relative; padding-top: 30px; }
.g-notes li::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--deep); border: 2px solid var(--lime); box-sizing: border-box; }
.g-notes h3 { font: 700 clamp(20px, 1.8vw, 26px)/1.05 var(--display); text-transform: uppercase; }
.g-notes p { margin: 10px auto 0; color: rgba(237,237,237,.78); font-size: 15.5px; line-height: 1.6; max-width: 20em; }

/* ---------- HOW WE WORK (concise) ---------- */
.v-steps .wrap { text-align: center; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.mini-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.mini-steps li { position: relative; padding-top: 30px; }
.mini-steps li::before { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--charcoal); border: 2px solid var(--lime); box-sizing: border-box; }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: calc(50% + 12px); right: calc(-50% + 12px - clamp(16px, 2.5vw, 40px)); border-top: 1px dashed rgba(165,255,61,.45); }
.mini-steps h3 { margin-top: 0; font: 700 clamp(22px, 2vw, 28px)/1 var(--display); text-transform: uppercase; }
.mini-steps p { margin: 10px auto 0; color: rgba(237,237,237,.78); font-size: 15.5px; line-height: 1.6; max-width: 17em; }

/* ---------- texture (the homepage's rules; hero = grain + light, areas = Bug-line pattern, gamification = the "why" grain) ---------- */
.tex .v-hero::before, .tex .svc-area::before, .tex .v-gamify::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tex2 .v-hero::before { background: radial-gradient(ellipse 820px 560px at 50% 100%, rgba(237,237,237,.055), rgba(237,237,237,.018) 45%, rgba(237,237,237,0) 72%),
  radial-gradient(ellipse 460px 320px at 50% 96%, rgba(165,255,61,.035), rgba(165,255,61,0) 70%); }
.tex .v-gamify { isolation: isolate; }

@media (prefers-reduced-motion: reduce) { .svc-area:hover .ob-bug, .fan-card, .ldm-map img, .v-hero .ways a { animation: none; transition: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .area-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-area.flip .area-copy { order: 0; }
  .area-visual { max-width: 640px; width: 100%; justify-self: center; }
  .orbit-bug { width: min(100%, 400px); }
  .mini-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .mini-steps li:nth-child(2)::after { display: none; }
}
/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .v-hero { --rs: min(78vw, 320px); }
  .v-hero .ways { flex-direction: column; align-items: center; gap: 10px; }
  .caps { grid-template-columns: 1fr; }
  .fan { aspect-ratio: auto; display: grid; gap: 22px; }
  .fan-card, .fan .c1, .fan .c2, .fan .c3 { position: relative; inset: auto; width: 100%; transform: none; }
  .g-notes { grid-template-columns: 1fr; gap: 0; }
  .g-notes::before { left: 50%; right: auto; top: 6px; bottom: 40px; border-top: 0; border-left: 1px dashed rgba(165,255,61,.45); }
  .g-notes li { padding: 30px 0 34px; background: var(--deep); }
  .mini-steps { grid-template-columns: 1fr; row-gap: 0; }
  .mini-steps li { padding-bottom: 52px; } .mini-steps li:last-child { padding-bottom: 0; }
  .mini-steps li:not(:last-child)::after { top: auto; bottom: 10px; left: 50%; right: auto; height: 32px; border-top: 0; border-left: 1px dashed rgba(165,255,61,.5); }
}
