/* Deltify Home v2 — values from the current deltify.pt: background #141414, blues #007AFF / #2EA3F2, REM.
   JetBrains Mono only for the technical details. */
:root {
  --bg: #141414; --bg-2: #0e0e11; --card: #1a1a1f; --ink: #fff; --ink-2: #ccc; --ink-3: #6e6e78;
  --line: rgba(255,255,255,.1); --blue: #007aff; --blue-2: #2ea3f2;
  --gutter: clamp(16px, 4vw, 64px); --section: clamp(88px, 14vh, 168px); --ease: cubic-bezier(.22,1,.36,1);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: REM, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.tag::before { content: "// "; color: var(--ink-3); }
h2.big { font-size: clamp(40px, 6vw, 96px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 18px; }

/* grão + linhas finas de ecrã */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 95; opacity: .035;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); }

/* ---------- cursor ---------- */
.cur, .cur-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; border-radius: 50%; translate: -50% -50%; }
.cur { width: 6px; height: 6px; background: var(--blue-2); }
.cur-ring { width: 34px; height: 34px; border: 1px solid rgba(46,163,242,.6); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cur-ring.is-big { width: 70px; height: 70px; background: rgba(0,122,255,.12); border-color: var(--blue); }
@media (hover: none) { .cur, .cur-ring { display: none; } }

/* ---------- topo ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; box-shadow: 0 0 10px var(--blue); }
.top { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); transition: transform .5s var(--ease), background .4s; }
.top.is-solid { background: rgba(20,20,20,.72); backdrop-filter: blur(14px); }
.top.is-hidden { transform: translateY(-100%); }
.top img { height: 22px; }
.top__right { display: flex; align-items: center; gap: 28px; }
.lang { font-family: var(--mono); font-size: 12px; color: var(--ink-3); } .lang b { color: var(--blue); font-weight: 500; }
.burger { width: 34px; height: 22px; position: relative; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; right: 0; height: 2px; background: #fff; transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 2px; width: 100%; } .burger span:nth-child(2) { top: 10px; width: 70%; } .burger span:nth-child(3) { top: 18px; width: 45%; }
.menu-open .burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { width: 0; }
.menu-open .burger span:nth-child(3) { top: 10px; width: 100%; transform: rotate(-45deg); }
.overlay { position: fixed; inset: 0; z-index: 99; background: var(--bg-2); display: grid; align-content: center; padding: 0 var(--gutter); clip-path: circle(0% at calc(100% - var(--gutter) - 17px) 33px); visibility: hidden; }
.overlay a { display: block; font-size: clamp(40px, 8vw, 104px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.overlay a .n { font-family: var(--mono); font-size: 14px; color: var(--blue-2); vertical-align: top; margin-right: 18px; font-weight: 400; }
.overlay a:hover { color: var(--blue); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; overflow: hidden; isolation: isolate; }
.hero__grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 65% 40%, #000, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 65% 40%, #000, transparent 72%); }
.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ambient i { position: absolute; border-radius: 50%; translate: -50% -50%; }
.ambient .a1 { width: 75vmax; height: 75vmax; left: 72%; top: 30%; background: radial-gradient(circle, rgba(0,122,255,.42) 0%, rgba(0,70,190,.16) 38%, transparent 66%); }
.ambient .a2 { width: 55vmax; height: 55vmax; left: 20%; top: 95%; background: radial-gradient(circle, rgba(46,163,242,.2) 0%, transparent 62%); }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(56px, 11.5vw, 190px); line-height: .9; font-weight: 700; letter-spacing: -.035em; margin: 22px 0 34px; }
.hero h1 .l { display: block; }
.hero { grid-template-columns: minmax(0, 1fr); } /* the title can never widen the hero */
.word { display: inline; }
.word .wd { display: inline-flex; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.word .ch { display: inline-block; }
.word .wd .caret { align-self: flex-end; margin: 0 0 .16em .08em; flex: none; } /* glued to the last word */
.caret { display: inline-block; width: .36em; height: .07em; background: var(--blue); margin-left: .08em; vertical-align: .12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); max-width: 32ch; }
.sweep { position: absolute; z-index: 3; background: var(--blue); pointer-events: none; box-shadow: 0 0 24px rgba(0,122,255,.9), 0 0 60px rgba(0,122,255,.5); border-radius: 2px; }
.hud { position: absolute; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.hud--bl { left: var(--gutter); bottom: 5vh; } .hud--tr { right: var(--gutter); top: 96px; text-align: right; }
.hud b { color: var(--blue-2); font-weight: 500; }
.side { position: absolute; z-index: 2; left: calc(var(--gutter) * .45); bottom: 22vh; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase; }
.badge { position: absolute; z-index: 2; right: calc(var(--gutter) + 4vw); bottom: 9vh; width: 132px; height: 132px; display: grid; place-items: center; }
.badge svg.ring { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge svg.ring text { fill: #fff; font-size: 10.5px; font-weight: 500; }
.badge span { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 40px rgba(0,122,255,.55); }
@keyframes spin { to { transform: rotate(360deg); } }
/* o scroll apaga a interface do hero por esta variável, sem lutar com a animação de entrada */
.hero__inner, .side, .badge, .hud, .ambient { opacity: var(--ui, 1); }
.hero__grid { opacity: calc(.55 * var(--ui, 1)) !important; }
.wipe { position: fixed; z-index: 4; background: var(--blue); pointer-events: none; opacity: 0; transform-origin: 0 0; }

/* ---------- sobre nós (azul: continua a cor do traço) ---------- */
.about { position: absolute; inset: 0; z-index: 5; padding: 0 var(--gutter); display: grid; align-content: center; opacity: 0; pointer-events: none; }
.about .tag { color: #fff; } .about .tag::before { color: rgba(255,255,255,.6); }
.about__statement { font-size: clamp(30px, 4.2vw, 68px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; max-width: 20ch; margin-top: 24px; }
/* letras que aparecem da esquerda para a direita; as palavras nunca partem a meio */
.fw { white-space: nowrap; }
.fl { display: inline-block; }
/* palavras que sobem por trás de uma máscara */
.mw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.mw > span { display: inline-block; will-change: transform; }
.about__sub { margin-top: 32px; color: rgba(255,255,255,.85); max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.about__code { position: absolute; right: var(--gutter); top: 18vh; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.55); text-align: right; }

/* ---------- números ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: var(--section) 0; perspective: 1000px; }
.stat { --mx: 50%; --my: 50%; position: relative; padding: 32px; border-radius: 20px; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #1d1d22, #121215); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s; }
.stat::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(0,122,255,.22), transparent 60%); }
.stat:hover { border-color: rgba(0,122,255,.5); } .stat:hover::after { opacity: 1; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform: scaleX(var(--sx, 0)); transform-origin: 0 50%; }
.stat__n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.stat__v { display: flex; align-items: baseline; font-size: clamp(64px, 7.5vw, 128px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 40px 0 18px; }
.stat__v .suf { color: var(--blue); margin-left: .04em; display: inline-block; }
.odo { display: inline-flex; } .odo__col { display: inline-block; height: 1em; line-height: 1; clip-path: inset(0 -50%); } .odo__col > span { display: flex; flex-direction: column; align-items: center; }
.stat__t { font-size: 18px; font-weight: 600; line-height: 1.25; }
.stat__d { margin-top: 12px; color: var(--ink-3); font-size: 15px; line-height: 1.55; max-width: 32ch; }

/* ---------- impacto + work ---------- */
.impact { padding-block: var(--section) 0; text-align: center; }
.impact h2 { font-size: clamp(40px, 7vw, 120px); line-height: .98; font-weight: 700; letter-spacing: -.03em; }
.impact h2 em { font-style: normal; color: var(--blue); }

/* ---------- projetos: o "_" corre e desbloqueia ---------- */
.work { position: relative; overflow: hidden; }
.work__track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; align-items: flex-end; }
.work__head { width: min(400px, 80vw); flex: none; align-self: center; }
.work__head h3 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.02em; margin-top: 18px; }
.work__head p { color: var(--ink-3); margin-top: 16px; line-height: 1.6; font-size: 15px; }
.work__hud { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(9vh + 22px); text-align: right; font-family: var(--mono); }
.work__hud .t { font-size: 11px; letter-spacing: .14em; color: var(--blue-2); text-transform: uppercase; }
.work__hud .n { font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.work__hud .n small { font-size: 16px; color: var(--ink-3); font-weight: 400; }
.work__end { flex: none; width: min(380px, 80vw); align-self: center; padding-left: 20px; opacity: .25; transition: opacity .6s; }
.work__end.on { opacity: 1; }
.work__end h3 { font-size: clamp(34px, 3.2vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -.02em; margin: 16px 0 28px; }
.card { --mx: 50%; --my: 50%; width: min(400px, 82vw); height: min(56vh, 520px); flex: none; position: relative; border-radius: 18px; padding: 28px;
  background: linear-gradient(160deg, #1d1d22 0%, #121215 100%); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: border-color .5s, filter .5s, opacity .5s; filter: saturate(0); opacity: .55; }
.card.open { filter: none; opacity: 1; border-color: rgba(0,122,255,.65); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0,122,255,.28), transparent 60%); }
.card.open:hover::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.card__tag { color: var(--blue-2); text-transform: uppercase; }
.card__lock { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 18px; transition: opacity .4s; }
.card.open .card__lock { opacity: 0; }
.card__name { font-size: clamp(28px, 2.4vw, 38px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin-top: auto; }
.card__desc { color: var(--ink-2); margin-top: 14px; line-height: 1.55; font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--ease), opacity .6s .2s; }
.card.open .card__desc { max-height: 200px; opacity: 1; }
.card__orb { position: absolute; width: 240px; height: 240px; border-radius: 50%; top: -80px; right: -80px; z-index: -1; filter: blur(30px); opacity: 0; transition: opacity .8s; }
.card.open .card__orb { opacity: .55; }
.plus1 { position: absolute; z-index: 5; font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--blue-2); pointer-events: none; text-shadow: 0 0 14px var(--blue); }
.ground { position: absolute; left: 0; right: 0; bottom: 9vh; height: 1px; background: var(--line); z-index: 1; }
.ground::after { content: ""; position: absolute; inset: 6px 0 auto; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 14px, transparent 14px 40px); background-position-x: var(--gx, 0); }
.runner { position: absolute; z-index: 4; left: 26vw; bottom: 9vh; width: 46px; height: 30px; cursor: pointer; }
.runner__body { position: absolute; left: 0; bottom: 14px; width: 46px; height: 12px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 18px rgba(0,122,255,.9); transform-origin: 50% 100%; }
.runner__leg { position: absolute; bottom: 0; width: 2px; height: 15px; background: var(--blue-2); border-radius: 2px; transform-origin: 50% 0; top: 15px; }
.runner__leg.l1 { left: 13px; } .runner__leg.l2 { left: 31px; }
.runner.run .l1 { animation: legA .28s linear infinite; } .runner.run .l2 { animation: legB .28s linear infinite; }
@keyframes legA { 0%,100% { transform: rotate(35deg); } 50% { transform: rotate(-35deg); } }
@keyframes legB { 0%,100% { transform: rotate(-35deg); } 50% { transform: rotate(35deg); } }
.runner.back { scale: -1 1; }

/* ---------- trusted by ---------- */
.trusted { padding-block: var(--section); }
.trusted .tag { display: block; text-align: center; margin-bottom: 7vh; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; gap: 90px; padding-right: 90px; align-items: center; flex: none; }
.marquee__row img { height: 46px; width: auto; max-width: 180px; object-fit: contain; opacity: .55; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s; }
.marquee__row img:hover { opacity: 1; filter: none; }

/* ---------- serviços ---------- */
.services { padding-block: var(--section); }
.services__head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.services__head h2 { font-size: clamp(28px, 3vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -.015em; max-width: 26ch; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; border-radius: 99px; background: var(--blue); font-weight: 600; position: relative; overflow: hidden; isolation: isolate; border: 0; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.btn::after { content: ""; position: absolute; inset: 0; background: #fff; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover { color: var(--bg); } .btn:hover::after { transform: translateY(0); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8vh; }
.svc { container-type: inline-size; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: linear-gradient(160deg, #1b1b20, #121215); position: relative; overflow: hidden; transition: border-color .4s, transform .5s var(--ease); }
.svc:hover { border-color: rgba(0,122,255,.5); transform: translateY(-6px); }
.svc svg { width: 100%; height: 170px; display: block; margin-bottom: 24px; }
.svc svg .s { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc svg .b { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(0,122,255,.8)); }
.svc svg .f { fill: var(--blue); }
.svc__n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.svc h3 { overflow-wrap: break-word; font-size: min(46px, 11.5cqi); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-top: 8px; }
.svc h3 small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); margin-top: 10px; }
.svc p { color: var(--ink-2); line-height: 1.6; margin-top: 16px; font-size: 15px; }

/* ---------- testemunhos: conversa ---------- */
.testi { padding-block: var(--section); display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; }
.testi__intro p { color: var(--ink-3); margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.chat { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.chat__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.chat__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.chat__bar i:first-child { background: var(--blue); }
.chat__bar span { margin-left: 8px; }
.chat__body { height: 420px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; }
.msg { max-width: 88%; }
.msg__who { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.msg__who b { color: var(--blue-2); font-weight: 500; }
.msg__bubble { background: #1e1e25; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 16px 18px; line-height: 1.55; font-size: 15.5px; color: var(--ink-2); }
.msg.me { align-self: flex-end; }
.msg.me .msg__bubble { background: var(--blue); color: #fff; border: 0; border-radius: 18px 4px 18px 18px; }
.typing { display: inline-flex; gap: 5px; padding: 14px 18px; background: #1e1e25; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ---------- contacto: terminal ---------- */
.contact { position: relative; padding-block: var(--section) 40px; overflow: hidden; border-top: 1px solid var(--line); }
.contact__glow { position: absolute; width: 80vmax; height: 80vmax; left: 50%; bottom: -60vmax; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(0,122,255,.45), transparent 60%); pointer-events: none; }
.contact h2 { font-size: clamp(54px, 10vw, 170px); font-weight: 700; letter-spacing: -.04em; line-height: .92; position: relative; }
.contact h2 .q { color: var(--blue); display: inline-block; cursor: pointer; }
.contact__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; margin-top: 8vh; position: relative; }
.contact__intro { color: var(--ink-2); line-height: 1.6; font-size: 18px; max-width: 48ch; margin-bottom: 26px; }
.term { border: 1px solid var(--line); border-radius: 16px; background: rgba(14,14,17,.85); overflow: hidden; font-family: var(--mono); }
.term__bar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; } .term__bar i:first-child { background: var(--blue); }
.term__bar span { margin-left: 8px; }
.term form { padding: 20px 20px 24px; display: grid; gap: 6px; }
.term label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; }
.term label > span { color: var(--blue-2); padding-top: 10px; white-space: nowrap; }
.term label > span::before { content: "$ "; color: var(--ink-3); }
.term input, .term textarea { background: transparent; border: 0; border-bottom: 1px dashed var(--line); color: #fff; font: inherit; font-size: 14px; padding: 10px 0; outline: none; caret-color: var(--blue); resize: vertical; }
.term input:focus, .term textarea:focus { border-bottom-color: var(--blue); }
.term textarea { min-height: 90px; }
.term .btn { margin-top: 18px; justify-self: start; font-family: var(--mono); font-size: 14px; }
.term__out { font-size: 13px; color: var(--blue-2); min-height: 20px; margin-top: 6px; }
.term__out.is-error { color: #ff7a7a; }
.term__out.is-ok { color: #7ee2a8; }
.term label.is-bad input, .term label.is-bad textarea { border-bottom-color: #ff7a7a; }
.term label.is-ok input, .term label.is-ok textarea { border-bottom-color: rgba(126,226,168,.6); }
.term label > span { transition: color .3s; }
.term label.is-bad > span { color: #ff7a7a; }
.term label.is-ok > span::after { content: " ✓"; color: #7ee2a8; }
.term__err { grid-column: 2; display: block; font-style: normal; font-size: 12px; line-height: 1.4; color: #ff7a7a; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-4px); transition: max-height .35s var(--ease), opacity .3s, transform .35s var(--ease); }
.term__err::before { content: "! "; font-weight: 700; }
.term label.is-bad .term__err { max-height: 40px; opacity: 1; transform: none; margin: 6px 0 4px; }
.term .btn[disabled] { opacity: .6; pointer-events: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* only bots fill it */
.grecaptcha-badge { visibility: hidden; } /* Google allows hiding the badge when the form says it is protected */
.offices { display: grid; gap: 30px; align-content: start; }
.office h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--blue-2); font-weight: 500; margin-bottom: 10px; }
.office p { color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.office small { color: var(--ink-3); font-size: 12px; }
.office a:hover { color: var(--blue-2); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10vh; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; position: relative; flex-wrap: wrap; }
.foot img { height: 18px; }
.foot .mono { font-size: 11px; }

/* easter egg */
.rain { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.toast { position: fixed; left: 50%; top: 50%; translate: -50% -50%; z-index: 151; font-size: clamp(30px, 6vw, 90px); font-weight: 700; letter-spacing: -.03em; color: #fff; text-shadow: 0 0 40px var(--blue); pointer-events: none; opacity: 0; white-space: nowrap; }

/* ---------- telemóvel ---------- */
@media (max-width: 860px) {
  .side, .hud--bl, .about__code { display: none; }
  .badge { width: 104px; height: 104px; right: var(--gutter); bottom: 6vh; } .badge span { width: 50px; height: 50px; }
  .stats, .svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .work__track { flex-direction: column; width: auto; align-items: stretch; gap: 16px; }
  .work__head, .card { width: 100%; } .card { height: auto; min-height: 260px; }
  .runner, .ground, .work__hud, .work__head .mono { display: none; } /* no runner on phones: its hint goes too */
  /* phones: the impact title gets room below it and a size that fits two lines inside the margins */
  .impact { padding-bottom: 64px; }
  .impact h2 { font-size: clamp(32px, 9.4vw, 56px); line-height: 1.05; text-wrap: balance; }
  .services__head, .testi, .contact__grid { grid-template-columns: 1fr; }
  .chat__body { height: 460px; }
  .marquee__row { gap: 54px; padding-right: 54px; } .marquee__row img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- loading screen: the D_ with a blinking bar ---------- */
html.is-loading { overflow: hidden; }
.preloader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; }
.preloader__mark { width: clamp(72px, 9vw, 112px); height: auto; overflow: visible; }
.preloader__bar { animation: blink 1s steps(1) infinite; }

.quotes-src { grid-column: 1 / -1; display: grid; gap: 18px; }
.quotes-src blockquote { color: var(--ink-2); line-height: 1.55; }
.quotes-src figcaption { font-family: var(--mono); font-size: 12px; color: var(--blue-2); margin-top: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- legal pages ---------- */
.legal__title { font-size: clamp(40px, 6.5vw, 104px); }
.legal__body { max-width: 860px; padding-block: 2vh var(--section); color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.legal__body h2 { color: #fff; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.01em; line-height: 1.2; margin: 56px 0 14px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { color: #fff; font-size: 18px; margin: 30px 0 8px; }
.legal__body p { margin: 0 0 14px; }
.legal__body p:empty { display: none; }
.legal__body a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.legal__body strong { color: #fff; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 18px 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal__body th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); font-weight: 500; }
.legal__body td:first-child { font-family: var(--mono); color: #fff; white-space: nowrap; }
.legal__todo { background: rgba(255, 196, 0, .16); color: #ffd666; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.foot__legal a { color: var(--ink-3); transition: color .3s; }
.foot__legal a:hover { color: var(--blue-2); }
.foot__egg { color: #fff; font-weight: 700; }

/* ---------- WordPress ---------- */
.lang a { color: inherit; } .lang a:hover { color: #fff; }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
/* project image (featured image of the project) behind the card text */
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; transition: opacity .8s, transform 1.2s var(--ease); }
.card.open .card__img { opacity: .9; }
.card.open .card__top { color: rgba(255,255,255,.75); }
.card.open:hover .card__img { opacity: 1; transform: scale(1.04); }
.card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,18,21,.85) 0%, rgba(18,18,21,.55) 9%, rgba(18,18,21,.28) 18%, rgba(18,18,21,.12) 27%, rgba(18,18,21,.1) 32%, rgba(18,18,21,.16) 38%, rgba(18,18,21,.28) 44%, rgba(18,18,21,.44) 50%, rgba(18,18,21,.6) 56%, rgba(18,18,21,.75) 63%, rgba(18,18,21,.88) 71%, rgba(18,18,21,.96) 80%, #121215 90%); pointer-events: none; }

/* ---------- "Ver projeto": cards are links; the cursor becomes a big blue disc over them ---------- */
a.card { color: inherit; text-decoration: none; }
a.card:not(.open) { cursor: default; }
.cur-ring > span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 700 13px/1.2 REM, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease); padding: 0 14px; }
.cur-ring.is-view { width: 150px; height: 150px; background: var(--blue); border-color: transparent; box-shadow: 0 0 50px rgba(0,122,255,.45); }
.cur-ring.is-view > span { opacity: 1; transform: none; }
body:has(.cur-ring.is-view) .cur { opacity: 0; }
.card__view { display: none; margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); }
@media (hover: none) { .card.open .card__view { display: inline-block; } }

/* ---------- project page ---------- */
.proj__hero { position: relative; padding-top: calc(var(--section) + 40px); padding-bottom: 6vh; overflow: hidden; isolation: isolate; }
.proj__hero .ambient { z-index: -1; }
.proj__back { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7vh; transition: color .3s; }
.proj__back:hover { color: var(--blue-2); }
.proj__title { font-size: clamp(48px, 9vw, 150px); line-height: .92; font-weight: 700; letter-spacing: -.035em; margin: 18px 0 6vh; overflow-wrap: break-word; }
.proj__word { white-space: nowrap; } /* a word that does not fit drops to the next line whole */
.proj__title .caret { vertical-align: baseline; } /* the "_" sits on the baseline of the last word, like an underscore */
.proj__title .js-title { display: inline; }
.proj__meta { display: flex; gap: 6vw; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.proj__meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 8px; }
.proj__meta dd { font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; }
.proj__frame { overflow: hidden; border-radius: 18px; background: var(--card); }
.proj__frame img { display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.proj__cover .proj__frame { height: min(78vh, 760px); }
.proj__cover .proj__frame img { height: 118%; }
.proj__about { display: grid; grid-template-columns: 3fr 9fr; gap: 6vw; padding-block: var(--section); }
.proj__text { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.proj__text p + p { margin-top: 1.1em; }
.proj__text p:first-child { color: #fff; font-size: 1.18em; line-height: 1.45; font-weight: 500; }
.proj__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proj__shot .proj__frame { aspect-ratio: 4 / 3; }
.proj__shot.is-wide { grid-column: 1 / -1; }
.proj__shot.is-wide .proj__frame { aspect-ratio: 16 / 8; }
.proj__shot img { height: 116%; }
.proj__cta { padding-block: var(--section); text-align: center; }
.proj__cta h2 { font-size: clamp(36px, 5.5vw, 88px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; max-width: 16ch; margin: 0 auto 40px; }
.proj__next { position: relative; display: block; min-height: 62vh; overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; color: #fff; }
.proj__next-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .3; transform: scale(1.06); transition: opacity .8s, transform 1.4s var(--ease); }
.proj__next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(20,20,20,.4) 50%, var(--bg) 100%); }
.proj__next:hover .proj__next-img { opacity: .55; transform: scale(1); }
.proj__next-in { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; }
.proj__next-name { font-size: clamp(48px, 9vw, 150px); font-weight: 700; letter-spacing: -.035em; line-height: .95; margin-top: 18px; }
.proj__next-name .arrow { display: inline-block; color: var(--blue); transition: transform .6s var(--ease); }
.proj__next:hover .arrow { transform: translateX(.2em); }
.proj .foot { margin-top: 0; padding-block: 26px; }
@media (max-width: 860px) {
  .proj__about { grid-template-columns: 1fr; }
  .proj__gallery { grid-template-columns: 1fr; }
  .proj__shot.is-wide .proj__frame, .proj__shot .proj__frame { aspect-ratio: 4 / 3; }
  .proj__cover .proj__frame { height: 52vh; }
}
