/* I MADE A BUG — Homepage V3: centered, editorial, typography-led.
   One centered column system (1160px), one section rhythm, one heading style. The mascot lives in the hero
   (the live Bug) and in the studio section (the three characters). Nowhere else. */
@font-face { font-family: "MarvinVisions"; src: url("MarvinVisions-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
:root {
  --charcoal: #0B0E0C; --ink: #070908; --panel: #131714; --paper: #E8E6E0; --white: #EDEDED; --lime: #A5FF3D;
  --muted: rgba(237,237,237,.7); --faint: rgba(237,237,237,.48); --line: rgba(237,237,237,.11);
  --display: "MarvinVisions", "Schibsted Grotesk", sans-serif; --body: "Schibsted Grotesk", system-ui, sans-serif; --mono: "Martian Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 48px); --wrap: 1160px; --sec: clamp(64px, 7.5vw, 104px); --measure: 34em;
  --ease: cubic-bezier(.6,0,.2,1); --out: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--charcoal); color: var(--white); scroll-behavior: smooth; }
body { font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 3px; }
.lime { color: var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 700 12px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px; border-radius: 4px; border: 0; cursor: pointer; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .15s; }
.btn-lime { background: var(--lime); color: var(--charcoal); } .btn-lime:hover { background: #b6ff63; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(237,237,237,.28); } .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--white); }
.btn:active { transform: translateY(1px); }
.textlink { text-decoration: none; border-bottom: 1px solid rgba(237,237,237,.32); padding-bottom: 1px; transition: border-color .15s; }
.textlink:hover { border-color: var(--white); }

/* nav */
.site-nav { position: sticky; top: 0; z-index: 60; background: rgba(11,14,12,.92); backdrop-filter: saturate(1.2) blur(6px); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1 var(--display); letter-spacing: .02em; text-decoration: none; }
.logo img { height: 20px; width: auto; }
.site-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; font-weight: 500; font-size: 14px; }
.site-nav ul a { text-decoration: none; color: var(--muted); transition: color .15s; } .site-nav ul a:hover { color: var(--white); }
.site-nav .btn { padding: 10px 14px; font-size: 11px; }

/* hero: one centered column, the Bug sits on top of the headline */
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(8px, 2vw, 24px); padding-bottom: var(--sec); }
.hero .stage { position: relative; width: clamp(200px, 22vw, 270px); }
.hero .spot-hero { width: 100%; }
.hero h1 { font: 700 clamp(38px, 4.6vw, 64px)/.98 var(--display); text-transform: uppercase; letter-spacing: .005em; margin-top: 4px; }
.hero h1 .l1 { display: block; font-size: .56em; color: rgba(237,237,237,.56); margin-bottom: .22em; }
.hero h1 .l2 { display: block; }
.hero .sub { margin: 20px auto 0; font-size: clamp(16px, 1.25vw, 17.5px); color: var(--muted); max-width: 31em; }
.hero .ctas { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* bug spots */
.bug-spot { position: relative; aspect-ratio: 1; }
.bug-spot .bug-still { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.bug-spot .still-sleep { display: none; }
html.live .bug-spot .bug-still { opacity: 0; }
.bug-spot .bug-hit { position: absolute; inset: 14% 22% 8%; border: 0; background: transparent; border-radius: 40%; cursor: pointer; }
html.live .bug-shadow { opacity: 0; }
.bug-shadow { position: absolute; left: 50%; bottom: 6%; width: 40%; height: 6%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.5), rgba(0,0,0,0) 70%); }
.say { position: fixed; z-index: 70; left: 0; top: 0; max-width: 220px; font: 500 13px/1.35 var(--body); color: var(--charcoal); background: var(--white); border-radius: 10px;
  padding: 8px 11px; opacity: 0; transform: translate(-50%, -6px) scale(.96); transition: opacity .18s, transform .18s; pointer-events: none; }
.say.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.say::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--white); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }

/* sections: centered head, one rhythm */
.sec { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 40em; margin: 0 auto clamp(32px, 4vw, 52px); }
.h2 { font: 700 clamp(28px, 2.9vw, 38px)/1.04 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.sec-head .lead { margin: 14px auto 0; }
.lead { color: var(--muted); font-size: 16.5px; max-width: var(--measure); }
.h2, .hero h1 { text-wrap: balance; }
h3 { font: 700 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }

/* what we do: type only, a cross of hairlines */
.svc { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; }
.svc article { padding: clamp(28px, 3.2vw, 44px) clamp(20px, 3vw, 44px); text-align: center; }
.svc article:nth-child(odd) { border-right: 1px solid var(--line); }
.svc article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.svc p { color: var(--muted); font-size: 15.5px; margin: 10px auto 0; max-width: 27em; }

/* work: identical 2x2 */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 32px; }
.work article { text-align: center; }
.work .art { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--panel); }
.work .art > * { transition: transform .5s var(--ease); }
.work article:hover .art > * { transform: scale(1.03); }
.work h3 { margin-top: 20px; }
.work .meta { font-size: 13.5px; color: var(--faint); margin-top: 6px; }
.work p.d { color: var(--muted); font-size: 15.5px; margin: 8px auto 0; max-width: 30em; }
.work .links { display: flex; gap: 18px; justify-content: center; margin-top: 12px; font-size: 13.5px; font-weight: 500; }
.art-ldm { background: radial-gradient(ellipse at 50% 45%, #15405e 0%, #0d2233 55%, #0a1218 100%) !important; }
.art-ldm .map { position: absolute; left: 50%; top: 50%; width: 76%; transform: translate(-50%, -50%); }
.work article:hover .art-ldm .map { transform: translate(-50%, -50%) scale(1.03); }
.art-ataxx { background: url("ataxx-bg.jpg") center / cover !important; }
.art-ataxx .phone { position: absolute; height: 108%; left: 50%; bottom: -20%; transform: translateX(-50%) rotate(5deg); }
.art-ataxx .icon { position: absolute; left: 6%; top: 8%; width: 15%; border-radius: 18%; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.art-tapfast { background: url("tapfast-wall.jpg") center 75% / cover !important; }
.art-tapfast .phone { position: absolute; height: 108%; left: 50%; bottom: -22%; transform: translateX(-50%) rotate(-4deg); }
.art-tapfast .icon { position: absolute; left: 5%; top: 6%; width: 21%; }
.art-wordsort { background: url("wordsort-wall.jpg") center / cover !important; }
.work article:hover .art-ataxx .phone { transform: translateX(-50%) rotate(5deg) scale(1.03); }
.work article:hover .art-tapfast .phone { transform: translateX(-50%) rotate(-4deg) scale(1.03); }

/* why */
.why .sec-head { margin-bottom: 0; }
.why-text { font: 400 clamp(17px, 1.45vw, 19.5px)/1.65 var(--body); color: var(--muted); max-width: 33em; margin: 18px auto 0; }
.why-text em { font-style: normal; color: var(--white); }

/* studio: three Bugs, equal weight */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 0 auto; }
.member { text-align: center; }
.member .pic { background: var(--paper); border-radius: 4px; aspect-ratio: 1; overflow: hidden; position: relative; }
.member .pic img { position: absolute; left: 50%; bottom: -3%; height: 100%; width: auto; transform: translateX(-50%); transition: transform .35s var(--ease); }
.member:hover .pic img { transform: translateX(-50%) translateY(-5px) rotate(-3deg); }
.member h3 { margin-top: 18px; }
.member p { color: var(--muted); margin: 8px auto 0; font-size: 15.5px; max-width: 22em; }

/* contact */
.contact { text-align: center; }
.contact .sec-head { margin-bottom: 0; }
.contact .mail { display: inline-block; margin-top: 26px; font: 700 clamp(22px, 2.3vw, 30px)/1.1 var(--body); text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.contact .cta { margin-top: 26px; }
.contact .socials { display: flex; gap: 20px; justify-content: center; margin-top: 26px; font-size: 13.5px; color: var(--muted); }

/* footer: quiet, centered */
footer.site-foot { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; color: var(--muted); text-align: center; }
.foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 16px; list-style: none; }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--white); }
.site-foot .logo { justify-content: center; }
.legal { display: flex; justify-content: center; gap: 20px; margin-top: 28px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.legal button { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.legal button:hover { color: var(--white); }

/* mobile: same hierarchy, re-composed (not shrunk) */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  :root { --sec: 60px; }
  .site-nav ul li:not(:last-child) { display: none; }
  .site-nav .wrap { height: 56px; }
  .hero .stage { width: 184px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 40px); }
  .hero .ctas { flex-direction: column; align-self: stretch; } .hero .ctas .btn { width: 100%; }
  .h2 { font-size: 27px; }
  .lead { font-size: 15.5px; }
  .svc { grid-template-columns: 1fr; }
  .svc article { padding: 26px 4px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .svc article:last-child { border-bottom: 0; }
  .work { grid-template-columns: 1fr; gap: 44px; }
  .trio { grid-template-columns: 1fr; gap: 36px; }
  .member .pic { width: 46%; margin: 0 auto; }
  .trio { gap: 30px; }
  .contact .mail { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
