/* kaioconde.dev — site styles (globe redesign) */
/* Layout: deep space + dotted globe behind; content floats in liquid-glass panels; everything in the blue family */
:root {
  --ink: #03050b;
  --fg: #eef1fa;
  --muted: #9aa3bf;
  --blue: #4f8cff;
  --cyan: #7fd8ff;
  --violet: #8b7bff;
  --del: #6f7a9c;                 /* before: faded */
  --del-bg: rgba(255, 255, 255, .025);
  --ins: #7fd8ff;                 /* after: bright cyan */
  --ins-bg: rgba(79, 140, 255, .14);
  --pale: #b9cdff;
  --glass: rgba(255, 255, 255, .055);
  --glass-hi: rgba(255, 255, 255, .16);
  --glass-edge: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .08);
  --font-sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--fg); font: 400 17px/1.65 var(--font-sans); overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* space */
.space { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 78% 18%, rgba(139,123,255,.16), transparent 70%),
    radial-gradient(45% 40% at 12% 70%, rgba(79,140,255,.13), transparent 70%),
    radial-gradient(30% 25% at 55% 95%, rgba(127,216,255,.10), transparent 70%),
    var(--ink); }
#globe { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(3,5,11,.9) 100%); }

/* liquid glass */
.glass {
  position: relative; border-radius: 22px; isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 45%, rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(255,255,255,.03),
    inset 0 0 0 1px var(--glass-edge),
    0 30px 80px -30px rgba(0,0,0,.7);
}
.glass::after { /* specular rim, brighter at the top-left */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, rgba(255,255,255,.35), rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(127,216,255,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* nav: no container, just type over a soft fade; tucks away while scrolling down */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 10; padding: calc(env(safe-area-inset-top, 0px) + 18px) clamp(16px, 4vw, 48px) 28px;
  background: linear-gradient(to bottom, rgba(3,5,11,.85), rgba(3,5,11,.5) 55%, rgba(3,5,11,0));
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .6s ease; }
.nav.tucked { transform: translateY(-100%); }
.nav-inner { max-width: 1180px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-word { font: 400 13px/1 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.brand-word b { font-weight: 600; color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-links { position: relative; list-style: none; display: flex; gap: clamp(18px, 2.4vw, 34px); margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 0; text-decoration: none; color: var(--muted); font-size: 14px; letter-spacing: .02em; transition: color .25s; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.nav-ind { position: absolute; left: 0; bottom: 0; height: 1px; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 10px rgba(127,216,255,.8);
  transition: transform .6s cubic-bezier(.22,1,.36,1), width .6s cubic-bezier(.22,1,.36,1), opacity .4s; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  color: var(--fg); font: 500 14px/1 var(--font-sans); background: rgba(79,140,255,.16); transition: background .25s; }
.nav-cta:hover { background: rgba(79,140,255,.3); }
.nav-cta .arr { width: 14px; height: 14px; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.nav-cta:hover .arr { transform: translateX(3px); }

/* HUD */
.hud { position: fixed; z-index: 10; left: clamp(16px, 4vw, 48px); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  font: 400 11px/1.5 var(--font-mono); color: var(--muted); display: flex; gap: 18px; pointer-events: none; font-variant-numeric: tabular-nums; }
.hud b { color: var(--cyan); font-weight: 400; }
.progress { position: fixed; z-index: 10; right: clamp(16px, 4vw, 48px); bottom: calc(env(safe-area-inset-bottom, 0px) + 27px); width: 120px; height: 2px; background: var(--line); border-radius: 2px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 2px; }

main { position: relative; z-index: 2; padding-inline: clamp(16px, 4vw, 48px); }
section { max-width: 1180px; margin-inline: auto; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative;
  font: 500 16px/1 var(--font-sans); padding: 15px 22px; border-radius: 14px; transition: box-shadow .2s, transform .15s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { color: #fff;
  background: linear-gradient(180deg, rgba(120,170,255,.95), rgba(60,118,240,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 6px rgba(20,40,120,.35), 0 0 0 1px rgba(120,170,255,.4), 0 14px 40px -12px var(--blue); }
.btn-solid:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(20,40,120,.35), 0 0 0 1px rgba(150,190,255,.6), 0 18px 50px -10px var(--blue); }
.btn-glass { color: var(--fg); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge); }
.btn-glass:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 999px; }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-color: var(--fg); }

/* hero */
.hero { min-height: 100svh; padding-block: clamp(130px, 19vh, 180px) 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { font: 600 clamp(38px, 6vw, 80px)/1.04 var(--font-sans); letter-spacing: -.04em; margin: 0; max-width: 14ch; text-wrap: balance; }
h1 em { font-style: normal; color: var(--blue); }
.typed { font: 500 clamp(15px, 1.4vw, 18px)/1.4 var(--font-mono); color: var(--cyan); margin-top: 20px; height: 1.4em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.typed::before { content: "> "; color: var(--muted); }
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -2px; background: var(--cyan); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .intro { max-width: 68ch; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 18px auto 0; text-wrap: balance; }
.hero .intro strong { color: var(--fg); font-weight: 500; }
.hero .actions { justify-content: center; }

/* console */
.console { margin-top: 36px; width: min(100%, 560px); text-align: left; border-radius: 18px; overflow: hidden; font: 400 13px/1.75 var(--font-mono); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.console-bar span { margin-left: 8px; }
.console-bar span:last-child { margin-left: auto; }
.console-body { padding: 12px 16px 14px; height: calc(4 * 1.75em + 26px); overflow: hidden; } /* fixed: always room for 4 lines, so nothing below moves */
.log-line { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
.log-line .h { color: var(--muted); opacity: .7; }
.log-line .t-fix { color: var(--cyan); } .log-line .t-feat { color: var(--blue); } .log-line .t-deploy { color: var(--pale); }
.log-line .m { overflow: hidden; text-overflow: ellipsis; color: var(--fg); }

h2 { font: 600 clamp(32px, 4vw, 52px)/1.06 var(--font-sans); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.lead { color: var(--fg); font-size: 19px; line-height: 1.55; margin: 18px 0 0; max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--muted); }

/* o que eu corrijo */
.services { min-height: 130vh; display: grid; align-items: center; padding-block: 14vh; }
.services-col { max-width: 620px; min-width: 0; }
.services-col h2, .services-col .lead { text-shadow: 0 2px 24px rgba(3,5,11,.9); }
.diff { margin-top: 32px; border-radius: 18px; overflow: hidden; font: 400 14px/1.5 var(--font-mono); }
.diff-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.diff-head b { font-weight: 500; } .diff-head .d { color: var(--del); } .diff-head .i { color: var(--ins); }
.hunk { border-bottom: 1px solid var(--line); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hunk:last-child { border-bottom: 0; }
.js .hunk.out { transform: translateX(-14px); }
.row { display: grid; grid-template-columns: 26px minmax(0, 1fr); padding: 7px 16px 7px 0; }
.row span:first-child { text-align: center; user-select: none; }
.row.d { background: var(--del-bg); } .row.d span:first-child { color: var(--del); }
.row.d span:last-child { color: var(--del); text-decoration: line-through; text-decoration-color: rgba(111,122,156,.6); }
.row.i { background: var(--ins-bg); } .row.i span:first-child { color: var(--ins); }
.row.i span:last-child { color: var(--fg); }
.also { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.also > div { position: relative; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.also > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--blue); }
.also h3 { margin: 0; font: 600 18px/1.3 var(--font-sans); }
.also p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* como funciona */
.process { min-height: 115vh; padding-block: 16vh 10vh; }
.process-head { max-width: 640px; }
.process-head h2, .process-head .lead { text-shadow: 0 2px 24px rgba(3,5,11,.9); }
.route { list-style: none; margin: 48px 0 0; padding: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
/* timeline above the cards: a canvas comet flies stop to stop; the card under the stop it reaches lights up */
.track { position: absolute; top: 7px; left: 31px; width: calc((100% - 40px) * 2 / 3 + 40px); height: 1px; background: rgba(127,216,255,.14); --p: 0%; }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: linear-gradient(90deg, rgba(127,216,255,.5), var(--cyan)); box-shadow: 0 0 8px rgba(127,216,255,.6); transition: opacity .5s; }
.track.warp .track-fill { opacity: 0; }
.comet-canvas { position: absolute; left: -60px; top: -40px; width: calc(100% + 120px); height: 80px; pointer-events: none; z-index: 2; }
.stop { position: absolute; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; z-index: 3;
  background: var(--ink); border: 2px solid rgba(127,216,255,.55); transition: background .4s, border-color .4s, box-shadow .4s; }
.stop:nth-of-type(1) { left: 0; } .stop:nth-of-type(2) { left: 50%; } .stop:nth-of-type(3) { left: 100%; }
.stop .fill { position: absolute; inset: 1px; border-radius: 50%; background: var(--cyan); transform: scale(0);
  transition: transform .55s cubic-bezier(.34,1.7,.6,1); }
.stop.last .fill { background: var(--blue); }
.stop.done { border-color: var(--cyan); box-shadow: 0 0 14px rgba(127,216,255,.75); }
.stop.done .fill { transform: scale(1); }
.stop.last.done { border-color: var(--blue); box-shadow: 0 0 20px var(--blue); }
.stop::before, .stop::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--cyan); opacity: 0; pointer-events: none; }
.stop.land::before { animation: ring 1s cubic-bezier(.2,.8,.2,1); }
.stop.land::after { animation: ring 1s .16s cubic-bezier(.2,.8,.2,1); }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.8); opacity: 0; } }
.route li { padding: 24px 24px 26px; min-width: 0; opacity: .66; will-change: transform;
  transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .7s ease, box-shadow .7s ease; }
.route li.active { opacity: 1; transform: translateY(-6px);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px rgba(127,216,255,.32), 0 26px 70px -26px rgba(79,140,255,.6); }
.route h3 { margin: 0; font: 600 clamp(20px, 2vw, 25px)/1.2 var(--font-sans); letter-spacing: -.02em; }
.route p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* projetos: satellites orbiting the globe; click one and it flies out into a full view */
.projects { min-height: 100vh; padding-block: 14vh 10vh; display: flex; flex-direction: column; }
.projects .sub { color: var(--muted); margin: 12px 0 0; }
.projects h2, .projects .sub { text-shadow: 0 2px 24px rgba(3,5,11,.9); }
.orbit { position: relative; margin-top: 24px; height: var(--orbit-h, 560px); touch-action: pan-y; user-select: none; cursor: grab; }
.orbit.grabbing, .orbit.grabbing .sat { cursor: grabbing; }
html.orbit-drag, html.orbit-drag * { cursor: grabbing !important; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(127,216,255,.16); }
.orbit-comet { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 8px #fff, 0 0 18px var(--cyan), 0 0 30px rgba(79,140,255,.7); }
.sat { position: absolute; left: 50%; top: 50%; width: var(--sat-w, 340px); margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; text-align: center; will-change: transform, opacity; transform-origin: 50% 50%; }
.sat-frame { display: block; border-radius: 16px; padding: 0 6px 6px; transition: box-shadow .3s; }
.sat .frame-bar { height: 30px; }
.sat .frame-bar .url { font-size: 9.5px; padding: 4px 8px; }
.sat:hover .sat-frame, .sat:focus-visible .sat-frame { box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px rgba(127,216,255,.45), 0 20px 60px -20px rgba(79,140,255,.7); }
.sat-name { display: block; margin-top: 12px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(3,5,11,.9); }
.sat.lifted { visibility: hidden; }
.orbit-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.orbit-ui button { width: 42px; height: 42px; border-radius: 50%; border: 0; color: var(--fg); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.orbit-caption { width: min(340px, 60vw); height: 52px; text-align: center; }
.orbit-desc { max-width: 46ch; height: 3.2em; margin: 6px auto 0; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; }
.sat-name { display: none; }
.orbit-hint .h-touch { display: none; }
.orbit-caption b { display: block; font-weight: 600; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; will-change: filter, opacity, transform; }
.orbit-caption span { display: block; margin-top: 4px; font: 400 12px/1.4 var(--font-mono); color: var(--cyan); white-space: pre; }
.orbit-caption span .gl { display: inline; margin: 0; color: var(--muted); opacity: .55; }
.orbit-dots { display: none; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; }
.orbit-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background .25s, width .25s; }
.orbit-dots i.on { width: 18px; border-radius: 3px; background: var(--cyan); }
.orbit-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; opacity: .8; }

/* browser frame shared by satellites and the expanded view */
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 8px; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); flex: none; }
.frame-bar .url { margin-left: 10px; flex: 1; min-width: 0; text-align: left; font: 400 11px/1 var(--font-mono); color: var(--muted);
  padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-bar .go { width: 26px; text-align: center; color: var(--muted); font-size: 13px; transition: color .2s; }
.pm-frame:hover .go { color: var(--cyan); }
.frame-view { display: block; border-radius: 11px; overflow: hidden; background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.frame-view img { display: block; width: 100%; max-width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
/* blurred ~100-byte preview shows instantly; the real screenshot fades in over it */
.frame-view.lq { position: relative; isolation: isolate; }
.frame-view.lq::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lq) top / cover no-repeat; filter: blur(12px) saturate(1.2); transform: scale(1.12); }
.frame-view.lq::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat; animation: shimmer 1.4s ease-in-out infinite; }
.frame-view.lq img { opacity: 0; transition: opacity .6s ease; }
.frame-view.lq.loaded img { opacity: 1; }
.frame-view.lq.loaded::after { display: none; }
@keyframes shimmer { to { background-position: 200% 0; } }

/* expanded project */
html.modal-open { overflow: hidden; }
.pm { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 24px) clamp(16px, 4vw, 48px) calc(env(safe-area-inset-bottom, 0px) + 24px);
  visibility: hidden; pointer-events: none; }
.pm.open { visibility: visible; pointer-events: auto; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(3,5,11,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .45s ease; }
.pm.open .pm-backdrop { opacity: 1; }
.pm.open.closing .pm-backdrop, .pm.closing .pm-close { opacity: 0; }
.pm-panel { position: relative; width: min(100%, 1180px); max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pm-frame { display: block; text-decoration: none; border-radius: 20px; padding: 0 8px 8px; transform-origin: 0 0; will-change: transform; }
.pm-frame .frame-view img { aspect-ratio: 2 / 1; }
.pm-text { min-width: 0; }
.pm-text > * { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1); }
.pm.open.ready .pm-text > * { opacity: 1; transform: none; }
.pm.open.ready .pm-text > :nth-child(2) { transition-delay: .05s; }
.pm.open.ready .pm-text > :nth-child(3) { transition-delay: .1s; }
.pm.open.ready .pm-text > :nth-child(4) { transition-delay: .15s; }
.pm.open.ready .pm-text > :nth-child(5) { transition-delay: .2s; }
.pm-text .domain { font: 400 13px/1 var(--font-mono); color: var(--cyan); }
.pm-text h3 { font: 600 clamp(32px, 3.6vw, 48px)/1.05 var(--font-sans); letter-spacing: -.035em; margin: 14px 0 0; }
.pm-text p { color: var(--muted); margin: 14px 0 0; max-width: 40ch; }
.pm-nav { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.pm-nav button { border: 0; cursor: pointer; }
.pm-count { margin-left: auto; font: 400 12px/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pm-close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 20px); right: clamp(16px, 4vw, 48px); width: 44px; height: 44px; border-radius: 50%; border: 0; z-index: 2;
  color: var(--fg); font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .3s .15s; }
.pm.open .pm-close { opacity: 1; }
.pm-panel.swap .pm-frame, .pm-panel.swap .pm-text > * { opacity: 0; transform: translateX(var(--swap, 30px)); transition: opacity .2s ease, transform .2s ease; }

/* contato: text floats over space, globe rises as a horizon below with Rio on top; one glass bar holds the contacts */
.contact { min-height: 100vh; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 16vh 34vh; }
.contact h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; text-shadow: 0 2px 30px rgba(3,5,11,.9); }
.contact .lead { color: var(--muted); max-width: 50ch; margin-inline: auto; text-shadow: 0 2px 20px rgba(3,5,11,.9); }
.reach { margin-top: 36px; display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: 22px; text-align: left; max-width: 100%; }
.reach-item { display: flex; align-items: center; gap: 12px; padding: 8px 18px; min-width: 0; }
.reach-item + .reach-item { border-left: 1px solid rgba(255,255,255,.1); }
.reach-item svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
.reach-item small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.reach-item b { display: block; font-weight: 500; font-size: 15px; line-height: 1.4; white-space: nowrap; }
.reach .btn { margin-left: 10px; flex: none; }
.copy { background: none; border: 0; padding: 4px 6px; margin-left: 2px; border-radius: 6px; color: var(--muted); font: 500 12px/1 var(--font-sans); cursor: pointer; }
.copy:hover { color: var(--cyan); background: rgba(255,255,255,.06); }
.socials { margin-top: 22px; display: flex; gap: 24px; justify-content: center; font-size: 15px; }
.socials a { color: var(--muted); text-decoration: none; transition: color .2s; }
.socials a:hover { color: var(--fg); }
.copyright { margin: 18px 0 0; font-size: 13px; color: var(--muted); opacity: .7; }
footer { position: relative; z-index: 2; text-align: center; color: var(--muted); font-size: 13px; padding: 40px 16px calc(env(safe-area-inset-bottom, 0px) + 70px); }

/* globe interaction */
html.globe-hover main, html.globe-hover section { cursor: grab; }
html.globe-drag, html.globe-drag * { cursor: grabbing !important; user-select: none; }
main, .nav, .explore-chip, .progress { transition: opacity .6s ease; }
html.exploring { overflow: hidden; }
html.exploring main, html.exploring .nav, html.exploring .explore-chip, html.exploring .progress { opacity: 0; pointer-events: none; }
html.exploring #globe { cursor: grab; touch-action: none; }
.explore-chip { position: fixed; z-index: 10; right: clamp(16px, 4vw, 48px); bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 10px; border: 0; border-radius: 999px; color: var(--fg); font: 500 13px/1 var(--font-sans); cursor: pointer;
  background: rgba(10,15,30,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px rgba(0,0,0,.7); transition: background .25s; }
.explore-chip:hover { background: rgba(79,140,255,.24); }
.explore-chip .mark { width: 22px; height: 22px; }
.explore-ui { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
html.exploring .explore-ui { opacity: 1; visibility: visible; }
.explore-ui > * { pointer-events: auto; }
.ex-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(clamp(16px, 4vw, 48px), calc((100% - 1180px) / 2)) 28px;
  background: linear-gradient(to bottom, rgba(3,5,11,.85), rgba(3,5,11,.45) 60%, rgba(3,5,11,0)); }
.ex-top .title { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
.ex-top .title .mark { width: 26px; height: 26px; }
.ex-close { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; flex: none;
  background: rgba(255,255,255,.07); color: var(--fg); font: 500 14px/1 var(--font-sans); transition: background .25s; }
.ex-close:hover { background: rgba(255,255,255,.13); }
.ex-top .btn { white-space: nowrap; flex: none; }
.ex-talk svg { width: 15px; height: 15px; }
.beta { display: inline-block; margin-left: 0; padding: 3px 8px; border-radius: 999px; vertical-align: 2px;
  font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(127,216,255,.4); cursor: help; }
.ex-count { margin-left: auto; font: 400 13px/1 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-top kbd { font: 400 11px/1 var(--font-mono); padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.08); margin-left: 4px; }
.ex-panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); width: min(calc(100% - 32px), 760px);
  padding: 14px 14px 14px 22px; border-radius: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ex-info { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.ex-info b { font-weight: 500; }
.ex-info span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.explore-ui > .ex-tag { position: absolute; left: 0; top: 0; pointer-events: none; padding: 7px 12px; border-radius: 10px;
  font: 500 13px/1.2 var(--font-sans); white-space: nowrap; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.explore-ui > .ex-tag.show { opacity: 1; }
.explore-ui > .ex-htag { padding: 6px 10px; font-size: 12px; transition: opacity .15s ease; }
.ex-tag small { display: block; font: 400 11px/1.3 var(--font-mono); color: var(--muted); margin-top: 2px; }
.ex-actions button { border: 0; cursor: pointer; }
.ex-levels { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line); }
.ex-levels button { border: 0; background: none; color: var(--muted); font: 500 13px/1 var(--font-sans); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.ex-levels button:hover { color: var(--fg); }
.ex-levels button[aria-pressed="true"] { background: rgba(79,140,255,.32); color: var(--fg); }
#ex-spin[aria-pressed="true"] { background: rgba(79,140,255,.28); }
.ex-hint span { display: inline-block; margin-top: 6px; opacity: .7; }
.ex-hint { text-align: center; line-height: 1.4; }
.ex-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); font: 400 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; pointer-events: none; }
@media (max-width: 860px) {
  .ex-count { display: none; }
  .ex-top { gap: 8px; }
  .ex-top .title { margin-right: auto; }
  .ex-top .t-long, .ex-top kbd { display: none; }
  .ex-talk { padding: 10px; }
  .ex-panel { bottom: calc(env(safe-area-inset-bottom, 0px) + 44px); padding: 14px; }
  .ex-hint { display: none; }
  .explore-chip { bottom: calc(env(safe-area-inset-bottom, 0px) + 44px); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
}
@media (max-width: 420px) {
  .brand-word { letter-spacing: .2em; }
  .nav-cta { padding: 9px 13px; }
}
@media (max-width: 860px) {
  .services { min-height: auto; padding-block: 46vh 10vh; }
  .services-col { background: rgba(3,5,11,.6); border-radius: 18px; padding: 20px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .diff { font-size: 13px; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .reach { flex-direction: column; align-items: stretch; width: 100%; padding: 10px; }
  .reach-item + .reach-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .reach-item { padding: 12px 10px; }
  .reach .btn { margin: 8px 0 0; justify-content: center; }
  .contact { padding-bottom: 28vh; }
  .route { grid-template-columns: minmax(0, 1fr); }
  .track { display: none; }
  .route li.active { transform: none; }
  .route { padding-top: 0; }
  .typed { font-size: 13.5px; } /* longest phrase fits one line on a 360px phone */
  .orbit { margin-top: 12px; }
  .orbit-ui { gap: 10px; }
  .orbit-ui button { width: 38px; height: 38px; }
  .orbit-caption { width: 58vw; }
  .orbit-caption b { font-size: 17px; }
  .orbit-desc { font-size: 14px; height: 4.8em; padding-inline: 8px; }
  .orbit-hint .h-desk { display: none; }
  .orbit-hint .h-touch { display: inline; }
  .pm-panel { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .pm-close { top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .hud span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .route li, .track-fill { transition: none; }
  .frame-view img, .btn, .hunk, .pm-backdrop, .pm-text > * { transition: none; }
  .frame-view.lq::after { animation: none; }
  .js .hunk.out { transform: none; }
}

/* devtools notice (see guard.js) */
html.dt-open { overflow: hidden; }
html.dt-open main, html.dt-open .nav, html.dt-open .explore-chip, html.dt-open .explore-ui, html.dt-open .pm, html.dt-open .hud, html.dt-open .progress, html.dt-open #globe { visibility: hidden; }
.dt-shield { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; text-align: center; background: var(--ink); }
html.dt-open .dt-shield { display: grid; }
.dt-shield b { display: block; font-size: 22px; font-weight: 600; }
.dt-shield span { display: block; margin-top: 8px; color: var(--muted); }

/* scrollbar in the space palette: dark track, cyan → blue → violet thumb */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { border-radius: 10px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, var(--cyan), var(--blue) 55%, var(--violet)); }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { border-width: 2px; }
::-webkit-scrollbar-corner { background: var(--ink); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--blue) var(--ink); }
}
